|
| 1 | +<?php |
| 2 | +$progname = basename($_SERVER['SCRIPT_FILENAME'],".php"); |
| 3 | +include_once 'include/config.php'; |
| 4 | +include_once 'include/tools.php'; |
| 5 | + |
| 6 | + |
| 7 | +// migrate to external class tbc |
| 8 | + |
| 9 | +$svxConfigFile = '/etc/svxlink/svxlink.conf'; |
| 10 | + if (fopen($svxConfigFile,'r')) |
| 11 | + { $svxconfig = parse_ini_file($svxConfigFile,true,INI_SCANNER_RAW); |
| 12 | + $callsign = $svxconfig['ReflectorLogic']['CALLSIGN']; |
| 13 | + $fmnetwork =$svxconfig['ReflectorLogic']['FMNET']; } |
| 14 | +else { $callsign="N0CALL"; |
| 15 | + $fmnetwork="no registered"; |
| 16 | + } |
| 17 | + |
| 18 | + |
| 19 | +?> |
| 20 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 21 | +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 22 | +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" lang="en"> |
| 23 | +<head> |
| 24 | + <meta name="robots" content="index" /> |
| 25 | + <meta name="robots" content="follow" /> |
| 26 | + <meta name="language" content="English" /> |
| 27 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 28 | + <meta name="generator" content="SVXLink" /> |
| 29 | + <meta name="Author" content="SP2ONG, SP0DZ" /> |
| 30 | + <meta name="Description" content="Dashboard for SVXLink by SP2ONG, SP0DZ" /> |
| 31 | + <meta name="KeyWords" content="SVXLink,SP2ONG" /> |
| 32 | + <meta http-equiv="cache-control" content="max-age=0" /> |
| 33 | + <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" /> |
| 34 | + <meta http-equiv="expires" content="0" /> |
| 35 | + <meta http-equiv="pragma" content="no-cache" /> |
| 36 | +<link rel="preconnect" href="https://fonts.googleapis.com"> |
| 37 | +<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 38 | +<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Fredoka+One&family=Tourney&family=Oswald&display=swap" rel="stylesheet"> |
| 39 | +<link rel="shortcut icon" href="images/favicon.ico" sizes="16x16 32x32" type="image/png"> |
| 40 | + |
| 41 | +<?php echo ("<title>" . $callsign ." ". $fmnetwork . " Dashboard</title>"); ?> |
| 42 | + |
| 43 | + <?php include_once "include/browserdetect.php"; ?> |
| 44 | + <script type="text/javascript" src="scripts/jquery.min.js"></script> |
| 45 | + <script type="text/javascript" src="scripts/functions.js"></script> |
| 46 | + <script type="text/javascript" src="scripts/pcm-player.min.js"></script> |
| 47 | + <script type="text/javascript"> |
| 48 | + $.ajaxSetup({ cache: false }); |
| 49 | + </script> |
| 50 | + <link href="css/featherlight.css" type="text/css" rel="stylesheet" /> |
| 51 | + <script src="scripts/featherlight.js" type="text/javascript" charset="utf-8"></script> |
| 52 | +<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
| 53 | +</head> |
| 54 | +<body style="background-color: #e1e1e1;font: 11pt arial, sans-serif;"> |
| 55 | +<center> |
| 56 | +<fieldset style="box-shadow:0 0 10px #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;"> |
| 57 | +<div class="container"> |
| 58 | +<div class="header"> |
| 59 | +<div class="parent"> |
| 60 | + <div class="img" style="padding-left:270px"><img src="images/tower-rpt.png" /></div> |
| 61 | + <div class="text"style="padding-right:230px"> |
| 62 | +<center><p style="margin-top:5px;margin-bottom:0px;"> |
| 63 | +<?php |
| 64 | +$svxConfigFile = '/etc/svxlink/svxlink.conf'; |
| 65 | + if (fopen($svxConfigFile,'r')) |
| 66 | + { $svxconfig = parse_ini_file($svxConfigFile,true,INI_SCANNER_RAW); |
| 67 | + $callsign = $svxconfig['ReflectorLogic']['CALLSIGN'];} |
| 68 | + else { $callsign="N0CALL";} |
| 69 | +?> |
| 70 | +<span style="font-size: 32px;letter-spacing:4px;font-family: "Fredoka One", sans-serif;font-weight:500;color:DarkOrange"><?php echo $callsign; ?></span> |
| 71 | +<p style="margin-top:0px;margin-bottom:0px;"> |
| 72 | +<span style="font-size: 30px;font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, sans-serif;letter-spacing: 3px;font-weight: 600;background: #3083b8;"><?php echo $fmnetwork; ?></span> |
| 73 | +</p></center> |
| 74 | +</div></div> |
| 75 | +</div> |
| 76 | + |
| 77 | +<?php include_once __DIR__."/include/top_menu.php"; ?> |
| 78 | + |
| 79 | +<div class="content"><center> |
| 80 | +<div style="margin-top:8px;"> |
| 81 | +</div></center> |
| 82 | +</div> |
| 83 | +<?php |
| 84 | +if (MENUBUTTON=="TOP") { |
| 85 | +include_once __DIR__."/include/buttons.php"; |
| 86 | +} |
| 87 | +?> |
| 88 | +<?php |
| 89 | + 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;">'; |
| 90 | + echo '<td width="200px" valign="top" class="hide" style="height:auto;border:0;background-color:#f1f1f1;">'; |
| 91 | + echo '<div class="nav" style="margin-bottom:10px;margin-top:10px;">'."\n"; |
| 92 | + |
| 93 | + echo '<script type="text/javascript">'."\n"; |
| 94 | + echo 'function reloadStatusInfo(){'."\n"; |
| 95 | + echo ' $("#statusInfo").load("include/status.php",function(){ setTimeout(reloadStatusInfo,3000) });'."\n"; |
| 96 | + echo '}'."\n"; |
| 97 | + echo 'setTimeout(reloadStatusInfo,3000);'."\n"; |
| 98 | + echo '$(window).trigger(\'resize\');'."\n"; |
| 99 | + echo '</script>'."\n"; |
| 100 | + echo '<div id="statusInfo" style="margin-bottom:30px;">'."\n"; |
| 101 | + include 'include/status.php'; |
| 102 | + echo '</div>'."\n"; |
| 103 | + echo '</div>'."\n"; |
| 104 | + echo '</td>'."\n"; |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + echo '<td valign="center" style="height:auto;border:none; background-color:#f1f1f1;">'; |
| 111 | + |
| 112 | + echo '<iframe src="/audio" width="600" height="500" title="audio"></iframe>'; |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + echo '</td>'; |
| 118 | +?> |
| 119 | +</tr></table> |
| 120 | +<?php |
| 121 | + echo '<div class="content2">'."\n"; |
| 122 | + echo '<script type="text/javascript">'."\n"; |
| 123 | + echo 'function reloadSysInfo(){'."\n"; |
| 124 | + echo ' $("#sysInfo").load("include/system.php",function(){ setTimeout(reloadSysInfo,15000) });'."\n"; |
| 125 | + echo '}'."\n"; |
| 126 | + echo 'setTimeout(reloadSysInfo,15000);'."\n"; |
| 127 | + echo '$(window).trigger(\'resize\');'."\n"; |
| 128 | + echo '</script>'."\n"; |
| 129 | + echo '<div id="sysInfo">'."\n"; |
| 130 | + include 'include/system.php'; |
| 131 | + echo '</div>'."\n"; |
| 132 | + echo '</div>'."\n"; |
| 133 | +?> |
| 134 | +<?php |
| 135 | +if (MENUBUTTON=="BOTTOM") { |
| 136 | +include_once __DIR__."/include/buttons.php"; } |
| 137 | +?> |
| 138 | +<!--- Please do not remove copyright info --> |
| 139 | +<center><span title="Dashboard " style="font: 7pt arial, sans-serif;">SvxLink Dashboard © SP2ONG, SP0DZ <?php $cdate=date("Y"); if ($cdate > "2021") {$cdate="2021-".date("Y");} echo $cdate; ?> |
| 140 | + </div> |
| 141 | +</div> |
| 142 | +</fieldset> |
| 143 | +<br> |
| 144 | +</body> |
| 145 | +</html> |
0 commit comments