forked from AndyTaylorTweet/Pi-Star_DV_Dash
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
453 lines (418 loc) · 19.9 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?php
session_set_cookie_params(0, "/");
session_name("PiStar Dashboard Session");
session_id('pistardashsess');
session_start();
//require_once('set_session.php');
require_once('config/config.php');
require_once('config/version.php');
require_once('mmdvmhost/functions.php');
require_once('config/ircddblocal.php');
require_once('config/language.php');
$progname = basename($_SERVER['SCRIPT_FILENAME'],".php");
$rev = $version;
$MYCALL = strtoupper($callsign);
$_SESSION['MYCALL'] = $MYCALL;
// Clear session data (page {re}load);
unset($_SESSION['BMAPIKey']);
unset($_SESSION['DAPNETAPIKeyConfigs']);
unset($_SESSION['PiStarRelease']);
unset($_SESSION['MMDVMHostConfigs']);
unset($_SESSION['ircDDBConfigs']);
unset($_SESSION['DStarRepeaterConfigs']);
unset($_SESSION['DMRGatewayConfigs']);
unset($_SESSION['YSFGatewayConfigs']);
unset($_SESSION['DAPNETGatewayConfigs']);
unset($_SESSION['YSF2DMRConfigs']);
unset($_SESSION['YSF2NXDNConfigs']);
unset($_SESSION['YSF2P25Configs']);
unset($_SESSION['DMR2YSFConfigs']);
unset($_SESSION['DMR2NXDNConfigs']);
unset($_SESSION['APRSGatewayConfigs']);
unset($_SESSION['NXDNGatewayConfigs']);
unset($_SESSION['P25GatewayConfigs']);
unset($_SESSION['DvModemFWVersion']);
unset($_SESSION['DvModemTCXOFreq']);
unset($_SESSION['CSSConfigs']);
checkSessionValidity();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" lang="en">
<head>
<meta name="robots" content="index" />
<meta name="robots" content="follow" />
<meta name="language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php echo "<meta name=\"generator\" content=\"$progname $rev\" />\n"; ?>
<meta name="Author" content="Hans-J. Barthen (DL5DI), Kim Huebel (DG9VH), Andy Taylor (MW0MWZ) And Daniel Caujolle-Bert (F1RMB)" />
<meta name="Description" content="Pi-Star Dashboard" />
<meta name="KeyWords" content="MMDVMHost,ircDDBGateway,D-Star,ircDDB,DMRGateway,DMR,YSFGateway,YSF,C4FM,NXDNGateway,NXDN,P25Gateway,P25,Pi-Star,DL5DI,DG9VH,MW0MWZ,F1RMB" />
<meta http-equiv="X-UA-Compatible" content="IE=10; IE=9; IE=8; IE=7; IE=EDGE" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<title><?php echo "$MYCALL"." - ".$lang['digital_voice']." ".$lang['dashboard'];?></title>
<link rel="stylesheet" type="text/css" href="/css/font-awesome-4.7.0/css/font-awesome.min.css" />
<?php include_once "config/browserdetect.php"; ?>
<script type="text/javascript" src="/jquery.min.js"></script>
<script type="text/javascript" src="/jquery-floatThead.min.js"></script>
<script type="text/javascript" src="/functions.js?version=1.720"></script>
<script type="text/javascript">
$.ajaxSetup({ cache: false });
</script>
</head>
<body>
<div class="container">
<div class="header">
<div style="font-size: 8px; text-align: right; padding-right: 8px;">Pi-Star:<?php echo $_SESSION['PiStarRelease']['Pi-Star']['Version']?> / <?php echo $lang['dashboard'].": ".$version; ?></div>
<h1>Pi-Star <?php echo $lang['digital_voice']." ".$lang['dashboard_for']." ".$_SESSION['MYCALL']; ?></h1>
<?php
if (isset($piStarCssBannerH1)) {
exec('echo piStarCssBannerH1 >> /tmp/trace.txt');
echo "<h1>".$piStarCssBannerH1."</h1>\n";
}
if (isset($piStarCssBannerExtTxt)) {
exec('echo piStarCssBannerExtTxt >> /tmp/trace.txt');
echo "<p class=\"bannerext\";\">".$piStarCssBannerExtTxt."</p>\n";
}
?>
<p>
<div class="navbar">
<a class="menuconfig" href="/admin/configure.php"><?php echo $lang['configuration'];?></a>
<?php if ($_SERVER["PHP_SELF"] == "/admin/index.php") {
echo ' <a class="menuupdate" href="/admin/update.php">'.$lang['update'].'</a>'."\n";
echo ' <a class="menupower" href="/admin/power.php">'.$lang['power'].'</a>'."\n";
echo ' <a class="menusysinfo" href="/admin/sysinfo.php">Sysinfo</a>'."\n";
echo ' <a class="menulogs" href="/admin/live_modem_log.php">'.$lang['live_logs'].'</a>'."\n";
} ?>
<a class="menuadmin" href="/admin/"><?php echo $lang['admin'];?></a>
<a class="menudashboard" href="/"><?php echo $lang['dashboard'];?></a>
</div>
</p>
</div>
<?php
// Check if configuration files are matching the current required version
if (($_SERVER["PHP_SELF"] == "/admin/index.php") || ($_SERVER["PHP_SELF"] == "/index.php")) {
$configVersion = getConfigItem("Pi-Star Settings", "ConfigVersion", $_SESSION['MMDVMHostConfigs']);
if ($_SESSION['PiStarRelease']['Pi-Star']['Version'] < "4.1") {
?>
<div>
<table align="center" width="100%" style="margin: 0px 0px 10px 0px; width: 100%;">
<tr>
<td align="center" valign="top" style="background-color: #CA0000; color: #FFFFFF;">
-- IMPORTANT NOTICE --<br />
<br />
Your Pi-Star version has reached its end of support.<br />
You should consider upgrading to a fresh new 4 series installation..<br />
Make a backup of your configuration, which you will be able to restore on the new installation.<br />
</tr>
</table>
</div>
<?php
}
if (!isset($configVersion) || ($configVersion < $CURRENT_CONFIGURATION_VERSION)) {
?>
<div>
<table align="center" width="100%" style="margin: 0px 0px 10px 0px; width: 100%;">
<tr>
<td align="center" valign="top" style="background-color: #CA0000; color: #FFFFFF;">
-- ALERT --<br />
<br />
Your configuration needs to be updated.<br />
Please go in the Configuration page and click on any "Apply Changes" button.<br />
</tr>
</table>
</div>
<?php
}
}
?>
<?php
// Output some default features
if ($_SERVER["PHP_SELF"] == "/index.php")
{
echo '<div class="contentwide">'."\n";
echo '<script type="text/javascript">'."\n";
echo 'function reloadHwInfo(){'."\n";
echo ' $("#hwInfo").load("/dstarrepeater/hw_info.php",function(){ setTimeout(reloadHwInfo, 15000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadHwInfo, 15000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="hwInfo">'."\n";
include 'dstarrepeater/hw_info.php';
echo '</div>'."\n";
echo '</div>'."\n";
echo '<br />'."\n";
}
else if ($_SERVER["PHP_SELF"] == "/admin/index.php") {
echo '<div class="contentwide">'."\n";
echo '<script type="text/javascript">'."\n";
echo 'function reloadHwInfo(){'."\n";
echo ' $("#hwInfo").load("/dstarrepeater/hw_info.php",function(){ setTimeout(reloadHwInfo, 15000) });'."\n";
echo '}'."\n";
echo 'function reloadSysInfo(){'."\n";
echo ' $("#sysInfo").load("/dstarrepeater/system.php",function(){ setTimeout(reloadSysInfo,15000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadHwInfo,15000);'."\n";
echo 'setTimeout(reloadSysInfo,15000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="hwInfo">'."\n";
include 'dstarrepeater/hw_info.php'; // Basic System Info
echo '</div>'."\n";
echo '<div id="sysInfo">'."\n";
include 'dstarrepeater/system.php'; // Basic System Info
echo '</div>'."\n";
echo '</div>'."\n";
}
// First lets figure out if we are in MMDVMHost mode, or dstarrepeater mode;
if (file_exists('/etc/dstar-radio.mmdvmhost')) {
//include 'config/config.php'; // MMDVMDash Config
// include_once 'mmdvmhost/tools.php'; // MMDVMDash Tools
echo '<div class="nav">'."\n"; // Start the Side Menu
echo '<script type="text/javascript">'."\n";
echo 'function reloadRepeaterInfo(){'."\n";
echo ' $("#repeaterInfo").load("/mmdvmhost/repeaterinfo.php",function(){ setTimeout(reloadRepeaterInfo,1000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadRepeaterInfo,1000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="repeaterInfo">'."\n";
include 'mmdvmhost/repeaterinfo.php'; // MMDVMDash Repeater Info
echo '</div>'."\n";
echo '</div>'."\n";
echo '<div class="content">'."\n";
$testMMDVModeDSTARnet = getConfigItem("D-Star Network", "Enable", $_SESSION['MMDVMHostConfigs']);
if ( $testMMDVModeDSTARnet == 1 ) { // If D-Star network is enabled, add these extra features.
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option
echo '<script type="text/javascript">'."\n";
echo 'function reloadrefLinks(){'."\n";
echo ' $("#refLinks").load("/dstarrepeater/active_reflector_links.php",function(){ setTimeout(reloadrefLinks,15000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadrefLinks,15000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="refLinks">'."\n";
include 'dstarrepeater/active_reflector_links.php'; // dstarrepeater gateway config
echo '</div>'."\n";
echo '<br />'."\n";
include 'dstarrepeater/link_manager.php'; // D-Star Link Manager
echo "<br />\n";
}
echo '<script type="text/javascript">'."\n";
echo 'function reloadccsConnections(){'."\n";
echo ' $("#ccsConnects").load("/dstarrepeater/ccs_connections.php",function(){ setTimeout(reloadccsConnections,15000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadccsConnections,15000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="ccsConnects">'."\n";
include 'dstarrepeater/ccs_connections.php'; // dstarrepeater gateway config
echo '</div>'."\n";
}
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option
echo '<script type="text/javascript">'."\n";
echo 'function reloadbmConnections(){'."\n";
echo ' $("#bmConnects").load("/mmdvmhost/bm_links.php",function(){ setTimeout(reloadbmConnections,30000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadbmConnections,30000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="bmConnects">'."\n";
include 'mmdvmhost/bm_links.php'; // BM Links
echo '</div>'."\n";
}
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Options
include 'mmdvmhost/bm_manager.php'; // BM DMR Link Manager
}
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option
echo '<script type="text/javascript">'."\n";
echo 'function reloadtgifConnections(){'."\n";
echo ' $("#tgifConnects").load("/mmdvmhost/tgif_links.php",function(){ setTimeout(reloadtgifConnections,180000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadtgifConnections,180000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="tgifConnects">'."\n";
include 'mmdvmhost/tgif_links.php'; // TGIF Links
echo '</div>'."\n";
}
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Options
include 'mmdvmhost/tgif_manager.php'; // TGIF DMR Link Manager
}
$testMMDVModeYSFnet = getConfigItem("System Fusion Network", "Enable", $_SESSION['MMDVMHostConfigs']);
if ( $testMMDVModeYSFnet == 1 ) { // If YSF network is enabled, add these extra features.
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option
include 'mmdvmhost/ysf_manager.php'; // YSF Links
}
}
$testMMDVModeP25net = getConfigItem("P25 Network", "Enable", $_SESSION['MMDVMHostConfigs']);
if ( $testMMDVModeP25net == 1 ) { // If P25 network is enabled, add these extra features.
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option
include 'mmdvmhost/p25_manager.php'; // P25 Links
}
}
$testMMDVModeNXDNnet = getConfigItem("NXDN Network", "Enable", $_SESSION['MMDVMHostConfigs']);
if ( $testMMDVModeNXDNnet == 1 ) { // If NXDN network is enabled, add these extra features.
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option
include 'mmdvmhost/nxdn_manager.php'; // NXDN Links
}
}
$testMMDVModeM17net = getConfigItem("M17 Network", "Enable", $_SESSION['MMDVMHostConfigs']);
if ( $testMMDVModeM17net == 1 ) { // If M17 network is enabled, add these extra features.
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Option
include 'mmdvmhost/m17_manager.php'; // M17 Links
}
}
echo '<script type="text/javascript">'."\n";
echo 'var lhto;'."\n";
echo 'var ltxto'."\n";
echo 'function reloadLastHeard(){'."\n";
echo ' $("#lastHeard").load("/mmdvmhost/lh.php",function(){ lhto = setTimeout(reloadLastHeard,1500) });'."\n";
echo '}'."\n";
echo 'function reloadLocalTX(){'."\n";
echo ' $("#localTxs").load("/mmdvmhost/localtx.php",function(){ ltxto = setTimeout(reloadLocalTX,1500) });'."\n";
echo '}'."\n";
echo 'function setLHAutorefresh(obj) {'."\n";
echo ' if (obj.checked) {'."\n";
echo ' lhto = setTimeout(reloadLastHeard,1500);'."\n";
echo ' }'."\n";
echo ' else {'."\n";
echo ' clearTimeout(lhto);'."\n";
echo ' }'."\n";
echo '}'."\n";
echo 'function setLocalTXAutorefresh(obj) {'."\n";
echo ' if (obj.checked) {'."\n";
echo ' ltxto = setTimeout(reloadLocalTX,1500);'."\n";
echo ' }'."\n";
echo ' else {'."\n";
echo ' clearTimeout(ltxto);'."\n";
echo ' }'."\n";
echo '}'."\n";
echo 'lhto = setTimeout(reloadLastHeard,1500);'."\n";
echo 'ltxto = setTimeout(reloadLocalTX,1500);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="lastHeard">'."\n";
include 'mmdvmhost/lh.php'; // MMDVMDash Last Herd
echo '</div>'."\n";
echo "<br />\n";
echo '<div id="localTxs">'."\n";
include 'mmdvmhost/localtx.php'; // MMDVMDash Local Trasmissions
echo '</div>'."\n";
// If POCSAG is enabled, show the information pannel
$testMMDVModePOCSAG = getConfigItem("POCSAG Network", "Enable", $_SESSION['MMDVMHostConfigs']);
if ( $testMMDVModePOCSAG == 1 ) {
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Options
echo "<br />\n";
echo '<div id="dapnetMsgr">'."\n";
include 'mmdvmhost/dapnet_messenger.php';
echo '</div>'."\n";
}
$myOrigin = ($_SERVER["PHP_SELF"] == "/admin/index.php" ? "admin" : "other");
echo '<script type="text/javascript">'."\n";
echo 'var pagesto;'."\n";
echo 'function setPagesAutorefresh(obj) {'."\n";
echo ' if (obj.checked) {'."\n";
echo ' pagesto = setTimeout(reloadPages, 5000, "?origin='.$myOrigin.'");'."\n";
echo ' }'."\n";
echo ' else {'."\n";
echo ' clearTimeout(pagesto);'."\n";
echo ' }'."\n";
echo '}'."\n";
echo 'function reloadPages(OptStr){'."\n";
echo ' $("#Pages").load("/mmdvmhost/pages.php"+OptStr, function(){ pagesto = setTimeout(reloadPages, 5000, "?origin='.$myOrigin.'") });'."\n";
echo '}'."\n";
echo 'pagesto = setTimeout(reloadPages, 5000, "?origin='.$myOrigin.'");'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo "<br />\n";
echo '<div id="Pages">'."\n";
include 'mmdvmhost/pages.php'; // POCSAG Messages
echo '</div>'."\n";
}
}
else if (file_exists('/etc/dstar-radio.dstarrepeater')) {
echo '<div class="contentwide">'."\n";
include 'dstarrepeater/gateway_software_config.php'; // dstarrepeater gateway config
echo '<script type="text/javascript">'."\n";
echo 'function reloadrefLinks(){'."\n";
echo ' $("#refLinks").load("/dstarrepeater/active_reflector_links.php",function(){ setTimeout(reloadrefLinks,15000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadrefLinks,15000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<br />'."\n";
echo '<div id="refLinks">'."\n";
include 'dstarrepeater/active_reflector_links.php'; // dstarrepeater gateway config
echo '</div>'."\n";
echo '<br />'."\n";
if ($_SERVER["PHP_SELF"] == "/admin/index.php") { // Admin Only Options
include 'dstarrepeater/link_manager.php'; // D-Star Link Manager
echo "<br />\n";
}
echo '<script type="text/javascript">'."\n";
echo 'function reloadccsConnections(){'."\n";
echo ' $("#ccsConnects").load("/dstarrepeater/ccs_connections.php",function(){ setTimeout(reloadccsConnections,15000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadccsConnections,15000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="ccsConnects">'."\n";
include 'dstarrepeater/ccs_connections.php'; // dstarrepeater gateway config
echo '</div>'."\n";
echo '<script type="text/javascript">'."\n";
echo 'function reloadLocalTx(){'."\n";
echo ' $("#localTx").load("/dstarrepeater/local_tx.php",function(){ setTimeout(reloadLocalTx,3000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadLocalTx,3000);'."\n";
echo 'function reloadLastHeard(){'."\n";
echo ' $("#lhdstar").load("/dstarrepeater/last_heard.php",function(){ setTimeout(reloadLastHeard,3000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadLastHeard,3000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="lhdstar">'."\n";
include 'dstarrepeater/last_heard.php'; //dstarrepeater Last Herd
echo '</div>'."\n";
echo "<br />\n";
echo '<div id="localTx">'."\n";
include 'dstarrepeater/local_tx.php'; //dstarrepeater Local Transmissions
echo '</div>'."\n";
echo '<br />'."\n";
}
else {
echo '<div class="contentwide">'."\n";
//We dont know what mode we are in - fail...
echo "<H1>No Mode Defined...</H1>\n";
echo "<p>I don't know what mode I am in, you probaly just need to configure me.</p>\n";
echo "<p>You will be re-directed to the configuration portal in 10 secs</p>\n";
echo "<p>In the mean time, you might want to register on the support<br />\n";
echo "page here: <a href=\"https://www.facebook.com/groups/pistarusergroup/\" target=\"_new\">https://www.facebook.com/groups/pistarusergroup/</a><br />\n";
echo "or the Support forum here: <a href=\"https://forum.pistar.uk/\" target=\"_new\">https://forum.pistar.uk/</a></p>\n";
echo '<script type="text/javascript">setTimeout(function() { window.location="/admin/configure.php";},10000);</script>'."\n";
}
?>
</div>
<div class="footer">
<?php if ($_SERVER["PHP_SELF"] == "/admin/index.php") {
echo 'Pi-Star web config, © Andy Taylor (MW0MWZ) 2014-'.date("Y").'<br />'."\n";
echo '© Daniel Caujolle-Bert (F1RMB) 2017-'.date("Y").'<br />'."\n";
echo 'Need help? Click <a style="color: #ffffff;" href="https://www.facebook.com/groups/pistarusergroup/" target="_new">here for the Support Group</a><br />'."\n";
echo 'or Click <a style="color: #ffffff;" href="https://forum.pistar.uk/" target="_new">here to join the Support Forum</a><br />'."\n";
}
else {
echo 'Pi-Star / Pi-Star Dashboard, © Andy Taylor (MW0MWZ) 2014-'.date("Y").'<br />'."\n";
echo '© Daniel Caujolle-Bert (F1RMB) 2017-'.date("Y").'<br />'."\n";
echo 'Need help? Click <a style="color: #ffffff;" href="https://www.facebook.com/groups/pistarusergroup/" target="_new">here for the Facebook Group</a><br />'."\n";
echo 'or Click <a style="color: #ffffff;" href="https://forum.pistar.uk/" target="_new">here to join the Support Forum</a><br />'."\n";
echo 'Get your copy of Pi-Star from <a style="color: #ffffff;" href="http://www.pistar.uk/downloads/" target="_new">here</a>.<br />'."\n";
} ?>
</div>
</div>
</body>
</html>