|
|
@ -1,7 +1,8 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
function UID2Nick($UID) {
|
|
|
|
function UID2Nick($UID)
|
|
|
|
include ("./inc/db.php");
|
|
|
|
{
|
|
|
|
|
|
|
|
global $con;
|
|
|
|
|
|
|
|
|
|
|
|
$SQL = "SELECT Nick FROM `User` WHERE UID='$UID'";
|
|
|
|
$SQL = "SELECT Nick FROM `User` WHERE UID='$UID'";
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
@ -19,8 +20,9 @@ function UID2Nick($UID) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function TID2Type($TID) {
|
|
|
|
function TID2Type($TID)
|
|
|
|
include ("./inc/db.php");
|
|
|
|
{
|
|
|
|
|
|
|
|
global $con;
|
|
|
|
|
|
|
|
|
|
|
|
$SQL = "SELECT Name FROM `EngelType` WHERE TID='$TID'";
|
|
|
|
$SQL = "SELECT Name FROM `EngelType` WHERE TID='$TID'";
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
@ -55,32 +57,20 @@ function ReplaceSmilies($eckig) {
|
|
|
|
return $neueckig;
|
|
|
|
return $neueckig;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function displayavatar($dumdidum) {
|
|
|
|
function displayavatar($UID)
|
|
|
|
include ("./inc/db.php");
|
|
|
|
{
|
|
|
|
global $displayavatar;
|
|
|
|
global $con;
|
|
|
|
|
|
|
|
|
|
|
|
$asql = "select * from User where UID = $dumdidum";
|
|
|
|
$asql = "select * from User where UID = $UID";
|
|
|
|
$aerg = mysql_query ($asql, $con);
|
|
|
|
$aerg = mysql_query ($asql, $con);
|
|
|
|
if (($displayavatar<>0) && (mysql_num_rows($Erg)) )
|
|
|
|
if( mysql_num_rows($aerg) )
|
|
|
|
return (" <img src=\"./inc/avatar/avatar". mysql_result($aerg, 0, "Avatar"). ".gif\">");
|
|
|
|
if( mysql_result($aerg, 0, "Avatar") > 0)
|
|
|
|
|
|
|
|
return (" <img src=\"./inc/avatar/avatar". mysql_result($aerg, 0, "Avatar"). ".gif\">");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function Ausgabe_Feld($RID) {
|
|
|
|
function UIDgekommen($UID)
|
|
|
|
// gibt, nach übergabe der der SchichtID (SID) und der RaumID (RID),
|
|
|
|
{
|
|
|
|
// die eingetragenden und und offenden Schichteintäge zurück
|
|
|
|
global $con;
|
|
|
|
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);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function UIDgekommen($UID) {
|
|
|
|
|
|
|
|
include ("./inc/db.php");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$SQL = "SELECT `Gekommen` FROM `User` WHERE UID='$UID'";
|
|
|
|
$SQL = "SELECT `Gekommen` FROM `User` WHERE UID='$UID'";
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
@ -92,6 +82,4 @@ function UIDgekommen($UID) {
|
|
|
|
return "0";
|
|
|
|
return "0";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|