MMDVMHost-Dashboard/txinfo.php
2016-09-13 19:36:42 +00:00

30 lines
933 B
PHP

<?php
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);
foreach ($lastHeard as $listElem) {
echo "<tr>";
if ($listElem[6] == null) {
echo"<td class=\"nowrap\">$listElem[0]</td>";
echo"<td class=\"nowrap\">$listElem[1]</td>";
echo"<td class=\"nowrap\">$listElem[2]</td>";
if (defined("ENABLEXTDLOOKUP")) {
echo "<td class=\"nowrap\">".getName($listElem[2])."</td>";
}
echo"<td class=\"nowrap\">$listElem[3]</td>";
echo"<td class=\"nowrap\">$listElem[4]</td>";
if ($listElem[5] == "RF"){
echo "<td class=\nowrap\"><span class=\"label label-success\">RF</span></td>";
}else{
echo"<td class=\"nowrap\">$listElem[5]</td>";
}
}
echo "</tr>";
}
?>