PlanckIntegrals Web Interface
---
$request_method
---
";
//print "
returnval = $returnval
";
//if($returnval == "POST")
if($request_method == "POST")
{
$returnval = $_POST;
//print "
returnval = $returnval
";
$runline = "./PlanckIntegrals ";
while (list($key, $val) = each($returnval))
{
if (($key != "Run") && ($key != "Reset") && ($key != "subject") && ($key != "redirect"))
{
$runline .= " $val ";
}
}
$escapedrunline = escapeshellcmd($runline);
//print "
runline = $runline
";
//header("Location: ./planck.php?returnval=CannotExecute:$runline");
$returnval=shell_exec("$escapedrunline");
header("Location: ./planck.php?returnval=$returnval");
}
?>
---
$request_method
---
";
//printf("
---
%s
---
\n", $returnval);
//if($returnval == "GET")
if($request_method == "GET")
{
$returnval = $_GET["returnval"];
if(!empty($returnval))
{
printf('
Output : %s ', $returnval);
printf('
');
}
}
?>