'" . ($realtime - 300) . "'"), 0); $qon = mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate`>='" . $ontime . "';"); $qon2 = mysql_result($qon, 0); echo 'User On: '; $onltime = $realtime - 300; $q = @mysql_query("select * from `users` where lastdate>='" . intval($onltime) . "';"); $count = mysql_num_rows($q); while ($arr = mysql_fetch_array($q)) { $where = explode(",", $arr['place']); switch ($where[0]) { case 'forumfiles' : $place = 'Files Forum'; break; case 'forumwho' : $place = 'Who in forum'; break; case 'anketa' : $place = 'Profil'; break; case 'userset' : $place = 'Pengaturan'; break; case 'trns' : $place = 'translate'; break; case 'online' : $place = 'List online'; break; case 'privat' : case 'kujum' : $place = 'mainmenu'; break; case 'birth' : $place = 'Birthday List'; break; case 'read' : $place = 'FAQ'; break; case 'load' : $place = 'Download'; break; case 'gallery' : $place = 'Gallery'; break; case 'quickchat' : $place = 'Shout'; break; case 'teman' : $place = 'Dftr.Teman'; break; case 'forum' : case 'forums' : $place = 'Forum/>>'; break; case 'chat' : $place = 'Chat'; break; case 'guest' : $place = 'Bukutamu'; break; case 'dinding' : $place = 'Dinding'; break; case 'lib' : $place = 'Library'; break; case 'mainpage' : default : $place = 'Home'; break; } $u_on[]="$arr[name][$place]"; } if ($qon2>=1) && ($qon2<=5)) { echo implode(', ',$u_on).'.'; } else if ($qon2>=6) { $qon3 = $qon2-5; echo implode(', ',$u_on).'.'; echo ' ' . $qon3 . 'more..'; } else echo 'member not online !'; echo '
Visitor On: ' . $guests . ''; ?>