2009-08-13 06:45:39 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* makecondresp.php
|
|
|
|
* run the command "mkcondresp" and return the value
|
|
|
|
*/
|
2009-09-01 20:25:18 +00:00
|
|
|
if(!isset($TOPDIR)) { $TOPDIR="..";}
|
2009-08-13 06:45:39 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
|
2009-08-18 03:11:36 +00:00
|
|
|
$cond = '"' . $_REQUEST["cond"] . '"';
|
|
|
|
$resp = '"' . $_REQUEST["resp"] . '"';
|
2009-12-07 09:42:14 +00:00
|
|
|
$nr = '"' . $_REQUEST["nr"] . '"';
|
2009-08-13 06:45:39 +00:00
|
|
|
|
2009-12-07 09:42:14 +00:00
|
|
|
//Fixit: The parameter $nr can't work right now.
|
2009-08-13 06:45:39 +00:00
|
|
|
$xml=docmd("webrun", '', array("mkcondresp $cond $resp"));
|
|
|
|
if(getXmlErrors($xml, $errors)) {
|
|
|
|
echo "<p class=Error>",implode(' ', $errors), "</p>";
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "<p>$resp</p>";
|
|
|
|
|
|
|
|
?>
|