{<includes/global.inc}
{<includes/head.inc}
<div align="center"><b>general information</b></div><br>

{v.mappic:/mappics/{W.map}.jpg}
{v.mapok:{@file_exists:{W.moddir}/addons/w/www{v.mappic}}}
{v.transp:{v.mapok?transp:normcell}}

<table align="center" cellspacing="2" cellpadding="5" width="300" height="225"{v.mapok? background="{v.mappic}"}>

<tr><td class="{v.transp}" width="50%">
<div align="right">hostname</div>
</td><td class="{v.transp}" width="50%">
<b>{c.hostname}</b>
</td></tr>

<tr><td class="{v.transp}">
<div align="right">players</div>
</td><td class="{v.transp}">
<b>{W.users}/{W.maxplayers}</b>
{{W.users=W.players}?:({W.players} active)}
{v.p2known:0}{{{I.p2=i.p2}&{W.users>0}}?<br><font size=-2>({v.p2known:{@p2_known}}{v.p2known} known by p2)</font>}
</td></tr>

{{C.mapcycle=0}?{v.mapcycle:0}}
{{C.mapcycle=1}?{v.mapcycle:1}}
{{G.mapcycle=0}?{v.mapcycle:0}{C.mapcycle:0}}
{{G.mapcycle=1}?{v.mapcycle:1}{C.mapcycle:1}}

<form action=changelevel.w method=post name=changelevel>
<tr><td class="{v.transp}">
<div align="right">map
{v.authed?<font size="-3" color="orange"><br>{v.mapcycle?<b><u>mapcycle</u></b> - <a href="/?mapcycle=0">all maps</a>:<a href="/?mapcycle=1">mapcycle</a> - <b><u>all maps</u></b>}</font>}
</div>
</td><td class="{v.transp}">
{{v.authed=0}?<b>{W.map}</b>:
<select name="mapname" onChange="javascript\:if(confirm('Change map to '+mapname.options[mapname.selectedIndex].text+' ?'))changelevel.submit();">
{v.mapcycle?
{L.L:v.mapname:
:{@trim:{<<{W.moddir}/{c.mapcyclefile}}}:<option name={v.mapname}{{v.mapname=W.map}? selected}>{v.mapname}</option>}
:{L.m:<option name={m.name}{{m.name=W.map}? selected}>{m.name}</option>}}
</select>
}
</td></tr>
</form>

<tr><td class="{v.transp}">
<div align="right">password</div>
</td><td class="{v.transp}">
<b>{c.sv_password?{v.authed?{c.sv_password}:yes}:no}
</td></tr>

<tr><td class="{v.transp}">
<div align="right">timelimit</div>
</td><td class="{v.transp}">
<b>{c.mp_timelimit}mn
</td></tr>

<tr><td class="{v.transp}">
<div align="right">round time</div>
</td><td class="{v.transp}">
<b>{c.mp_roundtime}mn
</td></tr>

<tr><td class="{v.transp}">
<div align="right">bomb timer</div>
</td><td class="{v.transp}">
<b>{c.mp_c4timer}s
</td></tr>

<tr><td class="{v.transp}">
<div align="right">friendly-fire</div>
</td><td class="{v.transp}">
<b>{c.mp_friendlyfire?yes:no}</b>
</td></tr>

</table>

