Completed
Push — master ( 6ab92f...6e8bf5 )
by Yannick
36:39
created

header.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
if (isset($globalProtect) && $globalProtect) {
3
	@session_start();
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
4
	$_SESSION['protect'] = 'protect';
5
}
6
//gets the page file and stores it in a variable
7
$file_path = pathinfo($_SERVER['SCRIPT_NAME']);
8
$current_page = $file_path['filename'];
9
if ($globalTimezone == '') $globalTimezone = 'UTC';
10
date_default_timezone_set($globalTimezone);
11
if (isset($_COOKIE['MapType']) && $_COOKIE['MapType'] != '') $MapType = $_COOKIE['MapType'];
12
else $MapType = $globalMapProvider;
13
14
15
if (isset($_GET['3d'])) {
16
	setcookie('MapFormat','3d');
17
} else if (isset($_GET['2d'])) {
18
	setcookie('MapFormat','2d');
19
}
20
21
if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) {
22
	$tsk = filter_input(INPUT_GET,'tsk',FILTER_SANITIZE_URL);
23
}
24
25
if (isset($_POST['archive'])) {
26
	setcookie('archive','true');
27
	setcookie('archive_begin',strtotime($_POST['start_date']));
28
	setcookie('archive_end',strtotime($_POST['end_date']));
29
	setcookie('archive_speed',$_POST['archivespeed']);
30
}
31
if (isset($_POST['noarchive'])) {
32
	setcookie('archive','false',-1);
33
	setcookie('archive_begin','',-1);
34
	setcookie('archive_end','',-1);
35
	setcookie('archive_speed','',-1);
36
}
37
// When button "Remove all filters" is clicked
38
if (isset($_POST['removefilters'])) {
39
	$allfilters = array_filter(array_keys($_COOKIE),function($key) {
40
	    return strpos($key,'filter_') === 0;
41
	});
42
	foreach ($allfilters as $filt) {
43
		unset($_COOKIE[$filt]);
44
		setcookie($filt,null,-1);
45
	}
46
}
47
?>
48
<!DOCTYPE html>
49
<html>
50
<head>
51
<meta charset="UTF-8">
52
<meta http-equiv="X-UA-Compatible" content="IE=10" />
53
<title><?php print $title; ?> | <?php print $globalName; ?></title>
54
<meta name="keywords" content="<?php print $title; ?> spotter live flight tracking tracker map aircraft airline airport history database ads-b acars" />
55
<meta name="description" content="<?php print $title; ?> | <?php print $globalName; ?> use FlightAirMap to track flight" />
56
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
57
<link rel="shortcut icon" type="image/x-icon" href="<?php print $globalURL; ?>/favicon.ico">
58
<link rel="apple-touch-icon" href="<?php print $globalURL; ?>/images/touch-icon.png">
59
<!--[if lt IE 9]>
60
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
61
  <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
62
<![endif]-->
63
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/js/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
64
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/jquery-ui.min.css" />
65
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/bootstrap-datetimepicker.min.css" />  
66
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/font-awesome-4.7.0/css/font-awesome.min.css" />
67
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/bootstrap-select.min.css" />
68
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/style.css" />
69
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/print.css" />
70
71
<script type="text/javascript" src="<?php print $globalURL; ?>/js/jquery-3.2.1.min.js"></script>
72
<script type="text/javascript" src="<?php print $globalURL; ?>/js/jquery-ui.min.js"></script>
73
74
<script type="text/javascript" src="<?php print $globalURL; ?>/js/moment.min.js"></script>
75
<script type="text/javascript" src="<?php print $globalURL; ?>/js/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
76
<script type="text/javascript" src="<?php print $globalURL; ?>/js/bootstrap-datetimepicker.min.js"></script>
77
<script type="text/javascript" src="<?php print $globalURL; ?>/js/bootstrap-select.min.js"></script>
78
<script type="text/javascript" src="<?php print $globalURL; ?>/js/script.js"></script>
79
80
<?php
81
if (strtolower($current_page) == "about")
82
{
83
?>
84
<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet.css" />
85
<script src="<?php print $globalURL; ?>/js/leaflet.js"></script>
86
<?php
87
}
88
?>
89
<?php
90
if (strtolower($current_page) == "search")
91
{
92
?>
93
<script src="<?php print $globalURL; ?>/js/search.js"></script>
94
<?php
95
}
96
?>
97
<?php
98
if (strtolower($current_page) == "index")
99
{
100
?>
101
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/style-map.css?<?php print date("H"); ?>" />
102
<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet.css" />
103
<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet-sidebar.css" />
104
<script src="<?php print $globalURL; ?>/js/leaflet.js"></script>
105
<script src="<?php print $globalURL; ?>/js/leaflet.textpath.js"></script>
106
<script src="<?php print $globalURL; ?>/js/Marker.Rotate.js"></script>
107
<script src="<?php print $globalURL; ?>/js/MovingMarker.js"></script>
108
<script src="<?php print $globalURL; ?>/js/jquery.idle.min.js"></script>
109
<script src="<?php print $globalURL; ?>/js/jquery-sidebar.js"></script>
110
<script src="<?php print $globalURL; ?>/js/map.common.js"></script>
111
<?php
112
	if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') {
113
?>
114
<script src="<?php print $globalURL; ?>/js/OSMBuildings-Leaflet.js"></script>
115
<?php
116
	}
