Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 2.59 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. Index: admin/manage_users.php
  2. ===================================================================
  3. --- admin/manage_users.php      (revision 941)
  4. +++ admin/manage_users.php      (working copy)
  5. @@ -21,7 +21,7 @@
  6.         $filter["date"] = GetSelectElement("t_date", $c_dates, array("ov" => array(0), "on" => array(""), "onchange" => 1));
  7.        
  8.        
  9. -       $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));
  10. +       $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));
  11.        
  12.        
  13.         $user["table"] = "<table cellspacing=2 cellpadding=2 border=0 width=100%>
  14. @@ -30,7 +30,7 @@
  15.                         <td width=8%>Name</td>
  16.                         <td width=5%>Marked</td>
  17.                         <td width=10%>Email/Country/Zip</td>
  18. -                       <td width=5%>SignUpDate</td>
  19. +                       <td width=5%>SignUpDate<br/>Last access</td>
  20.                         <td width=10%>IP Address(es)</td>
  21.                         <td width=5%>Password</td>
  22.                         <td width=33%>Access</td>
  23. @@ -74,7 +74,7 @@
  24.                                 <td width=8%><a href='".GetCFile("cmd=message&uid=".$d["sql"][$i][0], 1)."' target=blank>".$d["sql"][$i][1]."</a></td>
  25.                                 <td width=5%>".$mark."</td>
  26.                                 <td width=10%><a href=\"mailto:".$d["sql"][$i][8]."\" target=blank>".$d["sql"][$i][8]."</a><br>".$d["sql"][$i][2]."</td>
  27. -                               <td width=5%>".FormatDate($d["sql"][$i][5], 1)."</td>
  28. +                               <td width=5%>".FormatDate($d["sql"][$i][5], 1)."<br/>".FormatDate($d["sql"][$i][11])."</td>
  29.                                 <td width=10%>".$ip_adrs."</td>
  30.                                 <td width=5%>".$d["sql"][$i][3]."</td>
  31.                                 <td width=35%>".$prod["table"][$i]."</td>
  32.  
  33. Index: home.php
  34. ===================================================================
  35. --- home.php    (revision 941)
  36. +++ home.php    (working copy)
  37. @@ -266,7 +266,7 @@
  38.                                 if (!in_array($this_ip, $list_ips)) {
  39.                                   $list_ips[] = $this_ip;
  40.                                 }
  41. -                               UpdateRecord("user", array("other_ip", "u_gif"), array(implode(",", $list_ips), 1), "user_id = '".$q_user_1[0][0]."'");
  42. +                               UpdateRecord("user", array("other_ip", "u_gif", "last_login"), array(implode(",", $list_ips), 1, FormatDate()), "user_id = '".$q_user_1[0][0]."'");
  43.                         }
  44.                         $_SESSION["user_id"] = $q_user_1[0][0];
  45.                         $err_id = "unset";