2016-09-11 23:00:43 +02:00
|
|
|
<?php
|
2016-10-07 21:24:26 +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();
|
|
|
|
$logLinesMMDVM = getShortMMDVMLog();
|
|
|
|
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
|
|
|
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
|
|
|
$lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
|
2016-10-07 21:24:26 +02:00
|
|
|
$oldLastHeard = $_SESSION['lastHeard'];
|
|
|
|
echo"<!--";
|
|
|
|
var_dump($lastHeard);
|
|
|
|
echo"-->";
|
2016-09-13 21:36:42 +02:00
|
|
|
foreach ($lastHeard as $listElem) {
|
|
|
|
echo "<tr>";
|
2016-10-07 21:24:26 +02:00
|
|
|
if ($listElem[7] == null) {
|
2016-09-15 21:49:48 +02:00
|
|
|
echo"<td nowrap>$listElem[0]</td>";
|
|
|
|
echo"<td nowrap>$listElem[1]</td>";
|
2016-10-07 21:38:29 +02:00
|
|
|
/*if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) {
|
2016-09-16 09:57:52 +02:00
|
|
|
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
|
|
|
} else {
|
2016-10-01 16:55:59 +02:00
|
|
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
|
2016-10-07 21:38:29 +02:00
|
|
|
}*/
|
|
|
|
echo"<td nowrap>$listElem[2]</td>";
|
|
|
|
|
2016-09-13 21:36:42 +02:00
|
|
|
if (defined("ENABLEXTDLOOKUP")) {
|
2016-10-07 21:24:26 +02:00
|
|
|
//echo "<td nowrap>".getName($listElem[2])."</td>";
|
|
|
|
echo "<td nowrap>$listElem[3]</td>";
|
2016-09-13 21:36:42 +02:00
|
|
|
}
|
2016-09-15 21:49:48 +02:00
|
|
|
echo"<td nowrap>$listElem[4]</td>";
|
2016-10-07 21:24:26 +02:00
|
|
|
echo"<td nowrap>$listElem[5]</td>";
|
2016-09-13 21:36:42 +02:00
|
|
|
if ($listElem[5] == "RF"){
|
2016-09-15 21:49:48 +02:00
|
|
|
echo "<td nowrap><span class=\"label label-success\">RF</span></td>";
|
2016-09-13 21:36:42 +02:00
|
|
|
}else{
|
2016-10-07 21:24:26 +02:00
|
|
|
echo"<td nowrap>$listElem[6]</td>";
|
2016-09-13 21:36:42 +02:00
|
|
|
}
|
2016-09-15 21:49:48 +02:00
|
|
|
$UTC = new DateTimeZone("UTC");
|
|
|
|
$d1 = new DateTime($listElem[0], $UTC);
|
|
|
|
$d2 = new DateTime('now', $UTC);
|
|
|
|
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
|
|
|
echo"<td nowrap>$diff s</td>";
|
2016-10-07 21:24:26 +02:00
|
|
|
}
|
2016-09-13 21:36:42 +02:00
|
|
|
echo "</tr>";
|
2016-09-11 23:00:43 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|