117
?>
118
<?php
119
	if ($globalMapProvider == 'MapboxGL' || (isset($_COOKIE['MapType']) && $_COOKIE['MapType'] == 'MapboxGL')) {
120
?>
121
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.35.1/mapbox-gl.css" rel='stylesheet' />
122
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.35.1/mapbox-gl.js"></script>
123
<script src="<?php print $globalURL; ?>/js/leaflet-mapbox-gl.js"></script>
124
<?php
125
	}
126
?>
127
<?php 
128
	if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) {
129
?>
130
<?php 
131
	if (file_exists(dirname(__FILE__).'/js/Cesium/Cesium.js')) {
132
	// || isset($globalOffline) && $globalOffline) {
133
?>
134
<link rel="stylesheet" href="<?php print $globalURL; ?>/js/Cesium/Widgets/widgets.css" />
135
<script src="<?php print $globalURL; ?>/js/Cesium/Cesium.js"></script>
136
<?php
137
	} else {
138
?>
139
<link rel="stylesheet" href="https://cesiumjs.org/releases/1.37/Build/Cesium/Widgets/widgets.css" />
140
<script src="https://cesiumjs.org/releases/1.37/Build/Cesium/Cesium.js"></script>
141
<?php
142
	}
143
?>
144
<link rel="stylesheet" href="<?php print $globalURL; ?>/css/cesium-minimap.css" />
145
<script src="<?php print $globalURL; ?>/js/cesium-minimap.js"></script>
146
<?php
147
	} else {
148
?>
149
<?php
150
		if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '' && ($MapType == 'Google-Roadmap' || $MapType == 'Google-Satellite' || $MapType == 'Google-Hybrid' || $MapType == 'Google-Terrain')) {
151
?>
152
<script src="https://maps.google.com/maps/api/js?v=3&key=<?php print $globalGoogleAPIKey; ?>"></script>
153
<script src="<?php print $globalURL; ?>/js/leaflet-Google.js"></script>
154
<?php
155
		}
156
?>
157
<?php
158
		if (isset($globalBingMapKey) && $globalBingMapKey != '') {
159
?>
160
<!--<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise"></script>-->
161
<script src="<?php print $globalURL; ?>/js/leaflet-Bing.js"></script>
162
<?php
163
		}
164
?>
165
<?php
166
		if (isset($globalMapQuestKey) && $globalMapQuestKey != '' && ($MapType == 'MapQuest-OSM' || $MapType == 'MapQuest-Hybrid' || $MapType == 'MapQuest-Aerial')) {
167
?>
168
<!--<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<?php print $globalMapQuestKey; ?>"></script>-->
169
<script src="https://open.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<?php print $globalMapQuestKey; ?>"></script>
170
<?php
171
		}
172
?>
173
<?php
174
		if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') {
175
?>
176
<script src="<?php print $globalURL; ?>/js/leaflet-Here.js"></script>
177
<?php
178
		}
179
?>
180
<?php
181
		if ($MapType == 'Yandex') {
182
?>
183
<script src="https://api-maps.yandex.ru/2.0/?load=package.map&lang=en_US" type="text/javascript"></script>
184
<script src="<?php print $globalURL; ?>/js/leaflet-Yandex.js"></script>
185
<?php
186
		}
187
	}
188
?>
189
<?php 
190
    if (isset($_POST['archive'])) {
191
?>
192
<script src="<?php print $globalURL; ?>/js/map.common.js"></script>
193
<?php 
194
	    if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
195
?>
196
197
<script src="<?php print $globalURL; ?>/js/map.js.php?<?php print time(); ?>&archive&begindate=<?php print strtotime($_POST['start_date']); ?>&enddate=<?php print strtotime($_POST['end_date']); ?>&archivespeed=<?php print $_POST['archivespeed']; ?>"></script>
198
<?php    
199
	    }
200
    } else {
201
?>
202
<?php
203
/*	if (isset($globalBeta) && $globalBeta) {
204
?>
205
<script src="<?php print $globalURL; ?>/js/leaflet-realtime.js"></script>
206
<script src="<?php print $globalURL; ?>/js/map.new.js.php?<?php print time(); ?>"></script>
207
<?php
208
	} else {
209
*/
210
?>
211
<?php 
212
	    if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
213
?>
214
<?php
215
//		if (isset($globalBeta) && $globalBeta) {
216
?>
217
<script src="<?php print $globalURL; ?>/js/leaflet-playback.js"></script>
218
<?php
219
//		}
220
?>
221
<script src="<?php print $globalURL; ?>/js/map.2d.js.php?<?php print time(); ?><?php if (isset($tsk)) print '&tsk='.$tsk; ?>"></script>
222
<?php
223
		if (!isset($globalAircraft) || $globalAircraft) {
224
?>
225
<script src="<?php print $globalURL; ?>/js/map-aircraft.2d.js.php?<?php print time(); ?>"></script>
226
<?php
227
		}
228
		if (isset($globalTracker) && $globalTracker) {
229
?>
230
<script src="<?php print $globalURL; ?>/js/map-tracker.2d.js.php?<?php print time(); ?>"></script>
231
<?php
232
		}
233
		if (isset($globalMarine) && $globalMarine) {
234
?>
235
<script src="<?php print $globalURL; ?>/js/map-marine.2d.js.php?<?php print time(); ?>"></script>
236
<?php
237
		}
238
		if (isset($globalSatellite) && $globalSatellite) {
239
?>
240
<script src="<?php print $globalURL; ?>/js/map-satellite.2d.js.php?<?php print time(); ?>"></script>
241
<?php
242
		}
243
	    }
