1)The file "plugin_desc.php" is for the description of each plug-ins;

2) Add link to go to plugin_desc.php.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2009-07-16 10:18:27 +00:00
parent dfd6267aa5
commit 9c9d87e309
2 changed files with 31 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if(!isset($TOPDIR)) { $TOPDIR="/opt/xcat/ui";}
list($name, $stat) = preg_split("/\s+/", $data);
echo <<<TAB1
<tr>
<td><input type='checkbox' /><a href="monitor/plugin_desc.php?name=$name">$name</a></td>
<td><input type='checkbox' /><a href='#' onClick='loadMainPage("monitor/plugin_desc.php?name=$name")'>$name</a></td>
<td>$stat</td>
<td></td>
</tr>

View File

@ -0,0 +1,30 @@
<?php
if(!isset($TOPDIR)) { $TOPDIR="/opt/xcat/ui";}
require_once "$TOPDIR/lib/security.php";
require_once "$TOPDIR/lib/functions.php";
require_once "$TOPDIR/lib/display.php";
?>
<?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 .= $data;
$information .= "\n";
//print_r($data);
}
echo $information;
?>