diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-06 17:14:25 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-06 17:14:25 +0000 |
commit | 866c47ec603595e8fe67da5f0e5d162a70b1f7b4 (patch) | |
tree | ef2b85462576150f017ba6bd53ace13dc60dc510 /inc/funktion_user.php | |
parent | fbc8e11b91b0565ae5d23472fc4e5bfc7d879939 (diff) |
move files
git-svn-id: svn://svn.cccv.de/engel-system@20 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'inc/funktion_user.php')
-rwxr-xr-x | inc/funktion_user.php | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/inc/funktion_user.php b/inc/funktion_user.php deleted file mode 100755 index a420a09a..00000000 --- a/inc/funktion_user.php +++ /dev/null @@ -1,83 +0,0 @@ -<?php - -function UID2Nick($UID) { - include ("./inc/db.php"); - - $SQL = "SELECT Nick FROM `User` WHERE UID='$UID'"; - $Erg = mysql_query($SQL, $con); - - //echo $UID."#"; - return mysql_result($Erg, 0); -} - - -function TID2Type($TID) { - include ("./inc/db.php"); - - $SQL = "SELECT Name FROM `EngelType` WHERE TID='$TID'"; - $Erg = mysql_query($SQL, $con); - - return mysql_result($Erg, 0); -} - - -function htmlescape($eckig) { - - $neueckig = $eckig; - $neueckig = str_replace("&","&",$neueckig); - $neueckig = str_replace("<","<",$neueckig); - $neueckig = str_replace(">",">",$neueckig); - - // replace smilies - - $neueckig = str_replace(";o))","<img src=\"./inc/smiles/icon_redface.gif\">",$neueckig); - $neueckig = str_replace(":-))","<img src=\"./inc/smiles/icon_redface.gif\">",$neueckig); - $neueckig = str_replace(";o)","<img src=\"./inc/smiles/icon_wind.gif\">",$neueckig); - $neueckig = str_replace(":)","<img src=\"./inc/smiles/icon_smile.gif\">",$neueckig); - $neueckig = str_replace(":-)","<img src=\"./inc/smiles/icon_smile.gif\">",$neueckig); - $neueckig = str_replace(":(","<img src=\"./inc/smiles/icon_sad.gif\">",$neueckig); - $neueckig = str_replace(":-(","<img src=\"./inc/smiles/icon_sad.gif\">",$neueckig); - $neueckig = str_replace(":o(","<img src=\"./inc/smiles/icon_sad.gif\">",$neueckig); - $neueckig = str_replace(":o)","<img src=\"./inc/smiles/icon_lol.gif\">",$neueckig); - $neueckig = str_replace(";o(","<img src=\"./inc/smiles/icon_cry.gif\">",$neueckig); - $neueckig = str_replace(";(","<img src=\"./inc/smiles/icon_cry.gif\">",$neueckig); - $neueckig = str_replace(";-(","<img src=\"./inc/smiles/icon_cry.gif\">",$neueckig); - $neueckig = str_replace("8)","<img src=\"./inc/smiles/icon_rolleyes.gif\">",$neueckig); - $neueckig = str_replace("8o)","<img src=\"./inc/smiles/icon_rolleyes.gif\">",$neueckig); - $neueckig = str_replace(":P","<img src=\"./inc/smiles/icon_evil.gif\">",$neueckig); - $neueckig = str_replace(":-P","<img src=\"./inc/smiles/icon_evil.gif\">",$neueckig); - $neueckig = str_replace(":oP","<img src=\"./inc/smiles/icon_evil.gif\">",$neueckig); - $neueckig = str_replace(";P","<img src=\"./inc/smiles/icon_mad.gif\">",$neueckig); - $neueckig = str_replace(";oP","<img src=\"./inc/smiles/icon_mad.gif\">",$neueckig); - $neueckig = str_replace("?)","<img src=\"./inc/smiles/icon_question.gif\">",$neueckig); - return $neueckig; -} - -function displayavatar($dumdidum) { -include ("./inc/db.php"); - - $asql = "select * from User where UID = $dumdidum"; - $aerg = mysql_query ($asql, $con); - $displayavatar= mysql_result($aerg, 0, "Avatar"); - if ($displayavatar<>0){ - return (" <img src=\"./inc/avatar/avatar$displayavatar.gif\">"); - } - -} - -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, "####################<br>"; - - $SQL2 = "SELECT * FROM `Raeume` "; - if ($RID != "") { - $SQL2.= "WHERE (RID = '".$RID."')"; - } - return mysql_query($SQL2, $con); -} - - -?> |