- Index: admin/manage_users.php
- ===================================================================
- --- admin/manage_users.php (revision 941)
- +++ admin/manage_users.php (working copy)
- @@ -21,7 +21,7 @@
- $filter["date"] = GetSelectElement("t_date", $c_dates, array("ov" => array(0), "on" => array(""), "onchange" => 1));
- - $d["sql"] = ReturnValuesIntoArray(array("user"), array("CONCAT(first_name,' ',last_name)","CONCAT(country, '<br>',zipcode)" , "user_pass", "ip_address", /*5*/ "-UNIX_TIMESTAMP(signup_date)", "type_id", "user.status_id", "email", "other_ip",/*10*/"u_gif"), ($_SESSION["cond"] ? $_SESSION["cond"] : "user.type_id <> 2"), 0, 0, array(-1 => 0));
- + $d["sql"] = ReturnValuesIntoArray(array("user"), array("CONCAT(first_name,' ',last_name)","CONCAT(country, '<br>',zipcode)" , "user_pass", "ip_address", /*5*/ "-UNIX_TIMESTAMP(signup_date)", "type_id", "user.status_id", "email", "other_ip",/*10*/"u_gif", "-UNIX_TIMESTAMP(last_login)"), ($_SESSION["cond"] ? $_SESSION["cond"] : "user.type_id <> 2"), 0, 0, array(-1 => 0));
- $user["table"] = "<table cellspacing=2 cellpadding=2 border=0 width=100%>
- @@ -30,7 +30,7 @@
- <td width=8%>Name</td>
- <td width=5%>Marked</td>
- <td width=10%>Email/Country/Zip</td>
- - <td width=5%>SignUpDate</td>
- + <td width=5%>SignUpDate<br/>Last access</td>
- <td width=10%>IP Address(es)</td>
- <td width=5%>Password</td>
- <td width=33%>Access</td>
- @@ -74,7 +74,7 @@
- <td width=8%><a href='".GetCFile("cmd=message&uid=".$d["sql"][$i][0], 1)."' target=blank>".$d["sql"][$i][1]."</a></td>
- <td width=5%>".$mark."</td>
- <td width=10%><a href=\"mailto:".$d["sql"][$i][8]."\" target=blank>".$d["sql"][$i][8]."</a><br>".$d["sql"][$i][2]."</td>
- - <td width=5%>".FormatDate($d["sql"][$i][5], 1)."</td>
- + <td width=5%>".FormatDate($d["sql"][$i][5], 1)."<br/>".FormatDate($d["sql"][$i][11])."</td>
- <td width=10%>".$ip_adrs."</td>
- <td width=5%>".$d["sql"][$i][3]."</td>
- <td width=35%>".$prod["table"][$i]."</td>
- Index: home.php
- ===================================================================
- --- home.php (revision 941)
- +++ home.php (working copy)
- @@ -266,7 +266,7 @@
- if (!in_array($this_ip, $list_ips)) {
- $list_ips[] = $this_ip;
- }
- - UpdateRecord("user", array("other_ip", "u_gif"), array(implode(",", $list_ips), 1), "user_id = '".$q_user_1[0][0]."'");
- + UpdateRecord("user", array("other_ip", "u_gif", "last_login"), array(implode(",", $list_ips), 1, FormatDate()), "user_id = '".$q_user_1[0][0]."'");
- }
- $_SESSION["user_id"] = $q_user_1[0][0];
- $err_id = "unset";