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 (1 == $_REQUEST["remember"]) { setcookie("xcatrepository", "1", time() + 864000, "/"); } elseif(2 == $_REQUEST["remember"]) { setcookie("xcatrepository", "2", time() + 864000, "/"); } else { setcookie("xcatrepository", $sRpmPath, time() + 864000, "/"); } echo "
    It will update " . $sRpmNames ." from " . $sRpmPath . ".
    "; ?>