244
?>
245
<?php
246
//	}
247
?>
248
<?php
249
    }
250
}
251
?>
252
<?php
253
//if ((strtolower($current_page) == "ident-detailed" && isset($ident)) || strtolower($current_page) == "flightid-overview")
254
//if ((strtolower($current_page) == "ident-detailed" && isset($ident) && isset($globalArchive) && $globalArchive))
255
if ((strtolower($current_page) == "ident-detailed" && isset($ident) && isset($globalArchive) && $globalArchive))
256
{
257
?>
258
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/style-map.css?<?php print date("H"); ?>" />
259
<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet.css" />
260
<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet-sidebar.css" />
261
<script src="<?php print $globalURL; ?>/js/leaflet.js"></script>
262
<script src="<?php print $globalURL; ?>/js/Marker.Rotate.js"></script>
263
<script src="<?php print $globalURL; ?>/js/MovingMarker.js"></script>
264
<script src="<?php print $globalURL; ?>/js/jquery.idle.min.js"></script>
265
<script src="<?php print $globalURL; ?>/js/map.common.js"></script>
266
<script src="<?php print $globalURL; ?>/js/map.2d.js.php?ident=<?php print $ident; ?><?php if(isset($latitude)) print '&latitude='.$latitude; ?><?php if(isset($longitude)) print '&longitude='.$longitude; ?>&<?php print time(); ?>"></script>
267
<?php
268
		if (!isset($type) || $type == 'aircraft') {
269
?>
270
<script src="<?php print $globalURL; ?>/js/map-aircraft.2d.js.php?<?php print time(); ?>&ident=<?php print $ident; ?>"></script>
271
<?php
272
		} elseif (isset($type) && $type == 'marine') {
273
?>
274
<script src="<?php print $globalURL; ?>/js/map-marine.2d.js.php?<?php print time(); ?>&ident=<?php print $ident; ?>"></script>
275
<?php
276
		} elseif (isset($type) && $type == 'tracker') {
277
?>
278
<script src="<?php print $globalURL; ?>/js/map-tracker.2d.js.php?<?php print time(); ?>&ident=<?php print $ident; ?>"></script>
279
<?php
280
		} elseif (isset($type) && $type == 'satellite') {
281
?>
282
<script src="<?php print $globalURL; ?>/js/map-satellite.2d.js.php?<?php print time(); ?>&ident=<?php print $ident; ?>"></script>
283
<?php
284
		}
285
?>
286
<?php
287
		if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '' && ($MapType == 'Google-Roadmap' || $MapType == 'Google-Satellite' || $MapType == 'Google-Hybrid' || $MapType == 'Google-Terrain')) {
288
?>
289
<script src="https://maps.google.com/maps/api/js?v=3&key=<?php print $globalGoogleAPIKey; ?>"></script>
290
<script src="<?php print $globalURL; ?>/js/leaflet-Google.js"></script>
291
<?php
292
		}
293
?>
294
<?php
295
		if (isset($globalBingMapKey) && $globalBingMapKey != '') {
296
?>
297
<!--<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise"></script>-->
298
<script src="<?php print $globalURL; ?>/js/leaflet-Bing.js"></script>
299
<?php
300
		}
301
?>
302
<?php
303
		if (isset($globalMapQuestKey) && $globalMapQuestKey != '' && ($MapType == 'MapQuest-OSM' || $MapType == 'MapQuest-Hybrid' || $MapType == 'MapQuest-Aerial')) {
304
?>
305
<!--<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<?php print $globalMapQuestKey; ?>"></script>-->
306
<script src="https://open.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<?php print $globalMapQuestKey; ?>"></script>
307
<?php
308
		}
309
?>
310
<?php
311
		if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') {
312
?>
313
<script src="<?php print $globalURL; ?>/js/leaflet-Here.js"></script>
314
<?php
315
		}
316
?>
317
<?php
318
		if ($MapType == 'Yandex') {
319
?>
320
<script src="http://api-maps.yandex.ru/2.0/?load=package.map&lang=en_US" type="text/javascript"></script>
321
<script src="<?php print $globalURL; ?>/js/leaflet-Yandex.js"></script>
322
<?php
323
		}
324
?>
325
<?php
326
}
327
328
if (strtolower($current_page) == "flightid-overview" && isset($globalArchive) && $globalArchive && isset($flightaware_id))
329
{
330
?>
331
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/style-map.css?<?php print date("H"); ?>" />
332
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet.css" />
333
<link type="text/css" rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet-sidebar.css" />
334
<script src="<?php print $globalURL; ?>/js/leaflet.js"></script>
335
<script src="<?php print $globalURL; ?>/js/Marker.Rotate.js"></script>
336
<script src="<?php print $globalURL; ?>/js/MovingMarker.js"></script>
337
<script src="<?php print $globalURL; ?>/js/jquery.idle.min.js"></script>
338
<script src="<?php print $globalURL; ?>/js/map.common.js"></script>
339
<script src="<?php print $globalURL; ?>/js/map.2d.js.php?flightaware_id=<?php print $flightaware_id; ?><?php if(isset($latitude)) print '&latitude='.$latitude; ?><?php if(isset($longitude)) print '&longitude='.$longitude; ?>&<?php print time(); ?>"></script>
340
<script src="<?php print $globalURL; ?>/js/map-aircraft.2d.js.php?flightaware_id=<?php print $flightaware_id; ?>&<?php print time(); ?>"></script>
341
<?php
342
		if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '' && ($MapType == 'Google-Roadmap' || $MapType == 'Google-Satellite' || $MapType == 'Google-Hybrid' || $MapType == 'Google-Terrain')) {
343
?>
344
<script src="https://maps.google.com/maps/api/js?v=3&key=<?php print $globalGoogleAPIKey; ?>"></script>
345
<script src="<?php print $globalURL; ?>/js/leaflet-Google.js"></script>
346
<?php
347
		}
