add Authenticated check

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7426 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2010-09-13 08:36:05 +00:00
parent 80c5bb38af
commit b89f5e1a5b

View File

@ -12,6 +12,10 @@ require_once "$TOPDIR/lib/jsonwrapper.php";
* @param $cmd The system command
* @return The system response. Replies are in the form of JSON
*/
if (!isAuthenticated()){
echo ("<b>Please log in from the main page first!</b>");
exit;
}
if (isset($_GET["cmd"])) {
// HTTP GET requests