<?php

//Setup Config Variables
global $conf;

//All Paths must use forward (/) slashes
//A slash (/) at the end is not required

$conf['template'] = 'query.html';
$conf['rulefilter'] = array('_tutor_','max_','teamlist');
$conf['imagespath'] = 'C:\WWW/shstats30/images/mappics';
$conf['imagesurl'] = '/shstats30/images/mappics/';
$conf['imageext'] = 'jpg';
$conf['imagemiss'] = 'noimage';
$conf['mappath'] = 'C:\WWW/shstats30/images/maps/';
$conf['mapurl'] = '/shstats30/maps/';
$conf['mapext'] = 'zip';
$conf['dllinktxt'] = 'image';
$conf['dlnolinktxt'] = 'No Download';

//Query Timeout
$conf['timeout'] = 2;

/*******************************************************************************

Variables that can be used in the Template

*** Standard Query Variables ***
$serverIP = $query->serverIP;
$serverPort = $query->serverPort;
$serverPing = $query ->serverPing;
$serverName = htmlspecialchars($query->hostName,ENT_QUOTES);
$mapname = htmlspecialchars($query->map,ENT_QUOTES);
$gamedir = htmlspecialchars($query->gameDir,ENT_QUOTES);
$gamename = htmlspecialchars($query->gameType,ENT_QUOTES);
$numPlayers = $query->numPlayers;
$maxPlayers = $query->maxPlayers;
$numBots = $query->numBots;
$dedicated = $query->Dedicated == 1 ? "Yes" : "No";
$serverOS = $query->OS == 'l' ? "Linux" : "Windows";
$password = $query->password == 1 ? "Yes" : "No";
$secure = $query->secure == 1 ? "Yes" : "No";
$protocol = htmlspecialchars($query->netVersion,ENT_QUOTES);
$gameVersion = htmlspecialchars($query->gameVersion,ENT_QUOTES);
$appID = $query->appID;

*** Special Case Variables ***

$ruleName, $ruleValue

Example:
	<SELECT size=1 class=query>
		<!--rules-->
		<option>$ruleName = $ruleValue</option>
		<!--rules-end-->
	</SELECT>


$playerName, $playerKills, $playerTime

Example:
	<!--players-->
	<TR class=even>
		<TD>$playerName</TD>
		<TD>$playerKills</TD>
		<TD>$playerTime</TD>
	</TR>
	<!--players-next-->
	<TR class=odd>
		<TD>$playerName</TD>
		<TD>$playerKills</TD>
		<TD>$playerTime</TD>
	</TR>
	<!--players-end-->

*** Extra Variables ***

$applaunch - This can be used in an href link and will launch steam and connect to the server
$imageurl
$mapdlurl
$dllink
$timeleft
$noPlayers = $numPlayers == 0 ? "No Players in Server" : "&nbsp;";

*********************************************************************************/

?>