diff --git a/www-ssl/admin/Recentchanges.php b/www-ssl/admin/Recentchanges.php index 564c9e96..b6cb5a9f 100755 --- a/www-ssl/admin/Recentchanges.php +++ b/www-ssl/admin/Recentchanges.php @@ -3,9 +3,27 @@ $title = "ChangeLog"; $header = "Datenbank-Auszug"; include ("./inc/header.php"); -include ("./inc/funktion_db_list.php"); +include ("./inc/funktion_user.php"); -funktion_db_list("ChangeLog"); +$SQL = "SELECT * FROM `ChangeLog` ORDER BY `Time` DESC LIMIT 0,10000"; +$Erg = mysql_query($SQL, $con); + +echo mysql_error($con); + +echo "\n"; +echo "\n\t\n\t\n\t\n\t\n\n"; + +for ($n = 0 ; $n < mysql_num_rows($Erg) ; $n++) +{ + echo "\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + echo "\n"; +} + +echo "
TimeUserCommendSQL Commad
". mysql_result( $Erg, $n, "Time"). "". UID2Nick(mysql_result( $Erg, $n, "UID")). displayavatar(mysql_result( $Erg, $n, "UID")). "". mysql_result( $Erg, $n, "Commend"). "". mysql_result( $Erg, $n, "SQLCommad"). "
\n"; include ("./inc/footer.php"); ?> diff --git a/www-ssl/inc/funktion_user.php b/www-ssl/inc/funktion_user.php index f679245d..c98598f8 100755 --- a/www-ssl/inc/funktion_user.php +++ b/www-ssl/inc/funktion_user.php @@ -1,7 +1,8 @@ 0) && (mysql_num_rows($Erg)) ) - return (" "); + $asql = "select * from User where UID = $UID"; + $aerg = mysql_query ($asql, $con); + if( mysql_num_rows($aerg) ) + if( mysql_result($aerg, 0, "Avatar") > 0) + return (" "); } -function Ausgabe_Feld($RID) { -// gibt, nach übergabe der der SchichtID (SID) und der RaumID (RID), -// die eingetragenden und und offenden Schichteintäge zurück - include ("./inc/db.php"); - include ("./inc/config.php"); -//echo "####################", $Erg, "####################
"; - - $SQL2 = "SELECT * FROM `Raeume` "; - if ($RID != "") { - $SQL2.= "WHERE (RID = '".$RID."')"; - } - return mysql_query($SQL2, $con); -} - -function UIDgekommen($UID) { - include ("./inc/db.php"); +function UIDgekommen($UID) +{ + global $con; $SQL = "SELECT `Gekommen` FROM `User` WHERE UID='$UID'"; $Erg = mysql_query($SQL, $con); @@ -92,6 +82,4 @@ function UIDgekommen($UID) { return "0"; } - - ?>