{<includes/global.inc}
{<includes/head.inc}

<div align=center>
{v.authed?
<form action=fileedit.w method=post name=fedit>
Select a file to edit \:<br><br>
<select name=filename>
<option value="{c.mapcyclefile}">Mapcycle ({c.mapcyclefile})</option>
<option value="autoexec.cfg">Autoexec Config</option>
<option value="{c.servercfgfile}">Server Config ({c.servercfgfile})</option>
<option value="{c.motdfile}">MOTD ({c.motdfile})</option>
<option value="addons/metamod/plugins.ini">MetaMod plugins</option>

{c.admin_plugin_file?<option value="{c.admin_plugin_file}">AdminMod plugins</option>}
{c.users_file?<option value="{c.users_file}">AdminMod admins</option>}
{c.ips_file?<option value="{c.ips_file}">AdminMod IPs</option>}
{c.statsme_version?<option value="addons/statsme/statsme.cfg">StatsMe config</option>}
{c.amx_version?
	<option value="addons/amx/config/amx.cfg">AMXMod config</option>
	<option value="addons/amx/config/users.ini">AMXMod admins</option>
	<option value="addons/amx/config/plugins.ini">AMXMod plugins</option>
	<option value="addons/amx/config/modules.ini">AMXMod modules</option>
}
{c.hlg_version?<option value="addons/hlguard/config/hlguard.cfg">HLGuard config</option>}
{c.clanmod_version?<option value="addons/clanmod/clanmod.cfg">ClanMod config</option>}
{c.m4_version?
{{c.m4_server=LIGHT}?
	<option value="addons/m4/light.cfg">M4 Light general config</option>:
	<option value="addons/m4/mysql.cfg">M4 MySQL config</option>}
	<option value="addons/m4/match.cfg">M4 Match config</option>
	<option value="addons/m4/normal.cfg">M4 Normal config</option>
}
{c.p2_version?<option value="addons/p2/p2.cfg">P2 config</option>
{{c.p2_data=file}?<option value="addons/p2/players.cfg">P2 players</option>}}

</select>
<input type=submit value=Edit>
</form>
:
{h.location:/auth.w?redir=/config.w}
}
</div>

{<includes/tail.inc}