348
?>
349
<?php
350
		if (isset($globalBingMapKey) && $globalBingMapKey != '') {
351
?>
352
<!--<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise"></script>-->
353
<script src="<?php print $globalURL; ?>/js/leaflet-Bing.js"></script>
354
<?php
355
		}
356
?>
357
<?php
358
		if (isset($globalMapQuestKey) && $globalMapQuestKey != '' && ($MapType == 'MapQuest-OSM' || $MapType == 'MapQuest-Hybrid' || $MapType == 'MapQuest-Aerial')) {
359
?>
360
<!--<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<?php print $globalMapQuestKey; ?>"></script>-->
361
<script src="https://open.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=<?php print $globalMapQuestKey; ?>"></script>
362
<?php
363
		}
364
?>
365
<?php
366
		if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') {
367
?>
368
<script src="<?php print $globalURL; ?>/js/leaflet-Here.js"></script>
369
<?php
370
		}
371
?>
372
<?php
373
		if ($MapType == 'Yandex') {
374
?>
375
<script src="http://api-maps.yandex.ru/2.0/?load=package.map&lang=en_US" type="text/javascript"></script>
376
<script src="<?php print $globalURL; ?>/js/leaflet-Yandex.js"></script>
377
<?php
378
		}
379
?>
380
<?php
381
}
382
?>
383
<?php
384
/*
385
if ($facebook_meta_image != "")
386
{
387
?>
388
<meta property="og:image" content="<?php print $facebook_meta_image; ?>"/>
389
<?php
390
} else {
391
?>
392
<meta property="og:image" content="<?php print $globalURL; ?>/images/touch-icon.png"/>
393
<?php
394
}
395
*/
396
?>
397
<?php
398
if (isset($globalCustomCSS) && $globalCustomCSS != '') {
399
?>
400
<link type="text/css" rel="stylesheet" href="<?php print $globalCustomCSS; ?>" />
401
<?php
402
}
403
?>
404
405
<meta property="og:title" content="<?php print $title; ?> | <?php print $globalName; ?>"/>
406
<meta property="og:url" content="<?php print $globalURL.$_SERVER['REQUEST_URI']; ?>"/>
407
<meta property="og:site_name" content="<?php print $globalName; ?>"/>
408
</head>
409
<body class="page-<?php print strtolower($current_page); ?>">
410
<div class="navbar navbar-fixed-top" role="navigation">
411
  <div class="container">
412
    <div class="navbar-header">
413
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
414
        <span class="sr-only">Toggle navigation</span>
415
        <span class="icon-bar"></span>
416
        <span class="icon-bar"></span>
417
        <span class="icon-bar"></span>
418
      </button>
419
      <a href="<?php print $globalURL; ?>/search" class="navbar-toggle navbar-toggle-search"><i class="fa fa-search"></i></a>
420
      <a class="navbar-brand" href="<?php if ($globalURL == '') print '/'; else print $globalURL; ?>"><img src="<?php print $globalURL.$logoURL; ?>" height="30px" /></a>
421
    </div>
422
    <div class="collapse navbar-collapse">
423
424
      <ul class="nav navbar-nav">
425
<?php
426
    if (isset($globalNewsFeeds['global']) && !empty($globalNewsFeeds['global'])) {
427
?>
428
    <li><a href="<?php print $globalURL; ?>/news"><?php echo _("News"); ?></a></li>
429
<?php
430
    }
431
?>
432
433
<?php 
434
    $sub = false;
435
    if (
436
	(
437
	    (!isset($globalAircraft) || (isset($globalAircraft) && $globalAircraft === TRUE)) && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalTracker) && $globalTracker === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
438
	) || 
439
	(
440
	    isset($globalMarine) && $globalMarine === TRUE && ((isset($globalTracker) && $globalTracker === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
441
	) || 
442
	(
443
	    isset($globalTracker) && $globalTracker === TRUE && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
444
	) || 
445
	(
446
	    isset($globalSatellite) && $globalSatellite === TRUE && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalTracker) && $globalTracker === TRUE))
447
	)
448
    ) {
449
	$sub = true;
450
    }
