-
Notifications
You must be signed in to change notification settings - Fork 5
/
map.php
38 lines (32 loc) · 1.19 KB
/
map.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/****************************************************************************************
* LiveZilla map.php
*
* Copyright 2011 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
*
* Improper changes to this file may cause critical errors.
***************************************************************************************/
define("IN_LIVEZILLA",true);
define("LIVEZILLA_PATH","./");
require(LIVEZILLA_PATH . "_lib/functions.global.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.protocol.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.dynamic.inc.php");
$map = getFile(TEMPLATE_HTML_MAP);
if(isset($_GET["lat"]))
$map = str_replace("<!--dlat-->",floatval($_GET["lat"]),$map);
else
$map = str_replace("<!--dlat-->","25",$map);
if(isset($_GET["lng"]))
$map = str_replace("<!--dlng-->",floatval($_GET["lng"]),$map);
else
$map = str_replace("<!--dlng-->","10",$map);
if(isset($_GET["zom"]))
$map = str_replace("<!--dzom-->",floatval($_GET["zom"]),$map);
else
$map = str_replace("<!--dzom-->","1",$map);
$map = str_replace("<!--key-->",$CONFIG["gl_api_key"],$map);
exit($map);
?>