'" . ($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 = 'File forum'; break; case 'forumwho' : $place = 'List on forum'; break; case 'anketa' : $place = 'Profil'; break; case 'userset' : $place = 'Pengaturan'; break; case 'users' : $place = 'List member'; 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 = 'List Teman'; break; case 'forum' : case 'forums' : $place = 'Forum/>>'; break; case 'chat' : $place = 'Chat'; break; case 'guest' : $place = 'Buku Tamu'; break; case 'dinding' : $place = 'Mini FB'; break; case 'lib' : $place = 'Library'; break; case 'mainpage' : default : $place = 'Home'; break; case 'smile' : $place = 'List smile'; break; case 'avatar' : $place = 'List avatar'; break; case 'mydata' : $place = 'Edit profil'; break; } $u_on[]="$arr[name][$place]"; } if ($qon2>=1) { echo implode(', ',$u_on).'.'; echo ' (' . $qon2 . ')'; } else echo 'Tidak ada member yg online !'; echo '
Guest On: ' . $guests . ''; } ?>