Rev | Line | |
---|
[483] | 1 | <?php |
---|
| 2 | if(array_key_exists("delay", $_GET)){ |
---|
| 3 | sleep((int)$_GET["delay"]); |
---|
| 4 | } |
---|
| 5 | |
---|
| 6 | header("HTTP/1.1 200 OK"); |
---|
| 7 | header("Expires: " . gmdate("D, d M Y H:i:s") . "GMT"); |
---|
| 8 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
---|
| 9 | header("Cache-Control: no-cache, must-revalidate"); |
---|
| 10 | header("Pragma: no-cache"); |
---|
| 11 | header("Content-type: application/x-javascript"); |
---|
| 12 | |
---|
| 13 | if(array_key_exists("callback", $_GET)){ |
---|
| 14 | echo $_GET["callback"] . "({ animalType: 'mammal' });"; |
---|
| 15 | }else if(array_key_exists("checkString", $_GET)){ |
---|
| 16 | echo "var " . $_GET["checkString"] . " = ['Take out trash.', 'Do dishes.', 'Brush teeth.'];"; |
---|
| 17 | }else if(array_key_exists("scriptVar", $_GET)){ |
---|
| 18 | echo "var " . $_GET["scriptVar"] . " = 'loaded';"; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.