b628c94b8a
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
25 lines
575 B
PHP
25 lines
575 B
PHP
<?php
|
|
/*
|
|
* makecondresp.php
|
|
* run the command "mkcondresp" and return the value
|
|
*/
|
|
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";
|
|
require_once "$TOPDIR/lib/monitor_display.php";
|
|
|
|
$cond = '"' . $_REQUEST["cond"] . '"';
|
|
$resp = '"' . $_REQUEST["resp"] . '"';
|
|
|
|
$xml=docmd("webrun", '', array("mkcondresp $cond $resp"));
|
|
if(getXmlErrors($xml, $errors)) {
|
|
echo "<p class=Error>",implode(' ', $errors), "</p>";
|
|
exit;
|
|
}
|
|
|
|
echo "<p>$resp</p>";
|
|
|
|
?>
|