Duck hunt
'" . ($realtime - 300) . "'"), 0); $qon = mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate`>='" . $ontime . "';"); $qon2 = mysql_result($qon, 0); echo ' '; $onltime = $realtime - 300; $q = @mysql_query("select * from `users` where lastdate>='" . intval($onltime) . "' ORDER BY RAND() LIMIT 1 ;"); $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; } // icon avatar global $set_user, $realtime, $user_id, $id, $admp, $home; if ($set_user['avatar']) { if (file_exists(('../files/avatar/' . $arr['id'] . '.png'))) echo '' . $arr['name'] . ' '; else echo '' . $arr['name'] . ' '; } $qn = mysql_query("select `sex`,`status` from `users` where id='" . $arr['id'] . "';"); while ($res = mysql_fetch_array($qn)) if (!empty($res['status'])) $st = '' . $res['status'] . ''; $user_u = $arr['id']; $req_u = mysql_query("SELECT * FROM `users` WHERE `id` = '$user_u' LIMIT 1"); $res_u = mysql_fetch_array($req_u); $exp = $res_u['postforum']*2+$res_u['postguest']+$res_u['komm']; if ($exp >= 1 && $exp <10) { $chucdanh = ''; } if ($exp >= 10 && $exp <25) { $chucdanh = ''; } if ($exp >= 25 && $exp <45) { $chucdanh = ''; } if ($exp >= 45 && $exp <75) { $chucdanh = ''; } if ($exp >= 75 && $exp <120) { $chucdanh = ''; } if ($exp >= 120 && $exp <200) { $chucdanh = ''; } if ($exp >= 200 && $exp <300) { $chucdanh = ''; } if ($exp >= 300 && $exp <460) { $chucdanh = ''; } if ($exp >= 460 && $exp <670) { $chucdanh = ''; } if ($exp >= 670 && $exp <1000) { $chucdanh = ''; } if ($exp >= 1000 && $exp <1500) { $chucdanh = ''; } if ($exp >= 1500 && $exp <2100) { $chucdanh = ''; } if ($exp >= 2100 && $exp <2800) { $chucdanh = ''; } if ($exp >= 2800 && $exp <3800) { $chucdanh = ''; } if ($exp >= 3800 && $exp <5000) { $chucdanh = ''; } if ($exp >= 5000 && $exp <7500) { $chucdanh = ''; } if ($exp >= 7500 && $exp <10000) { $chucdanh = ''; } $ico = '
' .$chucdanh . $st. '
'; $u_on[]="$arr[name] Lagi anu di $place"; } if ($qon2>=1) { echo implode(', ',$u_on).'.'; echo '' .$ico. ''; } if ($user_id){ echo ''; } ?>