Please input a filepath.";
exit;
}
$sRpmNames = $_REQUEST['rpmname'];
if ("" == $sRpmNames)
{
echo "";
exit;
}
if (!checkRpmPath($sRpmPath))
{
echo "
Repository Path Error!!";
echo "";
return;
}
//set cookie must in front of any output
if (isset($_REQUEST["remember"]))
{
setcookie("xcatrepository", $sRpmPath, time() + 864000, "/");
}
else
{
setcookie("xcatrepository", "", time() - 172800, "/");
}
echo "It will update
" . $sRpmNames ." from
" . $sRpmPath . ".
";
echo "- Repository Path Check OK!
";
$Ret = docmd("webrun", array(), array("update", $sRpmNames, $sRpmPath));
var_dump($Ret);
echo "
";
?>