451
?>
452
<?php
453
    if (!isset($globalAircraft) || $globalAircraft === TRUE) {
454
?>
455
    <li class="dropdown">
456
<?php
457
	if ($sub) {
458
?>
459
      	<li class="dropdown">
460
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Aircrafts"); ?> <b class="caret"></b></a>
461
	<ul class="dropdown-menu multi-level">
462
      	<li class="dropdown-submenu">
463
<?php
464
        }
465
?>
466
<?php
467
	if (isset($globalNewsFeeds['aircraft']) && !empty($globalNewsFeeds['aircraft'])) {
468
?>
469
    <a href="<?php print $globalURL; ?>/news-aircraft"><?php echo _("Aircrafts News"); ?></a></li>
470
    <li>
471
<?php
472
	}
473
?>
474
475
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Explore"); ?> <b class="<?php if ($sub) echo 'right-'; ?>caret"></b></a>
476
          <ul class="dropdown-menu">
477
          	<li><a href="<?php print $globalURL; ?>/aircraft"><?php echo _("Aircrafts Types"); ?></a></li>
478
<?php
479
    if (!isset($globalNoAirlines) || $globalNoAirlines === FALSE) {
480
?>
481
			<li><a href="<?php print $globalURL; ?>/airline"><?php echo _("Airlines"); ?></a></li>
482
<?php
483
    }
484
?>
485
			<li><a href="<?php print $globalURL; ?>/airport"><?php echo _("Airports"); ?></a></li>
486
<?php
487
    if ((isset($globalUseOwner) && $globalUseOwner) || (!isset($globalUseOwner) && (!isset($globalVA) || !$globalVA) && (!isset($globalIVAO) || !$globalIVAO) && (!isset($globalVATSIM) || !$globalVATSIM) && (!isset($globalphpVMS) || !$globalphpVMS) && (!isset($globalVAM) || !$globalVAM))) {
488
?>
489
			<li><a href="<?php print $globalURL; ?>/owner"><?php echo _("Owners"); ?></a></li>
490
<?php
491
    } 
492
    if ((isset($globalUsePilot) && $globalUsePilot) || !isset($globalUsePilot) && ((isset($globalVA) && $globalVA) || (isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalphpVMS) && $globalphpVMS) || (isset($globalVAM) && $globalVAM))) {
493
494
?>
495
			<li><a href="<?php print $globalURL; ?>/pilot"><?php echo _("Pilots"); ?></a></li>
496
<?php
497
    }
498
?>
499
			<li><hr /></li>
500
            <li><a href="<?php print $globalURL; ?>/currently"><?php echo _("Current Activity"); ?></a></li>
501
            <li><a href="<?php print $globalURL; ?>/latest"><?php echo _("Latest Activity"); ?></a></li>
502
            <li><a href="<?php print $globalURL; ?>/date/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Activity"); ?></a></li>
503
            <li><a href="<?php print $globalURL; ?>/newest"><?php echo _("Newest by Category"); ?></a></li>
504
            <?php
505
        	if ($globalACARS) {
506
        	    if (isset($globalDemo) && $globalDemo) {
507
    	    ?>
508
            <li><hr /></li>
509
            <li><i><?php echo _('ACARS data not available publicly'); ?></i></li>
510
            <li><a href=""><?php echo _('Latest ACARS messages'); ?></a></li>
511
            <li><a href=""><?php echo _('Archive ACARS messages'); ?></a></li>
512
            <?php
513
        	    } else {
514
    	    ?>
515
            <li><hr /></li>
516
            <li><a href="<?php print $globalURL; ?>/acars-latest"><?php echo _("Latest ACARS messages"); ?></a></li>
517
            <li><a href="<?php print $globalURL; ?>/acars-archive"><?php echo _("Archive ACARS messages"); ?></a></li>
518
            <?php
519
        	    }
520
        	}
521
    	    ?>
522
    	    <?php
523
    	        if (isset($globalAccidents) && $globalAccidents) {
524
    	    ?>
525
            <li><hr /></li>
526
            <li><a href="<?php print $globalURL; ?>/accident-latest"><?php echo _("Latest accident"); ?></a></li>
527
            <li><a href="<?php print $globalURL; ?>/accident/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Accident"); ?></a></li>
528
            <li><a href="<?php print $globalURL; ?>/incident-latest"><?php echo _("Latest incident"); ?></a></li>
529
            <li><a href="<?php print $globalURL; ?>/incident/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Incident"); ?></a></li>
530
            <?php
531
        	}
532
    	    ?>
533
            <li><hr /></li>
534
            <li><a href="<?php print $globalURL; ?>/highlights/table"><?php echo _("Special Highlights"); ?></a></li>
535
            <?php
536
		if (!isset($globalNoUpcoming) || $globalNoUpcoming === FALSE) {
537
	    ?>
538
            <li><a href="<?php print $globalURL; ?>/upcoming"><?php echo _("Upcoming Flights"); ?></a></li>
539
	    <?php
540
		}
541
	    ?>
542
          </ul>
543
        </li>
544
      	<li><a href="<?php print $globalURL; ?>/search"><?php echo _("Search"); ?></a></li>
545
      	<li><a href="<?php print $globalURL; ?>/statistics"><?php echo _("Statistics"); ?></a></li>
546
        <li class="dropdown<?php if ($sub) echo '-submenu'; ?>">
547
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Tools"); ?> <b class="<?php if ($sub) echo 'right-'; ?>caret"></b></a>
548
          <ul class="dropdown-menu">
549
          	<li><a href="<?php print $globalURL; ?>/tools/acars"><?php echo _("ACARS translator"); ?></a></li>
550
          	<li><a href="<?php print $globalURL; ?>/tools/metar"><?php echo _("METAR translator"); ?></a></li>
551
          	<li><a href="<?php print $globalURL; ?>/tools/notam"><?php echo _("NOTAM translator"); ?></a></li>
