";
$id = $_POST['id'];
$name = $_POST['name'];
$revision = $_POST['revision'];
$priority= $_POST['priority'];
$reboot = $_POST['reboot'];
$execute = $_POST['execute'];
$installcmd = $_POST['installcmd'];
$installcmd2 = $_POST['installcmd2'];
$installcmd3 = $_POST['installcmd3'];
$removecmd = $_POST['removecmd'];
$upgrademd = $_POST['removecmd'];
$filename = "../packages/packages/" . $id . ".xml";
$software='%SOFTWARE%\\';
$file = fopen($filename, 'w') or die("Failed to open file $filename");
$xmldata = '
';
if($installcmd2 != $software || $installcmd2 != '')
{
$xmldata = $xmldata . '';
}
if($installcmd3 != $software || $installcmd3!='')
{
$xmldata = $xmldata . '';
}
$xmldata = $xmldata . "";
fwrite($file,$xmldata);
fclose($file);
echo "
";
echo "
\n";
echo "\n";
include "include_right_column.php";
?>