diff --git a/utils/log.php b/utils/log.php new file mode 100644 index 0000000..35d7a8a --- /dev/null +++ b/utils/log.php @@ -0,0 +1,96 @@ +\n\n"; +echo "
\n";
+echo "© developed by DL1BZ as logging-extension of HBmonitor (2018,2019)
\n";
+echo "
Date | Time (local) | Slot | TG | TG Name | Callsign (DMR-Id) | Name | Length (min:s) | Source | System | "; +$s_r = " | "; +$s_m = " | "; + +// output to html table from the newest entry to the oldest +for ($i=count($log_time)-1; $i >= 0; $i--) + +{ +// prepare date string for output in european format +$split_date = substr($log_time[$i],0,10); +$date_eu = explode("-", $split_date); + +$ts[$i] = substr($ts[$i],-1); +$tg[$i] = substr($tg[$i],2); + +// define special character convert for number zero - we write calls with number zero with this character in logs in Germany +$src_name[$i] = str_replace("0","Ø",$src_name[$i]); +if (substr($user_call[$i],2,1)=="0") { $user_call[$i] = str_replace("0","Ø",$user_call[$i]); } + +$log_time[$i]=substr($log_time[$i],0,19); + +// thats a special thing for an Id comes without DMR-Id from PEGASUS project - it means we need to convert to "NoCall" thats for calls from source ECHOLINK +if ($user_id[$i]=="1234567") {$user_call[$i] = "*NoCallsign*"; $user_id[$i]="-";} + +// output table +echo " |
---|---|---|---|---|---|---|---|---|---|