552
<?php
553
	if (isset($globalGeoid) && $globalGeoid) {
554
?>
555
          	<li><a href="<?php print $globalURL; ?>/tools/geoid"><?php echo _("Geoid Height Calculator"); ?></a></li>
556
<?php
557
	}
558
?>
559
          </ul>
560
        </li>
561
<?php 
562
	if ($sub) {
563
?>
564
    </li>
565
    </ul>
566
<?php
567
	}
568
    }
569
?>
570
<?php
571
    if (isset($globalMarine) && $globalMarine) {
572
?>
573
    <li class="dropdown">
574
<?php
575
        if ($sub) {
576
?>
577
    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Marines"); ?> <b class="caret"></b></a>
578
	<ul class="dropdown-menu multi-level">
579
	    <li class="dropdown-submenu">
580
<?php
581
	}
582
?>
583
<?php
584
	if (isset($globalNewsFeeds['marine']) && !empty($globalNewsFeeds['marine'])) {
585
?>
586
    <a href="<?php print $globalURL; ?>/marine/news"><?php echo _("Marines News"); ?></a></li>
587
    <li>
588
<?php
589
	}
590
?>
591
		<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Explore"); ?> <b class="<?php if ($sub) echo 'right-'; ?>caret"></b></a>
592
		<ul class="dropdown-menu">
593
		    <li><a href="<?php print $globalURL; ?>/marine/currently"><?php echo _("Current Activity"); ?></a></li>
594
		    <li><a href="<?php print $globalURL; ?>/marine/latest"><?php echo _("Latest Activity"); ?></a></li>
595
		    <li><a href="<?php print $globalURL; ?>/marine/date/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Activity"); ?></a></li>
596
		</ul>
597
		<li><a href="<?php print $globalURL; ?>/marine/search"><?php echo _("Search"); ?></a></li>
598
		<li><a href="<?php print $globalURL; ?>/marine/statistics"><?php echo _("Statistics"); ?></a></li>
599
	    </li>
600
<?php
601
	if ($sub) {
602
?>
603
	</ul>
604
    </li>
605
<?php
606
	}
607
?>
608
<?php
609
    }
610
?>
611
<?php
612
    if (isset($globalTracker) && $globalTracker) {
613
?>
614
    <li class="dropdown">
615
<?php
616
        if ($sub) {
617
?>
618
    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Trackers"); ?> <b class="caret"></b></a>
619
	<ul class="dropdown-menu multi-level">
620
	    <li class="dropdown-submenu">
621
<?php
622
	}
623
?>
624
<?php
625
	if (isset($globalNewsFeeds['tracker']) && !empty($globalNewsFeeds['tracker'])) {
626
?>
627
    <a href="<?php print $globalURL; ?>/tracker/news"><?php echo _("Trackers News"); ?></a></li>
628
    <li>
629
<?php
630
	}
631
?>
632
		<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Explore"); ?> <b class="<?php if ($sub) echo 'right-'; ?>caret"></b></a>
633
		<ul class="dropdown-menu">
634
		    <li><a href="<?php print $globalURL; ?>/tracker/currently"><?php echo _("Current Activity"); ?></a></li>
635
		    <li><a href="<?php print $globalURL; ?>/tracker/latest"><?php echo _("Latest Activity"); ?></a></li>
636
		    <li><a href="<?php print $globalURL; ?>/tracker/date/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Activity"); ?></a></li>
637
		</ul>
638
	    </li>
639
	    <li><a href="<?php print $globalURL; ?>/tracker/search"><?php echo _("Search"); ?></a></li>
640
	    <li><a href="<?php print $globalURL; ?>/tracker/statistics"><?php echo _("Statistics"); ?></a></li>
641
<?php
642
	if ($sub) {
643
?>
644
	</ul>
645
    </li>
646
<?php
647
	}
648
?>
649
<?php
650
    }
651
?>
652
<?php
653
    if (isset($globalSatellite) && $globalSatellite) {
654
?>
655
    <li class="dropdown">
656
<?php
657
        if ($sub) {
658
?>
659
    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Satellites"); ?> <b class="caret"></b></a>
660
	<ul class="dropdown-menu multi-level">
661
	    <li class="dropdown-submenu">
662
<?php
663
	}
664
?>
665
<?php
666
	if (isset($globalNewsFeeds['satellite']) && !empty($globalNewsFeeds['satellite'])) {
667
?>
668
    <a href="<?php print $globalURL; ?>/marine/news"><?php echo _("Satellites News"); ?></a></li>
669
    <li>
670
<?php
671
	}
672
?>
673
674
<!--
675
		<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Explore"); ?> <b class="<?php if ($sub) echo 'right-'; ?>caret"></b></a>
676
		<ul class="dropdown-menu">
677
		    <li><a href="<?php print $globalURL; ?>/satellite/currently"><?php echo _("Current Activity"); ?></a></li>
678
		    <li><a href="<?php print $globalURL; ?>/satellite/latest"><?php echo _("Latest Activity"); ?></a></li>
679
		    <li><a href="<?php print $globalURL; ?>/satellite/date/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Activity"); ?></a></li>
680
		</ul>
681
	    </li>
682
-->
683
	    <li><a href="<?php print $globalURL; ?>/satellite/statistics"><?php echo _("Statistics"); ?></a></li>
684
<?php
685
	if ($sub) {
686
?>
687
	</ul>
688
    </li>
689
<?php
690
	}
