From 1ca6e18e28e8f87e3c77e824034d186aff1686aa Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sun, 17 Feb 2013 03:08:22 -0800 Subject: Challenge maps can be accessed with domain/challenge/ID.js --- ajax/challenges.ajax.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ajax/challenges.ajax.php (limited to 'ajax/challenges.ajax.php') diff --git a/ajax/challenges.ajax.php b/ajax/challenges.ajax.php new file mode 100644 index 0000000..68d6ae3 --- /dev/null +++ b/ajax/challenges.ajax.php @@ -0,0 +1,35 @@ + 0) { + list($map) = mysql_fetch_row($result); + return $map; + } +} + +//62 days +$expires = 62*24*60*60; +// header("Cache-Control: public, maxage=".$expires); +// header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT'); +// header("Content-type: text/javascript"); +echo json_encode($map); + +?> \ No newline at end of file -- cgit v1.2.3