summaryrefslogtreecommitdiff
path: root/www-ssl/inc/funktion_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/inc/funktion_user.php')
-rwxr-xr-xwww-ssl/inc/funktion_user.php24
1 files changed, 18 insertions, 6 deletions
diff --git a/www-ssl/inc/funktion_user.php b/www-ssl/inc/funktion_user.php
index 660e55a1..f679245d 100755
--- a/www-ssl/inc/funktion_user.php
+++ b/www-ssl/inc/funktion_user.php
@@ -56,15 +56,13 @@ function ReplaceSmilies($eckig) {
}
function displayavatar($dumdidum) {
-include ("./inc/db.php");
+ include ("./inc/db.php");
+ global $displayavatar;
$asql = "select * from User where UID = $dumdidum";
$aerg = mysql_query ($asql, $con);
- $displayavatar= mysql_result($aerg, 0, "Avatar");
- if ($displayavatar<>0){
- return ("&nbsp;<img src=\"./inc/avatar/avatar$displayavatar.gif\">");
- }
-
+ if (($displayavatar<>0) && (mysql_num_rows($Erg)) )
+ return ("&nbsp;<img src=\"./inc/avatar/avatar". mysql_result($aerg, 0, "Avatar"). ".gif\">");
}
function Ausgabe_Feld($RID) {
@@ -81,5 +79,19 @@ function Ausgabe_Feld($RID) {
return mysql_query($SQL2, $con);
}
+function UIDgekommen($UID) {
+ include ("./inc/db.php");
+
+ $SQL = "SELECT `Gekommen` FROM `User` WHERE UID='$UID'";
+ $Erg = mysql_query($SQL, $con);
+
+ //echo $UID."#";
+ if( mysql_num_rows($Erg))
+ return mysql_result($Erg, 0);
+ else
+ return "0";
+}
+
+
?>