include("../include/irm.inc");
AuthCheck("5");
commonHeader("ITC Servers - Add Form");
if ($add == 1)
{
PRINT "
Server Added Successfully
";
PRINT "
";
}
if ($withtemplate == 1)
{
$templID = $ID;
$query = "SELECT * FROM templates WHERE (ID = $ID)";
$sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$result = $sth->fetchrow_hash();
$templname = $result["templname"];
include("../include/table.inc");
$iface = $result["iface"];
} else
{
PRINT "Could not prepare query: ".$sth->errstr."
\n";
}
}
PRINT "Use this form to add a server from template \"$templname\":
";
PRINT "";
PRINT "
";
?>