Changeset 583 for trunk/pages/acclog.php
- Timestamp:
- May 7, 2009, 9:15:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/acclog.php
r407 r583 1 1 <?php 2 2 3 echo " <a href=\"?page=acc\"><- Zpět do správy účtu</a>";4 $db -> select_db($db_realmd);5 echo "<center><table border=\"1\" align=\"center\" width=\"540\">3 echo(' <a href="?page=acc"><- Zpět do správy účtu</a>'); 4 $db->select_db($Config['Mangos']['DatabaseRealmd']); 5 echo('<table class="BaseTable"> 6 6 <tr> 7 <td align=\"center\">Postava</td> 8 <td align=\"center\">Akce</td> 9 <td align=\"center\">Čas</td> 10 <td align=\"center\">Provedeno z IP</td> 11 </tr>"; 12 $data = $db -> query("SELECT * FROM `char_db` WHERE `guid` = '".$_SESSION["UserId"]."' ORDER BY `time` ASC LIMIT 0,40"); 7 <td>Postava</td> 8 <td>Akce</td> 9 <td>Čas</td> 10 <td>Provedeno z IP</td> 11 </tr>'); 12 $data = $db->query('SELECT * FROM `char_db` WHERE `guid` = "'.$_SESSION['UserId'].'" ORDER BY `time` ASC LIMIT 0,40'); 13 while($row = $data->fetch_assoc()) 14 { 15 $date_arr = explode(' ', $row['time']); 16 $date = explode('-', $date_arr[0]); 17 $time_stp = explode(':', $date_arr[1]); 18 $time = mktime($time_stp[0], $time_stp[1], $time_stp[2], $date[1], $date[2], $date[0]); 19 $human_date = date('d.m.Y H:i:s', $time); 20 echo('<tr> 21 <th>'.$row['char_name'].'</th> 22 <td>'.$row['action'].'</td> 23 <td>'.$human_date.'</td> 24 <td>'.$row['ip'].'</td> 25 </tr>'); 26 } 27 echo('<tr> 28 <td align="left" colspan="3">Vaše současná IP adresa :</td> 29 <td align="center"><b>'.$_SERVER['REMOTE_ADDR'].'</b></td> 30 </tr>'); 31 echo('</table>'); 13 32 14 15 while($row = $data -> fetch_array()) 16 { 17 $date_arr = explode(" ",$row["time"]); 18 $date = explode("-",$date_arr[0]); 19 $time_stp = explode(":",$date_arr[1]); 20 $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]); 21 $human_date = date ("d.m.Y H:i:s",$time); 22 echo "<tr> 23 <td align=\"center\"><b>".$row["char_name"]."</b></td> 24 <td align=\"center\">".$row["action"]."</td> 25 <td align=\"center\">".$human_date."</td> 26 <td align=\"center\">".$row["ip"]."</td> 27 </tr>"; 28 } 29 echo "<tr> 30 <td align=\"left\" colspan=\"3\">Vaše současná IP adresa :</td> 31 <td align=\"center\"><b>".$_SERVER["REMOTE_ADDR"]."</b></td> 32 </tr>"; 33 echo "</table></center>"; 34 35 36 37 38 39 40 echo "<font size=\"1\">Výpis omezen na 40 posledních aktivit</font>"; 33 echo('<font size="1">Výpis omezen na 40 posledních aktivit</font>'); 41 34 42 35 ?>
Note:
See TracChangeset
for help on using the changeset viewer.