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:
parent
80c5bb38af
commit
b89f5e1a5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user