<?
my $act = $request->get("type");
if($act eq "static") {
	my $z = $request->get("zone");
	if($z eq "") {
		print "Invalid zone name.";
	} else {
		$EQW->BootStaticZone($z);
		$request->SetResponseCode(302);
		$request->header("Location", "zones.html");
		print "Booting static zone $z...";
	}
	print "<hr/>\n";
} elsif($act eq "dynamic") {
	$EQW->BootDynamicZone();
	$request->SetResponseCode(302);
	$request->header("Location", "zones.html");
	print "Booting a dynamic zone...";
	print "<hr/>\n";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" title="Default" href="main.css" type="text/css" />
</head>
<body>
<h2 align="center">Boot A New Zone</h2>
<hr/>
<form name="form1" method="post" action="?">
Zone Type:<br />
<input name="type" type="radio" value="dynamic" checked> Dynamic <br/>
<input name="type" type="radio" value="static"> Static. Short Name: <input type="text" name="zone"> <br/>
<br>
<input type="submit" value="Boot">
</form>
</body>
</html>
