forked from OpenRailwayMap/OpenRailwayMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
137 lines (124 loc) · 6.12 KB
/
index.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?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; ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<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="alternate" type="application/rss+xml" title="OpenRailwayMap Deutsch" href="https://blog.openrailwaymap.org/de.rss" hreflang="de" />
<link rel="alternate" type="application/rss+xml" title="OpenRailwayMap English" href="https://blog.openrailwaymap.org/en.rss" hreflang="en" />
<link rel="search" type="application/opensearchdescription+xml" href="opensearch.xml" title="OpenRailwayMap" />
<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/map.css" />
<link rel="stylesheet" type="text/css" href="css/leaflet.css" />
<script type="text/javascript" src="js/leaflet.js"></script>
<link rel="stylesheet" href="css/Leaflet.EditInOSM.css" />
<script src="js/Leaflet.EditInOSM.js"></script>
<script type="text/javascript" src="js/L.TileLayer.Grayscale.js"></script>
<?php
urlArgsToParam(true, $urlbase);
?>
<script type="text/javascript" src="js/search.js"></script>
<script type="text/javascript" src="js/startposition.js"></script>
<script type="text/javascript" src="js/timestamp.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/bitmap-map.js"></script>
<!-- redirect to mobile version if necessary -->
<script type="text/javascript">
mobileRedirection();
</script>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="OpenRailwayMap">
<link rel="manifest" href="webapp-manifest.json">
<meta name="theme-color" content="#4e9a06">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@openrailwaymap" />
<meta name="twitter:title" content="OpenRailwayMap" />
<meta name="twitter:description" content="OpenRailwayMap - An OpenStreetMap-based project for creating a map of the world&#39;s railway infrastructure." />
<meta name="twitter:url" content="https://www.openrailwaymap.org/">
<meta name="twitter:image" content="https://www.openrailwaymap.org/img/openrailwaymap-310.png" />
</head>
<body onload="createMap(false);">
<div id="moreInfo" class="moreInfoFalse"></div>
<div id="sideBar" class="sideBar">
<b id="header"><a href="index.php">OpenRailwayMap</a></b>
<form id="langSelection">
<select id="langSelector" size="1" onChange="changeLanguage(gEBI('langSelector').options[gEBI('langSelector').selectedIndex].value)">
<?php
foreach ($langs as $short => $name)
{
echo "<option value=\"".$short."\"";
if ($short == $lang)
echo " selected";
echo ">".$name[1]."</option>\n";
}
?>
</select>
</form>
<br />
<p id="info"></p>
<div id="linkBar">
<a class="links" id="infoButton" href="https://wiki.openstreetmap.org/wiki/OpenRailwayMap" target="_blank"><?=_("More Info")?></a> •
<a class="links" id="infoButton" href="https://blog.openrailwaymap.org/" target="_blank"><?=_("Blog")?></a> •
<a class="links" id="paypalButton" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9KCKT39N7AGL8"><?=_("Donate")?></a> •
<a class="links" id="imprintButton" href="/imprint"><?=_("Imprint & Privacy Policy")?></a> •
<a class="links" id="permalinkButton" href=""><?=_("Permalink")?></a> •
<a class="links" id="contactButton" href="#"><?=_("Email")?></a> •
<a class="links" id="twitterButton" href="https://twitter.com/openrailwaymap"><?=_("Twitter")?></a> •
<script language="javascript">
var usr = "info";
var dom = "openrailwaymap";
var tld = "org";
gEBI("contactButton").href="mailto:"+usr+"@"+dom+"."+tld;
</script>
</div>
<input type="text" id="searchBox" size="20" />
<div id="clearButton" onclick="Search.clear();">
<b>❌</b>
</div>
<div id="searchButton" onclick="Search.request();">
<b>↵</b>
</div>
<br />
<div id="searchBar" class="infoBarOut"></div>
<div id="detailsBar" class="infoBarOut"></div>
<div id="styleSelectionBar"></div>
<div id="legendBar">
<b><?=_("Legend")?>:</b>
<iframe id="legend" scrolling="no" onload="setIframeHeight(this.id)" src=""></iframe>
</div>
<iframe id="josmFrame" src="about:blank"></iframe>
</div>
<div id="locateButton"></div>
<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>