include("../include/irm.inc");
AuthCheck("8");
$user = new User($IRMName);
$type = $user->getTypeU();
$IRMemail = $user->getEmail();
if($type != "post-only")
{
$uname = $IRMName;
$fname = $user->getFullname();
$uemail = $IRMemail;
}
//if($is_group == "yes")
//{
// $query = "select ID from groups where (name = \"$groupname\")";
// $sth = $adb->prepare($query);
// if($sth)
// {
// $res = $sth->execute();
// $result = $sth->fetchrow_hash();
// $ID = $result["ID"];
// } else
// {
// PRINT "Could not prepare query: ".$sth->errstr."
\n";
// }
//}
if($is_group == "no")
{
$query = "SELECT name FROM computers WHERE (ID = $ID)";
$nodetype = "server";
} else
{
$query = "SELECT name FROM groups WHERE (ID = $ID)";
$nodetype = "system";
}
$sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$numRows = $sth->rows();
} else
{
PRINT "Could not prepare query: ".$sth->errstr."
\n";
}
if ($numRows != 1)
{
commonHeader("IRM Tracking - Bad ID Number");
PRINT "It appears that you have entered an incorrect IRM server ID or
system ID number. Please try again.
";
commonFooter();
exit();
}
commonHeader("IRM Tracking - Add Job");
?>
You can use this form to submit a problem report or request help with a
server resource.
Please fill out the entire form as clearly as possible.