 |
Menu |
 |
|
 |
Google Search |
 |
|
 |
Help us: donate |
 |
|
 |
Welcome guest! |
 |
|
 |
Quick login |
 |
|
 |
FTP Server |
 |
|
 |
eMule |
 |
|
 |
IRC network |
 |
|
 |
Radio |
 |
|
 |
Webcam |
 |
|
 |
StalkR PCs |
 |
|
 |
Top20 downloads |
 |
|
 |
Last 5 News |
 |
|
 |
Friends |
 |
|
 |
Extra |
 |
|
 |
Today's date |
 |
|
|
|
It's 6:29 am and we are on Thursday, December 4th 2008. 04/12/2008 @ 06:29:03
|
|
|
|
// *mooSTAT lib v2.3.1
// Copyright (C) 2003 Arnold B. & moolok.com
// Last modified: 28-07-2003
// Homepage: www.moolok.com
// *mooSTAT is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// *mooSTAT is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
//
// *mooSTAT lib, Copyright (C) 2002 Arnold B. & moolok.com
// *mooSTAT lib comes with ABSOLUTELY NO WARRANTY; This is free software,
// and you are welcome to redistribute it under certain conditions.
//
// For more details read LICENSE_EN.txt (english)
// For more details read LICENSE_DE.txt (deutsch)
//
require("mooTMP.php");
class mooSTAT extends mooTMP
{
function mooSTAT($sGameName){
if(!preg_match("/\bT2\b|\bRTCW\b|\bQ3\b|\bHL\b|\bCS\b|\bMOH\b|\bUT2003\b/i", $sGameName)){
die("ERROR in *mooSTAT: ".$sGameName." not supported");
}
$this->GameName = $sGameName;
$this->Timeout = 5;
$this->Response = '';
$this->useTemplate = 0;
$this->Template = '';
$this->finalStats = '';
$this->errst = 0;
$this->errmsg = '';
$this->CONST = array();
$this->CONST["Q3_SHOW_COLOR"] = true;
$this->CONST["Q3_COLOR_MAP"] = array("#000000","#FF0000","#00FF00","#FFFF00","#0000FF","#FF00FF","#00FFFF","#CCCCCC");
$this->CONST["T2_SHOW_COLOR"] = true;
$this->CONST["T2_TAG_COLOR"] = "#FFFF00";
}
function setOption($option, $value){
if(isset($this->CONST[$option])){
$this->CONST[$option] = $value;
}else die("UNKNOWN OPTION");
}
function useTemplate($status){
$this->useTemplate = $status;
}
function applyTemplate($sFile){
$this->Template = $sFile;
}
function setTimeout($sTime){
$this->Timeout = $sTime;
}
function Request($sHost,$sPort){
// Half-Life, Counter-Strike, other HL-mods etc.
if(preg_match("/\bHL\b|\bCS\b/i", $this->GameName)){
require('mooSTAT_hl.php');
return $this->errst ? 0 : 1;
}
// Return to Castle Wolfenstein, Quake3, Q3-mods etc.
elseif(preg_match("/\bQ3\b|\bRTCW\b/i", $this->GameName)){
require('mooSTAT_q3.php');
return $this->errst ? 0 : 1;
}
// Tribes 2
elseif(preg_match("/\bT2\b/i", $this->GameName)){
require('mooSTAT_t2.php');
return $this->errst ? 0 : 1;
}
// Medal of Honor
elseif(preg_match("/\bMOH\b/i", $this->GameName)){
require('mooSTAT_moh.php');
return $this->errst ? 0 : 1;
}
// Unreal Tournament 2003
elseif(preg_match("/\bUT2003\b/i", $this->GameName)){
require('mooSTAT_ut2003.php');
return $this->errst ? 0 : 1;
}
// unknown game
else{
$this->errmsg = "UNKNOWN GAME";
return 0;
}
}
function finalStats(){
return $this->finalStats;
}
}
?>
 |
*mooSTAT lib © 2002 Arnold B. / moolok.com -- modified by StalkR |
 |
|
|
| |
|
Fatal error: Class 'mooTMP' not found in /home/www-data/stalkr.net/moostat.php on line 48
| | |