From 365a26448ce68c3f49a9e8b036769aee00c954b5 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 30 Sep 2008 20:57:53 +0000 Subject: [PATCH] -Unify the login and noderange experiment into a single index.html git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2269 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-web-exp/index.html | 178 ++++++++++++++++++++++++++++++++++++++++ xCAT-web-exp/log.php | 44 ++++++++++ 2 files changed, 222 insertions(+) create mode 100644 xCAT-web-exp/index.html create mode 100644 xCAT-web-exp/log.php diff --git a/xCAT-web-exp/index.html b/xCAT-web-exp/index.html new file mode 100644 index 000000000..530e9270a --- /dev/null +++ b/xCAT-web-exp/index.html @@ -0,0 +1,178 @@ + + + +xCAT WebUI + + + + + + + + + + + +
Noderange:
+
+ +
+
+
+
+
+
+ +
+ + diff --git a/xCAT-web-exp/log.php b/xCAT-web-exp/log.php new file mode 100644 index 000000000..6988fd240 --- /dev/null +++ b/xCAT-web-exp/log.php @@ -0,0 +1,44 @@ +{'xcatresponse'}->{'data'})) { + $result="".$testcred->{'xcatresponse'}->{'data'}; + if (is_numeric(strpos("Authenticated",$result))) { + $_SESSION["xcatpassvalid"]=1; #proven good + } else { + $_SESSION["xcatpassvalid"]=0; #proven bad + } + } + } + } + $jdata=array(); + if (isset($_SESSION["xcatpassvalid"]) and $_SESSION["xcatpassvalid"]==1) { + $jdata["authenticated"]="yes"; + } else { + $jdata["authenticated"]="no"; + } + + echo json_encode($jdata); +?> +