<br><br>
<div align="center"><b>software info</b></div><br>
<table width="300" align="center" cellspacing="2" cellpadding="5">
<tr><td class="normcell" align="right" width="50%"><b>OS</b></td><td class="normcell" width="50%">{W.OS}</td></tr>
{c.p2_version?<tr><td class="normcell" align="right"><a href="http\://djeyl.net/p2.php?language=english" target="_blank"><b>P2</b></a></td><td class="normcell">{c.p2_version}</td></tr>}
{c.chicken_version?<tr><td class="normcell" align="right"><a href="http\://djeyl.net/chickenmod.php?language=english" target="_blank"><b>ChickenMod</b></a></td><td class="normcell">{c.chicken_version}</td></tr>}
{c.m4_version?<tr><td class="normcell" align="right"><a href="http\://djeyl.net/m4.php?language=english" target="_blank"><b>M4</b></a></td><td class="normcell">{c.m4_version}</td></tr>}
<tr><td class="normcell" align="right"><a href="http://djeyl.net/w.php?language=english" target="_blank"><b>W</b></a></td><td class="normcell">{c.w_version}</td></tr>
{c.admin_mod_version?<tr><td class="normcell" align="right"><a href="http\://www.adminmod.org" target="_blank"><b>AdminMod</b></a></td><td class="normcell">{c.admin_mod_version}</td></tr>}
{{c.logd_debug!}?<tr><td class="normcell" align="right"><a href="http\://logd.sourceforge.net/" target="_blank"><b>LogD</b></a></td><td class="normcell">yes</td></tr>}
{{c.damp_debug!}?<tr><td class="normcell" align="right"><a href="http\://logd.sourceforge.net/damp/" target="_blank"><b>DamageAmp</b></a></td><td class="normcell">yes</td></tr>}
{c.amx_version?<tr><td class="normcell" align="right"><a href="http\://amxmod.net" target="_blank"><b>AMXMod</b></a></td><td class="normcell">{c.amx_version}</td></tr>}
{c.headshot_version?<tr><td class="normcell" align="right"><a href="http\://www.olo.counter-strike.pl" target="_blank"><b>HeadShot</b></a></td><td class="normcell">{c.headshot_version}</td></tr>}
{c.plbot_version?<tr><td class="normcell" align="right"><a href="http\://www.olo.counter-strike.pl" target="_blank"><b>PLBot</b></a></td><td class="normcell">{c.plbot_version}</td></tr>}
{c.fakefull_version?<tr><td class="normcell" align="right"><a href="http\://www.olo.counter-strike.pl" target="_blank"><b>FakeFull</b></a></td><td class="normcell">{c.fakefull_version}</td></tr>}
{c.statsme_version?<tr><td class="normcell" align="right"><a href="http\://www.unitedadmins.com" target="_blank"><b>StatsMe</b></a></td><td class="normcell">{c.statsme_version}</td></tr>}
{c.clanmod_version?<tr><td class="normcell" align="right"><a href="http\://www.unitedadmins.com" target="_blank"><b>ClanMod</b></a></td><td class="normcell">{c.clanmod_version}</td></tr>}
{c.hlg_version?<tr><td class="normcell" align="right"><a href="http\://www.unitedadmins.com" target="_blank"><b>HLGuard</b></a></td><td class="normcell">{c.hlg_version}</td></tr>}
{c.booster_version?<tr><td class="normcell" align="right"><a href="http\://hullu.xtragaming.com/" target="_blank"><b>HL-Booster</b></a></td><td class="normcell">{c.booster_version}</td></tr>}
{c.laserbeam_version?<tr><td class="normcell" align="right"><a href="http\://hullu.xtragaming.com/" target="_blank"><b>LaserBeam</b></a></td><td class="normcell">{c.laserbeam_version}</td></tr>}
{c.playername_version?<tr><td class="normcell" align="right"><a href="http\://hullu.xtragaming.com/" target="_blank"><b>PlayerName</b></a></td><td class="normcell">{c.playername_version}</td></tr>}
{c.scp_version?<tr><td class="normcell" align="right"><a href="http\://hullu.xtragaming.com/" target="_blank"><b>Spawn & Chat Prot.</b></a></td><td class="normcell">{c.scp_version}</td></tr>}
{c.wrecoil_version?<tr><td class="normcell" align="right"><a href="http\://hullu.xtragaming.com/" target="_blank"><b>WeaponRecoil</b></a></td><td class="normcell">{c.wrecoil_version}</td></tr>}
{c.axn_version?<tr><td class="normcell" align="right"><a href="http\://free.prohosting.com/~deedee/" target="_blank"><b>AXN</b></a></td><td class="normcell">{c.axn_version}</td></tr>}
{c.bmx_version?<tr><td class="normcell" align="right"><a href="http\://free.prohosting.com/~deedee/" target="_blank"><b>BMX</b></a></td><td class="normcell">{c.bmx_version}</td></tr>}
{c.wwclconfig_version?<tr><td class="normcell" align="right"><a href="http\://www.wwcl.net/index.php?country=gb" target="_blank"><b>WWCLConfig</b></a></td><td class="normcell">{c.wwclconfig_version}</td></tr>}
{c.logmod_version?<tr><td class="normcell" align="right"><a href="http\://logmod.hlsw.de/index-en.html" target="_blank"><b>LogMod</b></a></td><td class="normcell">{c.logmod_version}</td></tr>}
{{c.stripper2_log!}?<tr><td class="normcell" align="right"><a href="http\://www.planethalflife.com/botman/stripper2.shtml" target="_blank"><b>Stripper2</b></a></td><td class="normcell">yes</td></tr>}
{{c.monster_log!}?<tr><td class="normcell" align="right"><a href="http\://www.planethalflife.com/botman/monster.shtml" target="_blank"><b>Monster</b></a></td><td class="normcell">yes</td></tr>}
</table>
<br><br>

