Cleaned up code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9328 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -120,7 +120,7 @@ function loadMonitorPage() { | ||||
| 			} | ||||
| 						 | ||||
| 			var monTable = $('<table></table>'); | ||||
| 			monTable.append($('<thead><tr><th>Monitor Tool</th><th>Status</th><th>Description</th></tr></thead>')); | ||||
| 			monTable.append($('<thead><tr><th><b>Monitor Tool</b></th><th><b>Status</b></th><th><b>Description</b></th></tr></thead>')); | ||||
| 			 | ||||
| 			var monTableBody = $('<tbody></tbody>'); | ||||
| 			monTable.append(monTableBody);			 | ||||
|   | ||||
| @@ -10,9 +10,9 @@ require_once "$TOPDIR/lib/jsonwrapper.php"; | ||||
|  * own .php.  Look at zCmd.php for an example. | ||||
|  * | ||||
|  * @param 	$cmd	The xCAT command | ||||
|  * 			$tgt	The target node or group | ||||
|  * 			$args	The xCAT command arguments, separated by semicolons | ||||
|  * 			$opts	The xCAT command options, separated by semicolons | ||||
|  * @param	$tgt	The target node or group | ||||
|  * @param 	$args	The xCAT command arguments, separated by semicolons | ||||
|  * @param	$opts	The xCAT command options, separated by semicolons | ||||
|  * @return 	The xCAT response.  Replies are in the form of JSON | ||||
|  */ | ||||
| if (isset($_GET["cmd"])) { | ||||
|   | ||||
| @@ -15,9 +15,9 @@ ini_set('display_errors', true); | ||||
|  * Run a command using the xCAT client/server protocol | ||||
|  * | ||||
|  * @param 	$cmd			The xCAT command | ||||
|  * 			$nr				Node range or group | ||||
|  * 			$args_array		Command arguments | ||||
|  * 			$opts_array		Command options | ||||
|  * @param	$nr				Node range or group | ||||
|  * @param	$args_array		Command arguments | ||||
|  * @param	$opts_array		Command options | ||||
|  * @return 	A tree of SimpleXML objects. | ||||
|  * 			See perl-xCAT/xCAT/Client.pm for the format | ||||
|  */ | ||||
| @@ -165,7 +165,7 @@ function submit_request($req, $skipVerify, $opts_array){ | ||||
|  * Enable password storage to split between cookie and session variable | ||||
|  * | ||||
|  * @param 	$data | ||||
|  * 			$key | ||||
|  * @param	$key | ||||
|  * @return | ||||
|  */ | ||||
| function xorcrypt($data, $key) { | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| <?php | ||||
|  | ||||
| require_once "functions.php"; | ||||
| require_once "jsonwrapper.php"; | ||||
|  | ||||
| @@ -48,7 +47,7 @@ if (isset($_POST['f'])){ | ||||
| else{ | ||||
| 	$temp = $query . '&c=1&k=' . urlencode($_POST['k']); | ||||
| } | ||||
|   | ||||
|  | ||||
| $output = rconsSynchronise($temp); | ||||
| if (0 < substr_count($output, 'error')){ | ||||
| 	echo (array('err'=>$output)); | ||||
|   | ||||
| @@ -20,10 +20,10 @@ if (isset($_GET["cmd"])) { | ||||
| 	// HTTP GET requests | ||||
| 	$cmd = $_GET["cmd"]; | ||||
| 	$msg = NULL; | ||||
| 	 | ||||
|  | ||||
| 	if (isset($_GET["msg"])){ | ||||
| 		$msg = $_GET["msg"]; | ||||
| 	}	 | ||||
| 	} | ||||
| 	$ret = ""; | ||||
|  | ||||
| 	if ("ostype" == $cmd) { | ||||
|   | ||||
| @@ -8,7 +8,7 @@ require_once "$TOPDIR/lib/jsonwrapper.php"; | ||||
|  * Replace the contents of an xCAT table | ||||
|  * | ||||
|  * @param 	$tab	The xCAT table | ||||
|  * 			$cont	The xCAT table contents | ||||
|  * @param	$cont	The xCAT table contents | ||||
|  * @return The xCAT response.  Replies are in the form of JSON | ||||
|  */ | ||||
| if (isset($_POST["table"])) { | ||||
|   | ||||
| @@ -8,8 +8,8 @@ require_once "$TOPDIR/lib/jsonwrapper.php"; | ||||
|  * Issue an xCAT command (only for z) | ||||
|  * | ||||
|  * @param 	$cmd	The xCAT command | ||||
|  * 			$tgt	The target node or group | ||||
|  * 			$args	The xCAT command arguments, separated by semicolons | ||||
|  * @param	$tgt	The target node or group | ||||
|  * @param	$args	The xCAT command arguments, separated by semicolons | ||||
|  * @return The xCAT response.  Replies are in the form of JSON | ||||
|  */ | ||||
| if (isset($_GET["cmd"])) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user