diff options
-rw-r--r-- | index.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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';
+}
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
@@ -14,7 +21,7 @@ if(empty($res)) $res=15; <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Funkfeuer Graz: Map</title>
<link rel="stylesheet" href="map.css" type="text/css" />
- <script src="http://maps.google.com/maps?file=api&v=2&&key=ABQIAAAAZRu0cBQNp9TOBJp1i-DhohS9pf3riiZoWFmOpEuQ19If-UHZjhRHIGQIC00eY1H5H71yDqx-QzdyJA"
+ <script src="http://maps.google.com/maps?file=api&v=2&&key=<?php echo $apikey; ?>"
type="text/javascript"></script>
<script src="map.js" type="text/javascript"></script>
<script type="text/javascript">
|