<div align="center"><b>connected players</b>{v.p2known?<br><font size=-2>(bold \: known by p2)</font>}</div><br>
<table width="300" align="center" cellspacing="1" cellpadding="4">
<tr>
<td class="normcell" width=20><div align="right"><b>#</b></div></td>
<td class="normcell"><b>name</b></td>
<td class="normcell" width=40><div align="center"><b>f</b> / <b>d</b></div></td>
<td class="normcell" width=40><div align="right"><b>wonid</b></div></td>
</tr>
{W.players?
{L.p:
{{I.p2=i.p2}?{v.isknown:{{@p2_knownid:{p.id}}?1:0}}}
{v.celltype:{p.team?team{p.team}:normcell}}
<tr>
<td class="{v.celltype}"><div align="right">{p.id}</div></td>
<td class="{v.celltype}">{{p.dead&{{p.team!SPECTATOR}&{p.team!UNASSIGNED}}}?<img src=images/skull.gif>}{p.bomb?<img src=images/c4.gif>} {p.vip?<img src=images/vip.gif>} {v.isknown?<b>}{v.authed?<a href="player.w?uid={p.uid}">{p.name}</a>:{p.name}}{v.isknown?</b>}</td>
<td class="{v.celltype}"><div align="center">{p.frags} / {p.deaths}</div></td>
<td class="{v.celltype}"><div align="right">{p.ip}</div></td>
</tr>
}
:
<tr><td class="normcell" colspan="4"><div align="center"><i>no active players</i>{W.users?<br>({W.users} currently connecting)}</div></td></tr>}
</table>

<br><br>
<div align="center"><b>team scores</b></div><br>
<table width="300" align="center" cellspacing="1" cellpadding="4">
<tr><td class="teamTERRORIST" width="80%">Terrorists</td><td class="teamTERRORIST"><div align="right">{@teamscore:TERRORIST}</div></td></tr>
<tr><td class="teamCT" width="80%">Counter-Terrorists</td><td class="teamCT"><div align="right">{@teamscore:CT}</div></td></tr>
</table>

<br><br>
<div align="center"><b>game rules</b></div><br>
<table width="300" align="center" cellspacing="1" cellpadding="4">
{L.l:v.cvarname:pausable,sv_contact,sv_voiceenable,sv_proxies,mp_footsteps,sv_allowupload,sv_allowdownload,sv_minrate,sv_maxrate:
<tr><td class="normcell">{v.cvarname}</td><td class="normcell"><div align="right">{c.{v.cvarname}}</div></td></tr>}
</table>
{<includes/tail.inc}
