2016-09-11 23:00:43 +02:00
|
|
|
<?php
|
2016-10-12 17:45:24 +02:00
|
|
|
//session_start();
|
2016-09-14 20:38:12 +02:00
|
|
|
header("Cache-Control: no-cache, must-revalidate");
|
|
|
|
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
|
2016-09-11 23:00:43 +02:00
|
|
|
include "config/config.php";
|
|
|
|
include "include/tools.php";
|
|
|
|
include "include/functions.php";
|
|
|
|
$mmdvmconfigs = getMMDVMConfig();
|
2018-04-04 22:37:11 +02:00
|
|
|
if (defined("RESOLVETGS")) {
|
|
|
|
$tgList = getTGList();
|
|
|
|
}
|
2016-10-26 15:06:45 +02:00
|
|
|
if (!defined("MMDVMLOGPREFIX"))
|
2017-01-10 15:04:51 +01:00
|
|
|
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
2016-11-08 23:23:15 +01:00
|
|
|
if (!defined("TIMEZONE"))
|
2017-01-10 15:04:51 +01:00
|
|
|
define("TIMEZONE", "UTC");
|
2016-09-11 23:00:43 +02:00
|
|
|
$logLinesMMDVM = getShortMMDVMLog();
|
2019-12-09 20:24:47 +01:00
|
|
|
// echo"<!--";
|
|
|
|
// var_dump($logLinesMMDVM);
|
|
|
|
// echo"-->";
|
2016-09-11 23:00:43 +02:00
|
|
|
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
|
|
|
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
|
|
|
$lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
|
2016-11-22 23:58:05 +01:00
|
|
|
$counter = 0;
|
2016-09-13 21:36:42 +02:00
|
|
|
foreach ($lastHeard as $listElem) {
|
2017-01-10 15:04:51 +01:00
|
|
|
$counter +=1;
|
2019-12-09 20:24:47 +01:00
|
|
|
// echo"<!--";
|
|
|
|
// var_dump($listElem);
|
|
|
|
// echo"-->";
|
2024-04-07 20:09:02 +02:00
|
|
|
if (getEnabled("D-Star", $mmdvmconfigs) == 1 && defined("ENABLEXTDLOOKUP") && $listElem[7] == null && $listElem[1] != "POCSAG" || !defined("ENABLEXTDLOOKUP") && $listElem[6] == null && $listElem[1] != "POCSAG" || getEnabled("D-Star", $mmdvmconfigs) == 0 && defined("ENABLEXTDLOOKUP") && $listElem[6] == null && $listElem[1] != "POCSAG" || !defined("ENABLEXTDLOOKUP") && $listElem[5] == null && $listElem[1] != "POCSAG" ) {
|
2017-01-10 15:04:51 +01:00
|
|
|
echo "<tr>";
|
|
|
|
echo"<td nowrap>$listElem[0]</td>";
|
|
|
|
echo"<td nowrap>$listElem[1]</td>";
|
|
|
|
echo"<td nowrap>$listElem[2]</td>";
|
|
|
|
if (defined("ENABLEXTDLOOKUP")) {
|
|
|
|
echo"<td nowrap>$listElem[3]</td>";
|
2020-10-30 14:27:48 +01:00
|
|
|
if (getEnabled("D-Star", $mmdvmconfigs) == 1) {
|
|
|
|
if (defined("TALKERALIAS"))
|
|
|
|
echo"<td nowrap>$listElem[11]</td>";
|
|
|
|
echo"<td nowrap>$listElem[4]</td>";
|
|
|
|
echo"<td nowrap>$listElem[5]</td>";
|
|
|
|
if ($listElem[6] == "RF"){
|
|
|
|
echo "<td nowrap><span class=\"badge badge-success\">RF</span></td>";
|
|
|
|
}else{
|
|
|
|
echo"<td nowrap>$listElem[6]</td>";
|
|
|
|
}
|
|
|
|
$d1 = new DateTime($listElem[0], new DateTimeZone(TIMEZONE));
|
|
|
|
$d2 = new DateTime('now', new DateTimeZone(TIMEZONE));
|
|
|
|
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
|
|
|
echo"<td nowrap>$diff s</td>";
|
|
|
|
} else {
|
|
|
|
if (defined("TALKERALIAS"))
|
|
|
|
echo"<td nowrap>$listElem[10]</td>";
|
|
|
|
echo"<td nowrap>$listElem[4]</td>";
|
|
|
|
if ($listElem[5] == "RF"){
|
|
|
|
echo "<td nowrap><span class=\"badge badge-success\">RF</span></td>";
|
|
|
|
}else{
|
|
|
|
echo"<td nowrap>$listElem[5]</td>";
|
|
|
|
}
|
|
|
|
$d1 = new DateTime($listElem[0], new DateTimeZone(TIMEZONE));
|
|
|
|
$d2 = new DateTime('now', new DateTimeZone(TIMEZONE));
|
|
|
|
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
|
|
|
echo"<td nowrap>$diff s</td>";
|
2017-01-10 15:04:51 +01:00
|
|
|
}
|
|
|
|
} else {
|
2017-02-13 22:31:27 +01:00
|
|
|
if (defined("TALKERALIAS"))
|
|
|
|
echo"<td nowrap>$listElem[10]</td>";
|
2017-01-10 15:04:51 +01:00
|
|
|
echo"<td nowrap>$listElem[3]</td>";
|
|
|
|
echo"<td nowrap>$listElem[4]</td>";
|
|
|
|
if ($listElem[5] == "RF"){
|
2018-02-11 22:59:54 +01:00
|
|
|
echo "<td nowrap><span class=\"badge badge-success\">RF</span></td>";
|
2017-01-10 15:04:51 +01:00
|
|
|
}else{
|
|
|
|
echo"<td nowrap>$listElem[5]</td>";
|
|
|
|
}
|
2017-05-16 10:05:52 +02:00
|
|
|
$tz = new DateTimeZone(TIMEZONE);
|
|
|
|
$d1 = new DateTime($listElem[0], $tz);
|
|
|
|
$d2 = new DateTime('now', $tz);
|
|
|
|
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
2017-01-10 15:04:51 +01:00
|
|
|
echo"<td nowrap>$diff s</td>";
|
|
|
|
}
|
|
|
|
echo "</tr>";
|
|
|
|
} else {
|
|
|
|
if ($counter == 1) {
|
2017-02-14 10:12:04 +01:00
|
|
|
$colspan = 7;
|
2017-01-10 15:04:51 +01:00
|
|
|
if (defined("ENABLEXTDLOOKUP")) {
|
2017-02-14 10:12:04 +01:00
|
|
|
$colspan++;
|
|
|
|
}
|
|
|
|
if (defined("TALKERALIAS")) {
|
|
|
|
$colspan++;
|
|
|
|
}
|
|
|
|
echo "<tr><td colspan='".$colspan."'></td></tr>";
|
2017-01-10 15:04:51 +01:00
|
|
|
}
|
|
|
|
}
|
2016-09-11 23:00:43 +02:00
|
|
|
}
|
|
|
|
?>
|