This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
148 lines (132 loc) · 5.69 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
<?php
$progname = basename($_SERVER['SCRIPT_FILENAME'], ".php");
// pre-check environment
if (DIRECTORY_SEPARATOR !== '/') { die("ERROR: This SVXLINK Dashboard runs only with UNIX-like OS (Linux,BSD,macOS)...exiting");
}
if (!version_compare(phpversion(), '8', '<')) { die("ERROR: This Dashboard do NOT work with PHP-Version greater 7, but you have ".phpversion()."...exiting");
}
if (!file_exists('/etc/default/svxlink') ) { die("ERROR: File /etc/default/svxlink not found => SVXLINK not or not complete installed...exiting");
}
if ((!file_exists('include/config.inc.php')) && (file_exists('include/config.inc.php.example')) ) {
copy('include/config.inc.php.example', 'include/config.inc.php');
sleep(3);
}
if (!file_exists('include/config.php') ) { die("ERROR: File include/config.php not found...exiting");
}
else { include_once 'include/config.php';
}
require_once 'include/tools.php';
?>
<!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" />
<meta name="generator" content="SVXLink" />
<meta name="Author" content="SP2ONG, SP0DZ" />
<meta name="Description" content="Dashboard for SVXLink by SP2ONG, SP0DZ" />
<meta name="KeyWords" content="SVXLink,SP2ONG, SP0DZ" />
<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="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Fredoka+One&family=Tourney&family=Oswald&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="images/favicon.ico" sizes="16x16 32x32" type="image/png">
<?php echo ("<title>" . $callsign ." ". $fmnetwork . " Dashboard</title>"); ?>
<?php require_once "include/browserdetect.php"; ?>
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/functions.js"></script>
<script type="text/javascript" src="scripts/pcm-player.min.js"></script>
<script type="text/javascript">
$.ajaxSetup({ cache: false });
</script>
<link href="css/featherlight.css" type="text/css" rel="stylesheet" />
<script src="scripts/featherlight.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body style="background-color: #e1e1e1;font: 11pt arial, sans-serif;">
<?php require "./include/top_header.php" ?>
</div></div>
</div>
<?php require_once __DIR__."/include/top_menu.php"; ?>
<div class="content"><center>
<div style="margin-top:0px;">
</div></center>
</div>
<?php
if (MENUBUTTON=="TOP") {
include_once __DIR__."/include/buttons.php";
}
?>
<?php
echo '<table style="margin-bottom:0px;border:0; border-collapse:collapse; cellspacing:0; cellpadding:0; background-color:#f1f1f1;"><tr style="border:none;background-color:#f1f1f1;">';
echo '<td width="200px" valign="top" class="hide" style="height:auto;border:0;background-color:#f1f1f1;">';
echo '<div class="nav" style="margin-bottom:10px;margin-top:10px;">'."\n";
echo '<script type="text/javascript">'."\n";
echo 'function reloadStatusInfo(){'."\n";
echo ' $("#statusInfo").load("include/status.php",function(){ setTimeout(reloadStatusInfo,3000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadStatusInfo,3000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="statusInfo" style="margin-bottom:30px;">'."\n";
require 'include/status.php';
echo '</div>'."\n";
echo '</div>'."\n";
echo '</td>'."\n";
echo '<td valign="top" style="height:auto;border:none; background-color:#f1f1f1;">';
echo '<div class="content">'."\n";
echo '<script type="text/javascript">'."\n";
if (URLSVXRAPI!="") {
echo 'function reloadSVXREF(){'."\n";
echo '}'."\n";
echo 'setTimeout(reloadSVXREF,90000);'."\n";
}
echo 'function reloadLastHerd(){'."\n";
echo ' $("#lastHerd").load("include/lh.php",function(){ setTimeout(reloadLastHerd,3000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadLastHerd,3000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<center><div id="lastHerd" style="margin-bottom:30px;">'."\n";
require 'include/lh.php';
echo '</div></center>'."\n";
echo "<br />\n";
if (URLSVXRAPI!="") {
echo '<center><div id="svxref" style="margin-bottom:30px;">'."\n";
echo '</div></center>'."\n";
}
echo '</td>';
?>
</tr></table>
<?php
echo '<div class="content2">'."\n";
echo '<script type="text/javascript">'."\n";
echo 'function reloadSysInfo(){'."\n";
echo ' $("#sysInfo").load("include/system.php",function(){ setTimeout(reloadSysInfo,15000) });'."\n";
echo '}'."\n";
echo 'setTimeout(reloadSysInfo,15000);'."\n";
echo '$(window).trigger(\'resize\');'."\n";
echo '</script>'."\n";
echo '<div id="sysInfo">'."\n";
require 'include/system.php';
echo '</div>'."\n";
echo '</div>'."\n";
?>
<?php
if ((MENUBUTTON=="BOTTOM") && ($dtmfctrl != "/dev/null")) {
include_once __DIR__."/include/buttons.php";
}
?>
<?php require "./include/footer.php" ?>
</div>
</div>
</fieldset>
<br>
</body>
</html>