691
?>
692
<?php
693
    }
694
?>
695
696
        <li class="dropdown">
697
          <a href="<?php print $globalURL; ?>/about" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("About"); ?> <b class="caret"></b></a>
698
          <ul class="dropdown-menu">
699
          	<li><a href="<?php print $globalURL; ?>/about"><?php echo _("About The Project"); ?></a></li>
700
          	<li><a href="<?php print $globalURL; ?>/about/export"><?php echo _("Exporting Data"); ?></a></li>
701
<?php
702
    if (!isset($globalAircraft) || $globalAircraft === TRUE) {
703
?>
704
		<li><hr /></li>
705
		<li><a href="<?php print $globalURL; ?>/about/tv"><?php echo _("Spotter TV"); ?></a></li>
706
<?php
707
    }
708
?>
709
	    <?php if (isset($globalContribute) && $globalContribute) { ?>
710
                <li><hr /></li>
711
                <li><a href="<?php print $globalURL; ?>/contribute"><?php echo _("Contribute"); ?></a></li>
712
                <li><hr /></li>
713
	    <?php } ?>
714
            <?php if ($globalName == 'FlightAirMap') { ?>
715
                <li><hr /></li>
716
        	<li><a href="https://github.com/Ysurac/FlightAirMap/issues" target="_blank"><?php echo _("Report any Issues"); ?></a></li>
717
            <?php } ?>
718
          </ul>
719
        </li>
720
      </ul>
721
<?php
722
	if (isset($globalTranslate) && $globalTranslate) {
723
?>
724
  	<div class="language">
725
  	    <form>
726
  		<select class="selectpicker" data-width="120px" onchange="language(this);">
727
  		    <?php
728
  		        $Language = new Language();
729
  		        $alllang = $Language->getLanguages();
730
  		        foreach ($alllang as $key => $lang) {
731
  		            print '<option value="'.$key.'"';
732
  		            if (isset($_COOKIE['language']) && $_COOKIE['language'] == $key) print ' selected ';
733
  		            print '>'.$lang[0].'</option>';
734
  		        }
735
  		    ?>
736
  		</select>
737
  	    </form>
738
  	</div>
739
<?php
740
	}
741
?>
742
      <div class="search">
743
      <form action="<?php print $globalURL; ?>/search" method="get">
744
		<!--<input type="text" name="q" value="<?php if (isset($GET['q'])) { if ($_GET['q'] != ""){ print $_GET['q']; } else { print _("Search"); } } else { print _("Search"); } ?>" onfocus="if (this.value=='search'){this.value='';}" /><button type="submit"><i class="fa fa-search"></i></button>-->
745
		<input type="text" name="callsign" value="<?php if (isset($GET['callsign'])) { if ($_GET['callsign'] != ""){ print $_GET['callsign']; } else { print _("Search"); } } else { print _("Search"); } ?>" onfocus="if (this.value=='search'){this.value='';}" /><button type="submit"><i class="fa fa-search"></i></button>
746
	</form>
747
	</div>
748
  	<div class="social">
749
  		<!-- I'm not sociable -->
750
  	</div>
751
    </div><!--/.nav-collapse -->
752
  </div>
753
</div>
754
755
<?php
756
if (isset($top_header) && $top_header != "") 
757
{
758
	print '<div class="top-header container clear" role="main">';
759
		print '<img src="'.$globalURL.'/images/'.$top_header.'" alt="'.$title.'" title="'.$title.'" />';
760
	print '</div>';
761
}
762
763
if (strtolower($current_page) =='ident-detailed' || strtolower($current_page) == 'flightid-overview') {
764
?>
765
    <div class="top-header clear" role="main">
766
<?php
767
    if (isset($longitude) && isset($latitude) && $longitude != 0 && $latitude != 0) {
768
?>
769
    <div id="archive-map"></div>
770
<?php
771
    }
772
?>
773
    </div>
774
<?php
775
}
776
if ((strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) || (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false))
777
{
778
    ?>
779
    <div class="top-header clear" role="main">
780
        <div id="map"></div>
781
	<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet.css" />
782
	<script src="<?php print $globalURL; ?>/js/leaflet.js"></script>
783
784
        <script>
785
        var map;
786
        var zoom = 13;
787
//create the map
788
<?php
789
    if (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($airport_array[0]['latitude'])) {
790
?>
791
  map = L.map('map', { zoomControl:true }).setView([<?php print $airport_array[0]['latitude']; ?>,<?php print $airport_array[0]['longitude']; ?>], zoom);
792
<?php
793
    } elseif (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) {
794
?>
795
  map = L.map('map', { zoomControl:true });
796
<?php
797
    } elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($spotter_array[0]['departure_airport_latitude'])) {
798
?>
799
  map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['departure_airport_latitude']; ?>,<?php print $spotter_array[0]['arrival_airport_longitude']; ?>]);
800
    var line = L.polyline([[<?php print $spotter_array[0]['departure_airport_latitude']; ?>, <?php print $spotter_array[0]['departure_airport_longitude']; ?>],[<?php print $spotter_array[0]['arrival_airport_latitude']; ?>, <?php print $spotter_array[0]['arrival_airport_longitude']; ?>]]).addTo(map);
