"; $reverseLogLinesMMDVM = $logLinesMMDVM; array_multisort($reverseLogLinesMMDVM,SORT_DESC); $lastHeard = getLastHeard($reverseLogLinesMMDVM, True); $counter = 0; foreach ($lastHeard as $listElem) { $counter +=1; // echo""; if (defined("ENABLEXTDLOOKUP") && $listElem[7] == null && $listElem[1] != "POCSAG" || !defined("ENABLEXTDLOOKUP") && $listElem[6] == null && $listElem[1] != "POCSAG" ) { echo ""; echo"$listElem[0]"; echo"$listElem[1]"; echo"$listElem[2]"; if (defined("ENABLEXTDLOOKUP")) { echo"$listElem[3]"; if (defined("TALKERALIAS")) echo"$listElem[11]"; echo"$listElem[4]"; echo"$listElem[5]"; if ($listElem[6] == "RF"){ echo "RF"; }else{ echo"$listElem[6]"; } $d1 = new DateTime($listElem[0], new DateTimeZone(TIMEZONE)); $d2 = new DateTime('now', new DateTimeZone(TIMEZONE)); $diff = $d2->getTimestamp() - $d1->getTimestamp(); echo"$diff s"; } else { if (defined("TALKERALIAS")) echo"$listElem[10]"; echo"$listElem[3]"; echo"$listElem[4]"; if ($listElem[5] == "RF"){ echo "RF"; }else{ echo"$listElem[5]"; } $tz = new DateTimeZone(TIMEZONE); $d1 = new DateTime($listElem[0], $tz); $d2 = new DateTime('now', $tz); $diff = $d2->getTimestamp() - $d1->getTimestamp(); echo"$diff s"; } echo ""; } else { if ($counter == 1) { $colspan = 7; if (defined("ENABLEXTDLOOKUP")) { $colspan++; } if (defined("TALKERALIAS")) { $colspan++; } echo ""; } } } ?>