diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-06-03 14:44:01 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-06-03 14:44:01 +0200 |
commit | 7e91f4821aee41589dd744a9540f15b76d729bab (patch) | |
tree | 522e68d503f155b52350a6c634c80333bc17842b /includes | |
parent | 2fcd0a63f5c1bb8edd753788729ea2e22e01c0ab (diff) |
recentchanges -> admin log
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/admin_log.php | 25 | ||||
-rw-r--r-- | includes/sys_menu.php | 3 |
2 files changed, 27 insertions, 1 deletions
diff --git a/includes/pages/admin_log.php b/includes/pages/admin_log.php new file mode 100644 index 00000000..5f112f03 --- /dev/null +++ b/includes/pages/admin_log.php @@ -0,0 +1,25 @@ +<?php +function admin_log() { + $html = ""; + $SQL = "SELECT * FROM `ChangeLog` ORDER BY `Time` DESC LIMIT 0,10000"; + $Erg = sql_query($SQL); + + if (mysql_num_rows($Erg) > 0) { + $html .= "<table border=1>\n"; + $html .= "<tr>\n\t<th>Time</th>\n\t<th>User</th>\n\t<th>Commend</th>\n\t<th>SQL Command</th>\n</tr>\n"; + for ($n = 0; $n < mysql_num_rows($Erg); $n++) { + $html .= "<tr>\n"; + $html .= "\t<td>" . mysql_result($Erg, $n, "Time") . "</td>\n"; + $html .= "\t<td>" . UID2Nick(mysql_result($Erg, $n, "UID")) . displayavatar(mysql_result($Erg, $n, "UID")) . "</td>\n"; + $html .= "\t<td>" . mysql_result($Erg, $n, "Commend") . "</td>\n"; + $html .= "\t<td>" . mysql_result($Erg, $n, "SQLCommad") . "</td>\n"; + $html .= "</tr>\n"; + } + $html .= "</table>\n"; + } else { + $html .= "Log is empty..."; + } + return $html; +} +?> + diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 744d28d5..e81bed8d 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -40,7 +40,8 @@ function make_navigation() { "admin_rooms", "admin_groups", "admin_faq", - "admin_language" + "admin_language", + "admin_log" )); return $menu; } |