<?php\r
+error_reporting(0);\r
$wait = $_REQUEST['wait'];\r
if($wait) {\r
sleep($wait);\r
$xml = $_REQUEST['xml'];\r
if($xml) {\r
header("Content-type: text/xml");\r
- eval("\$result = $xml;");\r
+ $result = ($xml == "5-2") ? "3" : "?";\r
echo "<math><calculation>$xml</calculation><result>$result</result></math>";\r
die();\r
}\r
echo "pan";\r
die();\r
}\r
+$request = apache_request_headers();\r
+$request = $request['X-Custom-Header'];\r
+if(strlen($request) > 0) {\r
+ echo $request;\r
+ die();\r
+}\r
echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';\r
?>
\ No newline at end of file