mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4075 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			32 lines
		
	
	
		
			734 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			734 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
if(!isset($TOPDIR)) { $TOPDIR="..";}
 | 
						|
require_once "$TOPDIR/lib/security.php";
 | 
						|
require_once "$TOPDIR/lib/functions.php";
 | 
						|
require_once "$TOPDIR/lib/display.php";
 | 
						|
 | 
						|
/*
 | 
						|
 * Run the command "monls $name -d",
 | 
						|
 * return the information
 | 
						|
 */
 | 
						|
# get the _REQUEST['name'] arguments
 | 
						|
$name=$_REQUEST['name'];
 | 
						|
$xml = docmd("monls"," ", array("$name", "-d"));
 | 
						|
 | 
						|
if (getXmlErrors($xml, $errors)) {
 | 
						|
    echo "<p class=Error>monls failed: ", implode(' ',$errors), "</p>\n";
 | 
						|
    exit;
 | 
						|
}
 | 
						|
 | 
						|
$information = "";
 | 
						|
 | 
						|
foreach ($xml->children() as $response) foreach ($response->children() as $data) {
 | 
						|
    $information .= str_replace("\n", "<br />", $data);;
 | 
						|
    $information .= "\n<br/>";
 | 
						|
    //print_r($data);
 | 
						|
}
 | 
						|
echo "<p>";
 | 
						|
echo $information;
 | 
						|
echo "</p>";
 | 
						|
?>
 | 
						|
 |