<?php
	$break = explode('/', $_SERVER["SCRIPT_NAME"]);
	if($break[count($break) - 1] != "index.php") { exit(); }
?>
		  <h1>Add New Server Entry</h1><hr>
		  <b>Only use characters a-z, A-Z, and 0-9; using any other characters in the server name field could cause this universe to not function properly!</b><br><br>
		  <form name="addServerForm" action="process.php" method="POST">
		  Server Name: <input type="text" name="server_name" size="20" value="Short Name (eg. 'KOA')">&nbsp;&nbsp;Server URL: <input type="text" name="server_url" size="22" value="127.0.0.1:7777"><br>
		  Server TCP Port: <input type="text" name="server_tcpport" size="4" value="7777">&nbsp;&nbsp;Cache Time (seconds): <input type="text" name="briefinfo_cachetime" size="3" value="60"><br><input type="checkbox" name="allow_local_lookup" value="1" checked> Allow Local Player Information Lookups<br><input type="checkbox" name="allow_universal_lookup" value="1" checked> Allow Universal Player Information Lookups<br>
		  <p align="right"><input type="submit" value="Save New Entry">&nbsp;&nbsp;&nbsp;&nbsp;</p>
		  <input type="hidden" name="addserversubmit" value="1"></form><br>
<?php
	$database->printAdminServerList();
?>