recentchanges -> admin log
parent
2fcd0a63f5
commit
7e91f4821a
@ -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;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once ('../bootstrap.php');
|
|
||||||
|
|
||||||
$title = "ChangeLog";
|
|
||||||
$header = "Datenbank-Auszug";
|
|
||||||
include ("includes/header.php");
|
|
||||||
|
|
||||||
$SQL = "SELECT * FROM `ChangeLog` ORDER BY `Time` DESC LIMIT 0,10000";
|
|
||||||
$Erg = mysql_query($SQL, $con);
|
|
||||||
|
|
||||||
echo mysql_error($con);
|
|
||||||
|
|
||||||
echo "<table border=1>\n";
|
|
||||||
echo "<tr>\n\t<th>Time</th>\n\t<th>User</th>\n\t<th>Commend</th>\n\t<th>SQL Commad</th>\n</tr>\n";
|
|
||||||
|
|
||||||
for ($n = 0; $n < mysql_num_rows($Erg); $n++) {
|
|
||||||
echo "<tr>\n";
|
|
||||||
echo "\t<td>" . mysql_result($Erg, $n, "Time") . "</td>\n";
|
|
||||||
echo "\t<td>" . UID2Nick(mysql_result($Erg, $n, "UID")) . displayavatar(mysql_result($Erg, $n, "UID")) . "</td>\n";
|
|
||||||
echo "\t<td>" . mysql_result($Erg, $n, "Commend") . "</td>\n";
|
|
||||||
echo "\t<td>" . mysql_result($Erg, $n, "SQLCommad") . "</td>\n";
|
|
||||||
echo "</tr>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "</table>\n";
|
|
||||||
|
|
||||||
include ("includes/footer.php");
|
|
||||||
?>
|
|
||||||
|
|
Loading…
Reference in New Issue