mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
22 lines
407 B
PHP
22 lines
407 B
PHP
<?php
|
|
$wait = $_REQUEST['wait'];
|
|
if($wait) {
|
|
sleep($wait);
|
|
}
|
|
$xml = $_REQUEST['xml'];
|
|
if($xml) {
|
|
header("Content-type: text/xml");
|
|
eval("\$result = $xml;");
|
|
echo "<math><calculation>$xml</calculation><result>$result</result></math>";
|
|
die();
|
|
}
|
|
$name = $_REQUEST['name'];
|
|
if($name == 'foo') {
|
|
echo "bar";
|
|
die();
|
|
} else if($name == 'peter') {
|
|
echo "pan";
|
|
die();
|
|
}
|
|
echo "ERROR";
|
|
?>
|