[zero-k] r6987 committed - DEPLOY_SITE...

0 views
Skip to first unread message

zer...@googlecode.com

unread,
Jun 25, 2012, 3:21:52 AM6/25/12
to zero-k-...@googlegroups.com
Revision: 6987
Author: jal...@gmail.com
Date: Mon Jun 25 00:21:33 2012
Log: DEPLOY_SITE
tweaks to ip list, preperation for userid tracking
http://code.google.com/p/zero-k/source/detail?r=6987

Modified:
/trunk/other/NightWatch/AuthService.cs
/trunk/other/Shared/LobbyClient/TasClient.cs
/trunk/other/Zero-K.info/Views/Shared/UserDetail.cshtml

=======================================
--- /trunk/other/NightWatch/AuthService.cs Mon Jun 25 00:10:58 2012
+++ /trunk/other/NightWatch/AuthService.cs Mon Jun 25 00:21:33 2012
@@ -80,6 +80,7 @@
}
entry.LoginCount++;
entry.LastLogin = DateTime.UtcNow;
+
}
db.SubmitChanges();
}
=======================================
--- /trunk/other/Shared/LobbyClient/TasClient.cs Fri Jun 1 02:09:50 2012
+++ /trunk/other/Shared/LobbyClient/TasClient.cs Mon Jun 25 00:21:33 2012
@@ -527,7 +527,7 @@
con.SendCommand("CHANNELS");
}

- public static string GetUserID() {
+ public static string GetMyUserID() {
var nic =
NetworkInterface.GetAllNetworkInterfaces().FirstOrDefault();
string data = "0";
if (nic != null) {
@@ -544,7 +544,7 @@

UserPassword = password;

- con.SendCommand("LOGIN", userName,
Utils.HashLobbyPassword(password), cpu, localIp, appName, "\t" +
GetUserID(), "\ta sp eb");
+ con.SendCommand("LOGIN", userName,
Utils.HashLobbyPassword(password), cpu, localIp, appName, "\t" +
GetMyUserID(), "\ta sp eb");
}

int cpu = GlobalConst.ZkLobbyUserCpu;
@@ -1352,7 +1352,7 @@
break;

case "ACQUIREUSERID":
- con.SendCommand("USERID", GetUserID());
+ con.SendCommand("USERID", GetMyUserID());
break;
case "ADDSTARTRECT":
{
=======================================
--- /trunk/other/Zero-K.info/Views/Shared/UserDetail.cshtml Mon Jun 25
00:10:58 2012
+++ /trunk/other/Zero-K.info/Views/Shared/UserDetail.cshtml Mon Jun 25
00:21:33 2012
@@ -112,7 +112,16 @@
<h3>Modify user @Model.Name</h3>
AccountID: @Model.AccountID <br />
LobbyID: @Model.LobbyID <br />
- IP:
@string.Join(", ",Model.AccountIPS.OrderByDescending(x=>x.LastLogin).Select(x=>
string.Format("[ <{0}> count:{1} first:{2} last:{3} ] ", x.IP,
x.LoginCount, x.FirstLogin, x.LastLogin)))
+ IP:
<table><thead><tr><th>IP</th><th>Count</th><th>First</th><th>Last</th></tr></thead>
+ <tbody>
+ @foreach (var x in
Model.AccountIPS.OrderByDescending(x=>x.LastLogin))
+ {
+
<tr><td>@x.IP</td><td>@x.LoginCount</td><td>@x.FirstLogin</td><td>@x.LastLogin</td></tr>
+ }
+ </tbody>
+ </table><br/>
+
+
<form method="post"
action="@Url.Action("ChangeLobbyID", "Users", new {accountID =
Model.AccountID})">
Change lobby ID: @Html.TextBox("newLobbyID") <input
type="submit" />
</form>
Reply all
Reply to author
Forward
0 new messages