0) $configs[$key] = $value; } } $progname = basename($_SERVER['SCRIPT_FILENAME'],".php"); $rev="20141101"; $MYCALL=strtoupper($callsign); // Check if the config file exists if (file_exists('/etc/pistar-css.ini')) { // Use the values from the file $piStarCssFile = '/etc/pistar-css.ini'; if (fopen($piStarCssFile,'r')) { $piStarCss = parse_ini_file($piStarCssFile, true); } // Set the Values from the config file if (isset($piStarCss['Lookup']['Service'])) { $callsignLookupSvc = $piStarCss['Lookup']['Service']; } // Lookup Service "QRZ" or "RadioID" else { $callsignLookupSvc = "RadioID"; } // Set the default if its missing // Set the default if its missing } else { // Default values $callsignLookupSvc = "RadioID"; } // Safety net if (($callsignLookupSvc != "RadioID") && ($callsignLookupSvc != "QRZ")) { $callsignLookupSvc = "RadioID"; } // Setup the URL(s) if ($callsignLookupSvc == "RadioID") { $callsignLookupUrl = "https://database.radioid.net/database/view?callsign="; } if ($callsignLookupSvc == "QRZ") { $callsignLookupUrl = "https://www.qrz.com/db/"; } ?>
| () | RPT 1 | RPT 2 | ||
|---|---|---|---|---|
| $local_time | "; print "$myCallHtml";
if($myIdHtml !== '') { print "/$myIdHtml (dPRS) | "; }
else { print " $yourCallHtml | "; print "$rpt1Html | "; print "$rpt2Html | "; print "