forked from dhartmann1979/SVXLink-Dash-V2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test2.php
92 lines (87 loc) · 4 KB
/
test2.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
<?php
$progname = basename($_SERVER['SCRIPT_FILENAME'],".php");
include_once 'include/config.php';
include_once 'include/tools.php';
$svxConfigFile = '/etc/svxlink/svxlink.conf';
if (fopen($svxConfigFile, 'r')) {
$svxconfig = parse_ini_file($svxConfigFile, true, INI_SCANNER_RAW);
$callsign = $svxconfig['ReflectorLogic']['CALLSIGN'];
$fmnetwork = $svxconfig['ReflectorLogic']['FMNET'];
$tgUri = $svxconfig['ReflectorLogic']['TG_URI'];
}
else { $callsign="NOCALL";
$fmnetwork="not registered";
}
?>
<!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="ON3URE, G4NAB, SP2ONG, SP0DZ" />
<meta name="Description" content="Dashboard for SVXLink by ON3URE, G4NAB, SP2ONG, SP0DZ" />
<meta name="KeyWords" content="SVXLink,ON3URE, G4NAB, 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="shortcut icon" href="images/favicon.ico" sizes="16x16 32x32" type="image/png">
<?php echo ("<title>" . $callsign ." ". $fmnetwork . " Dashboard</title>"); ?>
<?php include_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="">
</head>
<body style="background-color: #e1e1e1;font: 11pt arial, sans-serif;">
<center>
<fieldset style="box-shadow:5px 5px 20px #999; background-color:#f1f1f1; width:0px;margin-top:15px;margin-left:0px;margin-right:5px;font-size:13px;border-top-left-radius: 10px; border-top-right-radius: 10px;border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;">
<div class="container">
<div class="header">
<div class="parent">
<div class="img" style="padding-left:30px"><img src="images/svxlink.ico" /></div>
<div class="text"style="padding-right:230px">
<center><p style="margin-top:5px;margin-bottom:0px;">
<span style="font-size: 32px;letter-spacing:4px;font-family: "sans-serif", sans-serif;font-weight:500;color:PaleBlue"><?php echo $callsign; ?></span>
<p style="margin-top:0px;margin-bottom:0px;">
<span style="font-size: 18px;letter-spacing:4px;font-family: "sans-serif", sans-serif;font-weight:500;color:PaleBlue"><?php echo $fmnetwork; ?></span>
</p></center>
</div></div>
</div>
<?php include_once __DIR__."/include/top_menu.php"; ?>
<div class="content"><center>
<div style="margin-top:0px;">
</div></center>
</div>
<?php
if (isProcessRunning('node')) {
echo ' <button class="button link" onclick="playAudioToggle(8080, this)"><b> <img src=images/speaker.png alt="" style="vertical-align:middle"> RX Monitor </b></button><br><br>';
}
?>
<?php
if (MENUBUTTON=="TOP") {
include_once __DIR__."/include/buttons.php";
}
?>
<html>
<head>
<title>Authorising Node Access</title>
</head>
<body>
<h1>Node Access details </h1>
<form action="access.php" method="post">
<p>Username: <input type="text" name="username"></p>
<p>Password: <input type="password" name="password"></p>
<p><input type="submit" value="Submit"></p>
</form>
</body>
</html>