2016-04-30 15:38:12 +02:00
|
|
|
<?php
|
2016-05-04 21:32:44 +02:00
|
|
|
$time = microtime();
|
|
|
|
$time = explode(' ', $time);
|
|
|
|
$time = $time[1] + $time[0];
|
|
|
|
$start = $time;
|
|
|
|
|
2016-05-10 21:50:33 +02:00
|
|
|
// do not touch this includes!!! Never ever!!!
|
2016-04-30 15:38:12 +02:00
|
|
|
include "config/config.php";
|
2016-04-30 19:33:41 +02:00
|
|
|
include "include/tools.php";
|
2016-04-30 15:38:12 +02:00
|
|
|
include "include/functions.php";
|
|
|
|
?>
|
|
|
|
<!doctype html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2016-06-24 18:59:05 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.6,maximum-scale=1, user-scalable=yes">
|
2016-06-23 21:17:09 +02:00
|
|
|
<!--<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">-->
|
2016-04-30 15:38:12 +02:00
|
|
|
<meta http-equiv="refresh" content="<?php echo REFRESHAFTER?>">
|
2016-06-23 21:17:09 +02:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
|
2016-04-30 15:38:12 +02:00
|
|
|
<!-- Das neueste kompilierte und minimierte CSS -->
|
2016-06-15 15:36:08 +02:00
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
|
2016-04-30 15:38:12 +02:00
|
|
|
<!-- Optionales Theme -->
|
2016-06-15 15:36:08 +02:00
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
|
2016-04-30 15:38:12 +02:00
|
|
|
<!-- Das neueste kompilierte und minimierte JavaScript -->
|
2016-06-15 15:36:08 +02:00
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
|
2016-06-24 23:12:23 +02:00
|
|
|
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css"></style>
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
|
2016-06-23 21:17:09 +02:00
|
|
|
|
|
|
|
|
2016-06-24 18:59:05 +02:00
|
|
|
|
2016-05-09 22:39:47 +02:00
|
|
|
<title><?php echo getCallsign($mmdvmconfigs) ?> - MMDVM-Dashboard by DG9VH</title>
|
2016-04-30 15:38:12 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="page-header">
|
2016-05-14 20:51:40 +02:00
|
|
|
<h1><small>MMDVM-Dashboard by DG9VH for <?php
|
|
|
|
if (getConfigItem("General", "Duplex", $mmdvmconfigs) == "1") {
|
|
|
|
echo "Repeater";
|
|
|
|
} else {
|
|
|
|
echo "Hotspot";
|
|
|
|
}
|
|
|
|
?>:</small> <?php echo getCallsign($mmdvmconfigs) ?></h1>
|
2016-05-14 23:46:13 +02:00
|
|
|
<h4>MMDVMHost by G4KLX Version: <?php echo getMMDVMHostVersion() ?></h4>
|
2016-04-30 15:38:12 +02:00
|
|
|
</div>
|
2016-06-24 21:12:11 +02:00
|
|
|
|
|
|
|
<button onclick="window.location.href='./scripts/log.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> View Log</button>
|
|
|
|
<button onclick="window.location.href='./scripts/rebootmmdvm.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Reboot MMDVMHost</button>
|
|
|
|
<button onclick="window.location.href='./scripts/reboot.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Reboot System</button>
|
|
|
|
<button onclick="window.location.href='./scripts/halt.php'" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-off" aria-hidden="true"></span> ShutDown System</button>
|
2016-04-30 15:38:12 +02:00
|
|
|
<?php
|
2016-05-20 14:16:33 +02:00
|
|
|
checkSetup();
|
2016-05-10 21:50:33 +02:00
|
|
|
// Here you can feel free to disable info-sections by commenting out with // before include
|
2016-04-30 19:33:41 +02:00
|
|
|
include "include/sysinfo.php";
|
2016-05-02 10:19:08 +02:00
|
|
|
include "include/repeaterinfo.php";
|
2016-05-09 22:39:47 +02:00
|
|
|
include "include/modes.php";
|
2016-04-30 15:38:12 +02:00
|
|
|
include "include/lh.php";
|
2016-05-11 23:16:05 +02:00
|
|
|
include "include/localtx.php";
|
2016-06-11 22:38:54 +02:00
|
|
|
if (defined("ENABLEYSFGATEWAY")) {
|
2016-06-11 22:30:40 +02:00
|
|
|
include "include/ysfgatewayinfo.php";
|
|
|
|
}
|
2016-04-30 15:38:12 +02:00
|
|
|
?>
|
|
|
|
<div class="panel panel-info">
|
|
|
|
<?php
|
2016-05-09 15:46:49 +02:00
|
|
|
$datum = date("Y-m-d");
|
2016-05-04 21:32:44 +02:00
|
|
|
$uhrzeit = date("H:i:s");
|
|
|
|
echo "Last Update $datum, $uhrzeit";
|
|
|
|
$time = microtime();
|
|
|
|
$time = explode(' ', $time);
|
|
|
|
$time = $time[1] + $time[0];
|
|
|
|
$finish = $time;
|
|
|
|
$total_time = round(($finish - $start), 4);
|
2016-06-24 21:08:10 +02:00
|
|
|
echo '<!--Page generated in '.$total_time.' seconds.-->';
|
2016-06-24 22:14:57 +02:00
|
|
|
?> | get your own at: <a href="https://github.com/dg9vh/MMDVMHost-Dashboard">https://github.com/dg9vh/MMDVMHost-Dashboard</a>
|
2016-04-30 15:38:12 +02:00
|
|
|
</div>
|
2016-06-24 23:39:37 +02:00
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
2016-06-25 00:04:28 +02:00
|
|
|
var lastHeardT = $('#lastHeard').dataTable( {
|
2016-06-24 23:39:37 +02:00
|
|
|
"aaSorting": [[0,'desc']]
|
|
|
|
} );
|
2016-06-25 00:04:28 +02:00
|
|
|
var localTxT = $('#localTx').dataTable( {
|
2016-06-24 23:39:37 +02:00
|
|
|
"aaSorting": [[0,'desc']]
|
|
|
|
} );
|
|
|
|
});
|
|
|
|
</script>
|
2016-04-30 15:38:12 +02:00
|
|
|
</body>
|
2016-06-15 15:32:59 +02:00
|
|
|
</html>
|