add msg for create statelite and stateless image on web gui

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9237 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2011-04-07 07:57:24 +00:00
parent c25d831f0a
commit 9ecea8abde

View File

@ -19,6 +19,11 @@ if (!isAuthenticated()){
if (isset($_GET["cmd"])) {
// HTTP GET requests
$cmd = $_GET["cmd"];
$msg = NULL;
if (isset($_GET["msg"])){
$msg = $_GET["msg"];
}
$ret = "";
if ("ostype" == $cmd) {
@ -28,6 +33,6 @@ if (isset($_GET["cmd"])) {
$ret = shell_exec($cmd);
}
echo json_encode(array("rsp"=>$ret));
echo json_encode(array("rsp"=>$ret, "msg" => $msg));
}
?>