# # File name: st_viewlobbies.php # Author: Kingsley # Date: 06/06/2008 # Time: 5:37 AM # include("db.php"); include("includes/functions.php"); session_cache_expire(360); session_start(); putenv("TZ=Europe/London"); $lobbyIP = gethostbyname("beyond-cooling.no-ip.org"); if(GetIP() == $lobbyIP) { $lobbyIP = "192.168.1.101"; } //$lobbyIP = "80.2.46.205"; $time = time(); $adminuser = $_SESSION["user"]["name"]; $myinfo = mysql_fetch_array(mysql_query("SELECT committee, level from `users` where username='$adminuser'")); if($myinfo["committee"] == "Admin" && $myinfo["level"] == 7 || $myinfo["committee"] == "Security Team" && $myinfo["level"] >= 6){ $lobbyq = mysql_query("SELECT lobbyname, population, gameport, gametype, hostedgame, ping from lobbies order by ping DESC"); ?>
| Lobbyname | Population | Port | Link | Ping |
| =ucfirst($row["lobbyname"]);?> | =$row["population"];?> | =$row["gameport"];?> | ');">Open Lobby | =$pingdif;?> sec |