//-*- C++ -*- /* ******************************************************************** ** ** Copyright (C) 1995-2000 Michael Oertel ** ** Copyright (C) 2000- PHPOpenChat Development Team ** ** http://www.ortelius.de/phpopenchat/ ** ** ** ** This program is free software. You can redistribute it and/or modify ** ** it under the terms of the PHPOpenChat License Version 1.0 ** ** ** ** This program is distributed in the hope that it will be useful, ** ** but WITHOUT ANY WARRANTY, without even the implied warranty of ** ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ** ** ** ** You should have received a copy of the PHPOpenChat License ** ** along with this program. ** ** ******************************************************************** */ function randomint($max) { static $startseed = 0; if (!$startseed) { $startseed = (double)microtime()*getrandmax(); srand($startseed); } return (rand()%$max); } /* * Include some default values */ if(!@include("defaults_inc.php")){ echo "
You don't read the INSTALL instructions!'; $online_table .= '
| '.$NICK_NAME.' | '.$CHANNEL.' | '; $online_table .= ''.$NICK_NAME.' | '.$CHANNEL.' | '; $online_table .= ''.$NICK_NAME.' | '.$CHANNEL.' | '; $online_table .= ''.$NICK_NAME.' | '.$CHANNEL.' | '; $raumresult=mysql_query("SELECT DISTINCT Raum FROM chat ORDER BY Raum",$db_handle); $i=0; $smileydir="images/chatter/"; while($row=mysql_fetch_object($raumresult)){ $raum=$row->Raum; $result=mysql_query('SELECT Nick FROM chat WHERE Raum="'.$raum.'" ORDER BY Nick'); while($nickrow=mysql_fetch_object($result)){ if($i % 4 ==0){$online_table .= "
|---|---|---|---|---|---|---|---|
| ';
$nickname=$nickrow->Nick;
if(file_exists($smileydir.strtolower(str_replace(" ","_",$nickname)).".gif")){
$online_table .= " | '.$raum.' | '; $i++; } } if($i % 4 != 0){ echo '