From b89f5e1a5be96935b3ffbe9b77dcd44136c621f8 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 13 Sep 2010 08:36:05 +0000 Subject: [PATCH] add Authenticated check git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7426 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/lib/systemcmd.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-UI/lib/systemcmd.php b/xCAT-UI/lib/systemcmd.php index 6fc9be412..8925822a2 100644 --- a/xCAT-UI/lib/systemcmd.php +++ b/xCAT-UI/lib/systemcmd.php @@ -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 ("Please log in from the main page first!"); + exit; +} if (isset($_GET["cmd"])) { // HTTP GET requests