From adb1a800ecd09ca405a57312a5c2b1b4e19e612a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 15 Dec 2008 02:45:48 +0000 Subject: maps supports multiple server names --- index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index c82da85..a81aa38 100644 --- a/index.php +++ b/index.php @@ -7,6 +7,13 @@ if(isset($_REQUEST['res'])) $res = $_REQUEST['res']; if(empty($lat)) $lat=47.07102; if(empty($lng)) $lng=15.440; if(empty($res)) $res=15; + +$apikey = 'unknownhost'; +if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') { + $apikey = 'ABQIAAAAZRu0cBQNp9TOBJp1i-DhohS9pf3riiZoWFmOpEuQ19If-UHZjhRHIGQIC00eY1H5H71yDqx-QzdyJA'; +} elseif($_SERVER['HTTP_HOST'] == 'dev-karte.graz.funkfeuer.at') { + $apikey = 'ABQIAAAAZRu0cBQNp9TOBJp1i-DhohSbKGG4yPVU7VmuBMuIIaQfSNuMAxRrbvJwWee4f-0iW-LpRZkkrl531Q'; +} ?> @@ -14,7 +21,7 @@ if(empty($res)) $res=15; Funkfeuer Graz: Map -