Changeset 374 for minimanager/stat.php
- Timestamp:
- Sep 11, 2008, 9:10:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/stat.php
r307 r374 10 10 11 11 require_once("header.php"); 12 valid_login( 0);12 valid_login($action_permission['read']); 13 13 14 14 $race = Array( … … 62 62 63 63 $data = date("Y-m-d H:i:s"); 64 $data_1 = date_create ($data);65 $data_1 ->modify ("-1 day");66 $data_1 = date_format($data_1,"Y-m-d H:i:s");67 $query = $sql->query("select distinct count(`last_ip`) from `account` where `last_login` > '$data_1' and `last_login` < '$data'");64 $data_1 = mktime(date("H"), date("i"), date("s"), date("m") , date("d")-1, date("Y")); 65 $data_1 = date("Y-m-d H:i:s", $data_1); 66 67 $query = $sql->query("select distinct count(`last_ip`) from `account` where `last_login` > '$data_1' and `last_login` < '$data'"); 68 68 $uniqueIPs = $sql->result($query,0); 69 69 … … 92 92 } else $order_side = ""; 93 93 94 $output .= " 95 <center> 96 <div id=\"tab\"> 97 <ul> 98 <li id=\"selected\"> 99 <a href=\"stat.php\"> 100 {$lang_stat['srv_statistics']} 101 </a> 102 </li> 103 <li> 104 <a href=\"stat_on.php\"> 105 {$lang_stat['on_statistics']} 106 </a> 107 </li> 108 </ul> 109 </div> 110 <div id=\"tab_content\"> 111 "; 94 112 95 113 $output .= "<div class=\"top\"><h1>{$lang_stat['srv_statistics']}</h1></div>"; … … 198 216 makebutton($lang_stat['reset'], "stat.php", 720); 199 217 $output .= "</td></tr></table> 200 </center>"; 218 </center> 219 </div>"; 201 220 202 221 $sql->close();
Note:
See TracChangeset
for help on using the changeset viewer.