blob: d2ae7509cbd8807d63803b1b1e681d0f0fb8bb9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?
//CACHE HEADERS
include('../includes/mapclass.php');
include('../includes/maps.php');
//RETURN MAP w/ CACHE HEADERS
$mapID = $_GET['mapid'] * 1;
if (!is_int($mapID)) exit;
$map = new map(getMapCode($mapID), $mapID);
// 62 days
// $expires = 62*24*60*60
// header("Pragma: public");
// header("Cache-Control: maxage=".$expires);
// header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
echo json_encode($map);
?>
|