You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.8 KiB
PHP
86 lines
2.8 KiB
PHP
<?php
|
|
|
|
function UID2Nick($UID)
|
|
{
|
|
global $con;
|
|
|
|
$SQL = "SELECT Nick FROM `User` WHERE UID='$UID'";
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
//echo $UID."#";
|
|
if( mysql_num_rows($Erg))
|
|
return mysql_result($Erg, 0);
|
|
else
|
|
{
|
|
if( $UID == -1)
|
|
return "logout User";
|
|
else
|
|
return "UserID $UID not found";
|
|
}
|
|
}
|
|
|
|
|
|
function TID2Type($TID)
|
|
{
|
|
global $con;
|
|
|
|
$SQL = "SELECT Name FROM `EngelType` WHERE TID='$TID'";
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
return mysql_result($Erg, 0);
|
|
}
|
|
|
|
|
|
function ReplaceSmilies($eckig) {
|
|
|
|
$neueckig = $eckig;
|
|
$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($UID)
|
|
{
|
|
global $con;
|
|
|
|
$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 (" <img src=\"./inc/avatar/avatar". mysql_result($aerg, 0, "Avatar"). ".gif\">");
|
|
}
|
|
|
|
function UIDgekommen($UID)
|
|
{
|
|
global $con;
|
|
|
|
$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";
|
|
}
|
|
|
|
?>
|