forked from OpenRailwayMap/OpenRailwayMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
embed.php
57 lines (49 loc) · 2.25 KB
/
embed.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
OpenRailwayMap Copyright (C) 2012 Alexander Matheisen
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
See https://wiki.openstreetmap.org/wiki/OpenRailwayMap for details.
*/
require_once("functions.php");
if (isset($_GET['lang']) && array_key_exists($_GET['lang'], $langs))
$lang = $_GET['lang'];
else
$lang = getUserLang();
includeLocale($lang);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="<?php echo $lang; ?>" />
<title>OpenRailwayMap</title>
<meta name="title" content="OpenRailwayMap" />
<meta name="application-name" content="OpenRailwayMap" />
<meta name="page-topic" content="OpenRailwayMap" />
<meta name="description" content="OpenRailwayMap - An OpenStreetMap-based project for creating a map of the world's railway infrastructure." />
<meta name="keywords" content="openstreetmap, openrailwaymap, alexander matheisen, rurseekatze, openlayers, osm, matheisen, orm, eisenbahnkarte, bahnkarte, railmap, railway, railways, eisenbahn, streckenkarte" />
<meta name="robots" content="index,follow" />
<link rel="shortcut icon" href="img/openrailwaymap-16.png" type="image/png" />
<link rel="icon" href="img/openrailwaymap-16.png" type="image/png" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<link rel="stylesheet" type="text/css" href="css/embed.css" />
<link rel="stylesheet" type="text/css" href="css/leaflet.css" />
<script type="text/javascript" src="js/leaflet.js"></script>
<?php
urlArgsToParam(false, $urlbase);
?>
<script type="text/javascript" src="js/startposition.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/bitmap-map.js"></script>
</head>
<body onload="createMap(true);">
<div id="mapFrame">
<noscript>
<p><b><?=_("Javascript is not activated")?></b><br /><?=_("Javascript is needed to show the map and run this website. Please turn on Javascript in your browser settings.")?></p>
</noscript>
</div>
</body>
</html>