_id = $id; $this->_ip = $ip; $this->_port = $port; } function isOnline() { require_once(ABSOLUTEPATH . "plugins/shared/plugin_q3_query.inc"); $server_query = new plugin_q3_query($this->_ip, $this->_port); if (!$this->info = $server_query->getinfo()) return false; if (empty($this->info["hostname"])) return false; $this->info["hostname"] = $server_query->stripColorCodes($this->info["hostname"]); return true; } function getInfo() { global $phpUA; require_once(ABSOLUTEPATH . "plugins/shared/plugin_q3_query.inc"); if (empty($this->info["game"])) $this->info["game"] = "baseq3"; return array("name"=>$this->info["hostname"], "desc"=>$this->info["game"] . ": " . $this->info["clients"] . "/" . $this->info["sv_maxclients"] . " " . $phpUA["LANGUAGE"]["on"] . " " . $this->info["mapname"]); } } ?>