0) $configs[$key] = $value; } } $progname = basename($_SERVER['SCRIPT_FILENAME'],".php"); $rev="20141101"; $MYCALL=strtoupper($callsign); ?>
| RadioRadio Module | DefaultDefault Link Destination | AutoAutoLink- green: enabled - red: disabled |
TimerReset/Restart Timer | LinkLink-Status- green: enabled - red: disabled |
Linked toLinked Destination | ModeMode or Protocol used | DirectionDirectionIncoming or Outgoing | Last Change ()Timestamp of last changeTime of last change in time zone | ||
|---|---|---|---|---|---|---|---|---|---|---|
| ".str_replace(' ', ' ', substr($rptrcall,0,8))." | "; $param="reflector" . $i; if(isset($configs[$param])) { print "".str_replace(' ', ' ', substr($configs[$param],0,8))." | "; } else { print "";} $param="atStartup" . $i; if($configs[$param] == 1){print " | Auto | "; } else { print "No | "; } $param="reconnect" . $i; if(isset($configs[$param])) { $t = $configs[$param]; } else { $t = 0; } if($t > 12){ $t = 12; } print "$tot[$t] | "; $j=0; if ($linkLog = fopen($linkLogPath,'r')) { while ($linkLine = fgets($linkLog)) { //$statimg = "$statimg | "; print "".str_replace(' ', ' ', substr($linkRefl,0,8))." | "; print "$protocol | "; print "Outgoing | "; $utc_time = $linkDate; $utc_tz = new DateTimeZone('UTC'); $local_tz = new DateTimeZone(date_default_timezone_get ()); $dt = new DateTime($utc_time, $utc_tz); $dt->setTimeZone($local_tz); $local_time = $dt->format('H:i:s M jS'); print "$local_time | "; print "Down | None | -- | ---- | ---- | \n"; } // 00000000001111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000111111111122 // 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901 // 2012-05-08 21:16:31: DExtra link - Type: Repeater Rptr: DB0LJ A Refl: DB0MYK B Dir: Incoming // 2012-05-08 21:16:31: DPlus link - Type: Dongle User: W1CDG H Dir: Incoming if ($linkLog = fopen($linkLogPath,'r')) { while ($linkLine = fgets($linkLog)) { $statimg = "Down"; $linkDate = " "; $protocol = " "; $linkType = " "; $linkRptr = " "; $linkRefl = " "; if(preg_match_all('/^(.{19}).*(D[A-Za-z]*).*Type: ([A-Za-z]*).*Rptr: (.{8}).*Refl: (.{8}).*Dir: Incoming$/',$linkLine,$linx) > 0){ $statimg = "Up"; $linkDate = date("d-M-Y H:i:s", strtotime(substr($linx[1][0],0,19))); $protocol = $linx[2][0]; $linkType = $linx[3][0]; $linkRptr = $linx[4][0]; $linkRefl = $linx[5][0]; if($linkRptr == $rptrcall){ $ci++; if($ci > 1) { $ci = 0; } print "
| ".str_replace(' ', ' ', substr($rptrcall,0,8))." | "; print ""; print " | $statimg | "; print "".str_replace(' ', ' ', substr($linkRefl,0,8))." | "; print "$protocol | "; print "Incoming | "; $utc_time = $linkDate; $utc_tz = new DateTimeZone('UTC'); $local_tz = new DateTimeZone(date_default_timezone_get ()); $dt = new DateTime($utc_time, $utc_tz); $dt->setTimeZone($local_tz); $local_time = $dt->format('H:i:s M jS'); print "$local_time | "; print "||||
| ".str_replace(' ', ' ', substr($rptrcall,0,8))." | "; print ""; print " | $statimg | "; print "".str_replace(' ', ' ', substr($linkRptr,0,8))." | "; print "$protocol | "; print "Incoming | "; $utc_time = $linkDate; $utc_tz = new DateTimeZone('UTC'); $local_tz = new DateTimeZone(date_default_timezone_get ()); $dt = new DateTime($utc_time, $utc_tz); $dt->setTimeZone($local_tz); $local_time = $dt->format('H:i:s M jS'); print "$local_time | "; print "