<?php

//##################################################################
//#------------------------- Features -----------------------------#
//#  Specify here which features you would like to be activated    #
//#  You must enter true or false in lowercase only!               #
//##################################################################

//Set to true if you want the rank system active
$feature_ranks = true;
//Set to true if you want /nextrank to show the difference in record positions,
// i.e. the combined number of positions that your records need to be improved
// in order to catch up with the next better ranked player
$nextrank_show_rp = true;

//Set to true if you want all times recorded, and /pb command to be active
$feature_stats = true;
//Set to true to always show PB at map start
//If false and <show_recs_before> is 2 or 6 AND player has ranked record, OR
// player uses the records panel, then PB message is not shown at map start
$always_show_pb = true;

//Set to true ONLY if you use the karma feature.
//If you set this to true when you are not, it will produce errors
$feature_karma = true;
//Set to true if you allow ++ & -- votes as well as /++ & /--
$allow_public_karma = true;
//Set to true if you want to show the karma message at the start of each map
$karma_show_start = true;
//Set to true if you want to show vote counts & percentages
$karma_show_details = true;
//Set to true if you want to show players their actual votes
$karma_show_votes = true;
//Set to the number of times a player should have finished a map before
//being allowed to karma vote for it
//Note: this is the total number of finishes since the first time a player
//tried a map, not the number in the current session
$karma_require_finish = 0;
//Remind player to vote karma if [s]he hasn't yet
$remind_karma = 0;  // 2 = every finish; 1 = at end of race; 0 = none

//Set to true if you want jukebox functionality
$feature_jukebox = true;
//Set to true if you want jukebox to be extended to include the MX /add feature
$feature_mxadd = false;
//Set to true if you want jukebox to skip maps requested by players that left
$jukebox_skipleft = true;
//Set to true if you want jukebox to _not_ skip maps requested by admins
//(any tier) that left (and $jukebox_skipleft is true)
$jukebox_adminnoskip = false;
//Set to true if you want /add to permanently add maps to the server
$jukebox_permadd = false;
//Set to true if you want /admin add to automatically jukebox the downloaded map (just like a passed /add vote)
$jukebox_adminadd = true;
//Set to true if you want jukebox messages diverted to message window
$jukebox_in_window = false;

//Set to contact (email, ICQ, etc) to show in /server command, leave empty to skip entry
$admin_contact = 'YOUR@EMAIL.COM';

//Set to filename to enable autosaving matchsettings upon every map switch
$autosave_matchsettings = '';  // e.g. 'autosave.txt'

//Set to true if you want start-up to prune records/rs_times for players and
// maps deleted from database, and for maps deleted from the server
//Only enable this if you know what you're doing!
$prune_records_times = false;

//Set to true if you want to disable normal CallVotes & enable chat-based votes
$feature_votes = false;

//Set to true to perform XASECO2 version check at start-up & MasterAdmin connect
$uptodate_check = true;

//Set to true to perform global blacklist merge at MasterAdmin connect
$globalbl_merge = false;

//Set to global blacklist in XML format, same as <blacklist_url> in dedicated_cfg.txt
// e.g. http://www.gamers.org/tmf/dedimania_blacklist.txt (TMF-only)
$globalbl_url = '';

//##################################################################
//#-------------------- Performance Variables ---------------------#
//#  These variables are used in the main plugin.                  #
//#  They specify how much data should be used for calculations    #
//#                                                                #
//#  If your server slows down considerably when calculating       #
//#  ranks it is recommended that you lower/increase these values  #
//##################################################################

//Sets the maximum number of records stored per map
// Lower = Faster
$maxrecs = 50;

//Sets the minimum amount of records required for a player to be ranked
// Higher = Faster
$minrank = 3;

//Sets the number of times used to calculate a player's average
// Lower = Faster
$maxavg = 10;

//##################################################################
//#-------------------- Jukebox Variables -------------------------#
//#  These variables are used by the jukebox.                      #
//##################################################################

//Specifies how large the map history buffer is.
//If a map that is in the buffer gets requested, it won't be jukeboxed.
$buffersize = 20;

//Specifies the required vote ratio for a MX /add request to be successful.
$mxvoteratio = 0.66;

//The location of the maps folders for saving MX maps, relative
//to the dedicated server's UserData/Maps/ directory:
//$mxdir for maps downloaded via /admin add, and user maps approved
//  via /admin addthis.
//$mxtmpdir for maps downloaded via /add user votes.
//There must be full write permissions on these folders.
//In linux the command will be:  chmod 777.
//Regardless of OS, use the / character for pathing.
$mxdir = 'MX';
$mxtmpdir = 'MXtmp';

//##################################################################
//#------------------------ IRC Variables -------------------------#
//#  These variables are used by the IRC plugin.                   #
//##################################################################

$CONFIG = array();
$CONFIG['server'] = 'localhost';  // server (i.e. irc.gamesnet.net)
$CONFIG['nick'] = 'botname';  // nick (i.e. demonbot)
$CONFIG['port'] = 6667;  // port (standard: 6667)
$CONFIG['channel'] = '#channel';  // channel (i.e. #php)
$CONFIG['name'] = 'botlogin';  // bot name (i.e. demonbot)
$show_connect = false;  //If set to true, the IRC connection messages will be displayed in the console.

//-----------------------------------------
//Do not modify anything below this line...
//-----------------------------------------
$linesbuffer = array();
$ircmsgs = array();
$outbuffer = array();
$con = array();
$jukebox = array();
$jb_buffer = array();
$mxadd = array();
$mxplaying = false;
$mxplayed = false;
?>