801
    map.fitBounds([[<?php print $spotter_array[0]['departure_airport_latitude']; ?>, <?php print $spotter_array[0]['departure_airport_longitude']; ?>],[<?php print $spotter_array[0]['arrival_airport_latitude']; ?>, <?php print $spotter_array[0]['arrival_airport_longitude']; ?>]]);
802
    var departure_airport = L.marker([<?php print $spotter_array[0]['departure_airport_latitude']; ?>, <?php print $spotter_array[0]['departure_airport_longitude']; ?>], {icon: L.icon({iconUrl: '<?php print $globalURL; ?>/images/departure_airport.png',iconSize: [16,18],iconAnchor: [8,16]})}).addTo(map);
803
    var arrival_airport = L.marker([<?php print $spotter_array[0]['arrival_airport_latitude']; ?>, <?php print $spotter_array[0]['arrival_airport_longitude']; ?>], {icon: L.icon({iconUrl: '<?php print $globalURL; ?>/images/arrival_airport.png',iconSize: [16,18],iconAnchor: [8,16]})}).addTo(map);
804
<?php
805
    } elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && !isset($spotter_array[0]['departure_airport_latitude']) && isset($spotter_array[0]['latitude'])) {
806
?>
807
  map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['latitude']; ?>,<?php print $spotter_array[0]['longitude']; ?>]);
808
<?php
809
    } elseif (!isset($spotter_array[0]['latitude']) && !isset($spotter_array[0]['longitude'])) {
810
?>
811
  map = L.map('map', { zoomControl:true });
812
<?php
813
    }
814
?>
815
  //initialize the layer group for the aircrft markers
816
  var layer_data = L.layerGroup();
817
818
  //a few title layers
819
<?php
820
    if ($globalMapProvider == 'Mapbox') {
821
?>
822
  L.tileLayer('https://{s}.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={token}', {
823
    maxZoom: 18,
824
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
825
      '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
826
      'Imagery © <a href="http://mapbox.com">Mapbox</a>',
827
    id: '<?php print $globalMapboxId; ?>',
828
    token : '<?php print $globalMapboxToken; ?>'
829
  }).addTo(map);
830
<?php
831
    } elseif ($globalMapProvider == 'Mapbox-GL') {
832
?>
833
    L.mapboxGL({
834
	accessToken: '<?php print $globalMapboxToken; ?>',
835
	style: 'mapbox://styles/mapbox/bright-v8'
836
  }).addTo(map);
837
<?php
838
    } elseif ($globalMapProvider == 'MapQuest-OSM') {
839
?>
840
  L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
841
    maxZoom: 18,
842
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
843
      '<a href="http://www.openstreetmap.org/copyright">Open Database Licence</a>, ' +
844
      'Tiles Courtesy of <a href="http://www.mapquest.com">MapQuest</a>'
845
  }).addTo(map);
846
<?php
847
    } elseif ($globalMapProvider == 'MapQuest-Aerial') {
848
?>
849
  L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png', {
850
    maxZoom: 18,
851
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
852
      '<a href="http://www.openstreetmap.org/copyright">Open Database Licence</a>, ' +
853
      'Tiles Courtesy of <a href="http://www.mapquest.com">MapQuest</a>, Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"'
854
  }).addTo(map);
855
<?php
856
    } elseif ($globalMapProvider == 'Google-Roadmap') {
857
?>
858
    var googleLayer = new L.Google('ROADMAP');
859
    map.addLayer(googleLayer);
860
<?php
861
    } elseif ($globalMapProvider == 'Google-Satellite') {
862
?>
863
    var googleLayer = new L.Google('SATELLITE');
864
    map.addLayer(googleLayer);
865
<?php
866
    } elseif ($globalMapProvider == 'Google-Hybrid') {
867
?>
868
    var googleLayer = new L.Google('HYBRID');
869
    map.addLayer(googleLayer);
870
<?php
871
    } elseif ($globalMapProvider == 'Google-Terrain') {
872
?>
873
    var googleLayer = new L.Google('Terrain');
874
    map.addLayer(googleLayer);
875
<?php
876
    } elseif (isset($globalMapCustomLayer[$globalMapProvider])) {
877
	$customid = $globalMapProvider;
878
?>
879
    L.tileLayer('<?php print $globalMapCustomLayer[$customid]['url']; ?>/{z}/{x}/{y}.png', {
880
        maxZoom: <?php if (isset($globalMapCustomLayer[$customid]['maxZoom'])) print $globalMapCustomLayer[$customid]['maxZoom']; else print '18'; ?>,
881
        minZoom: <?php if (isset($globalMapCustomLayer[$customid]['minZoom'])) print $globalMapCustomLayer[$customid]['minZoom']; else print '0'; ?>,
882
        noWrap: <?php if (isset($globalMapWrap) && !$globalMapWrap) print 'false'; else print 'true'; ?>,
883
        attribution: '<?php print $globalMapCustomLayer[$customid]['attribution']; ?>'
884
    }).addTo(map);
885
<?php
886
    //} elseif ($globalMapProvider == 'OpenStreetMap') {
887
    } else {
888
?>
889
  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
890
    maxZoom: 18,
891
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
892
      '<a href="http://www.openstreetmap.org/copyright">Open Database Licence</a>'
893
  }).addTo(map);
894
895
<?php
896
    }
897
?>
898
        </script>
899
    </div>
900
    <?php
901
}
902
903
?>
904
905
<section class="container main-content <?php if (strtolower($current_page) == 'index') print 'index '; ?>clear">
906