protected static function load_gameserver($id = null) { if (!$id) { $id = $_GET['id']; } $server = GameServer::find_by_id($id); if ($server) { return $server; } else { Error404(); } }
protected function load_gameserver($id = null) { if (!$id) { $id = $_GET['id']; } $id = mysql_real_escape_string($id); $server = GameServer::find_by_id($id); if ($server && $server->online) { return $server; } Error404(); }