ecco il file:
Codice: Seleziona tutto
<?php
/***************************************************************************
* Xlrstats Webmodule
* Webrfront for XLRstats for B3 (www.bigbrotherbot.com)
* (c) 2004-2008 www.xlr8or.com (mailto:xlr8or@xlr8or.com)
***************************************************************************/
/***************************************************************************
* This program 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.
*
* This program 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 Library 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.
*
* http://www.gnu.org/copyleft/gpl.html
***************************************************************************/
//*******************
// Global config
//*******************
// Database login info
$db_host = "localhost";
$db_user = "stats";
$db_pass = "xxx";
$db_db = "stats";
// What game? (urt, cod1, coduo, cod2, cod4, codwaw, wop)
$game = "urt";
$public_ip = "192.168.1.167:27960";
// This is the path where B3 stores the status.xml file. May be an absolute path or an URL. (Use forward slashes / only!)
$b3_status_url = "http://192.168.1.167/xlrstats/";
// URL to my website, make empty if XLRstats is standalone.
$mysiteurl = "www.webopensource.org"; // URL (without the http:// part!) -> "" if you dont want a link to a homepage included
$mysitelinkname = "webopensource.org"; // Short name that appears in navigation to describe the link back to your site
$template = "xlrstats";
// Use signature module? --> You must have php version 4.3.2 or newer with php4-gd extension installed!
$sig = 0;
// Title of the statistics pages
$statstitle = "XLRstats, real time gamestats!";
// Number of players/maps/weapons in mainpage top lists
$toplist_max = 25;
$maplist_max = 13;
$weaplist_max = 13;
$separatorline = 1; //Draw a 1 pixel separator line in the toplist between rows? 0 = nope, 1 = yep.
// Nubmer of players in block.php an inclusion file for websites.
$toplist_block = 5;
// number of characters in username (block) before breaking off.
$user_length = 14;
// minimum amount of kills or rounds (which ever comes first) before a player is included in the mainpage player statistics and awards...
$minkills = 1000; //10 //250;
$minrounds = 50; //14 //15;
$ShowRatioGraph = 1;
// For the ratio bar
$MaxKillRatio = 0;
//number of days a player is still displayed if he hasn't played anymore.
$maxdays = 14;
// Minimum kills or rounds (which ever comes first) before a player is displayed on map-page
$map_minkills = 100;
$map_minrounds = 20;
// Minimum kills before a player is displayed on weapon-page
$weap_minkills = 25;
// Minimum grouplevel to hide aliases on playerpages, this will show aliases for players with a lower level. Disable aliases by setting it to 0
$aliashide_level = 2;
// Limit playerspecific stats for unregistered players
$limitplayerstats = 1;
// Number of worst enemies in personal playerpages
$enemies_max = 13;
// Do you want a Clan search filter on the index page? (0 = nope, 1 = yep)
$showclansearch = 1;
// Do you want to display times for your local timezone? (0 = no, just use GMT; 1 = yes)
$use_localtime = 1;
// Do you want to have current player list (0 no, 1 yes) //Anubis
$useppllist = 1;
// Setting the next var to 1 will make playerlist not show teaminfo, just the online players (circumventing the cod4 teambug)
$pll_noteams = 0;
//// Show the stylepicker (0 disables, options are: left, right, footer)
$stylepicker = "right";
// Use GeoIP information in playerpages? (if the files do not exist it will be automatically disabled)
// Read the README.TXT for more info.
$geoip_path = "/path/to/your/geoIP/";
// Windows users: use forward slashes like this:
// $geoip_path = "C:/path/to/your/geoIP/";
// setting to 0 will disable debug phpinfo
$debug = 1;
//********************
// Table names
//********************
// B3 tables
$t['b3_clients'] = "clients";
$t['b3_groups'] = "groups";
$t['b3_aliases'] = "aliases";
$t['b3_penalties'] = "penalties";
$t['b3_ctime'] = "ctime";
//stats tables
$t['players'] = "xlr_playerstats";
$t['weapons'] = "xlr_weaponstats";
$t['maps'] = "xlr_mapstats";
$t['bodyparts'] = "xlr_bodyparts";
$t['opponents'] = "xlr_opponents";
$t['weaponusage'] = "xlr_weaponusage";
$t['playerbody'] = "xlr_playerbody";
$t['playermaps'] = "xlr_playermaps";
//********************
// leave the next lines alone please
//********************
include('ranks.php');
include('awards.php');
include($game.'.php');
?>
ovviamente se ne conoscete altri posso usarne un altro.
