Location: PHPKode > projects > The Duliga / Die Duliga > chat/incl/usronline.php
<?
$istzeit=strftime("%Y.%m.%d.%a.%H.%M.%S", time());
$rmax=strftime("%Y.%m.%d.%a", time());
$maxb=strftime("%M", time());
$maxa=strftime("%H", time());
$maxb=$maxb-10;
if($maxb<0) { $maxb=60+$maxb; $maxa=$maxa-1;}
if($maxb>=0 AND $maxb<10){ $maxb='0'.$maxb; }
$maxzeit=$rmax.'.'.$maxa.'.'.$maxb.'.'.'00'; $deleteuser = mysql_query("delete from userlog where DATE<'$maxzeit' OR name=''");
$sql="SELECT DISTINCT name FROM userlog WHERE name<>'' ";
$inhalt=mysql_query($sql,$verbindung); $allenamen=' - ';
while($i=mysql_fetch_row($inhalt))
{
    $anznamen++;
    $allenamen=$allenamen.$i[0].' - ';
}
?>
Return current item: The Duliga / Die Duliga