From 54b23468d018de1d5a7f80e7cb1ad0b0cec70cde Mon Sep 17 00:00:00 2001 From: dg9vh Date: Fri, 16 Sep 2016 07:57:52 +0000 Subject: [PATCH] added link to qrz.com on callsigns - configurable with setup.php to enable/disable --- include/lh.php | 6 +++++- include/localtx.php | 6 +++++- setup.php | 4 ++++ txinfo.php | 6 +++++- version.php | 2 +- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/lh.php b/include/lh.php index 5ef9660..36c65dc 100644 --- a/include/lh.php +++ b/include/lh.php @@ -34,7 +34,11 @@ for ($i = 0; ($i < $totalLH); $i++) { echo""; echo"$listElem[0]"; echo"$listElem[1]"; - echo"".str_replace("0","Ø",$listElem[2]).""; + if (constant("SHOWQRZ")) { + echo"".str_replace("0","Ø",$listElem[2]).""; + } else { + echo"".str_replace("0","Ø",$listElem[2]).""; + } if (defined("ENABLEXTDLOOKUP")) { echo "".getName($listElem[2]).""; } diff --git a/include/localtx.php b/include/localtx.php index 7864b73..ff69daa 100644 --- a/include/localtx.php +++ b/include/localtx.php @@ -38,7 +38,11 @@ for ($i = 0; $i < count($localTXList); $i++) { echo""; echo"$listElem[0]"; echo"$listElem[1]"; - echo"".str_replace("0","Ø",$listElem[2]).""; + if (constant("SHOWQRZ")) { + echo"".str_replace("0","Ø",$listElem[2]).""; + } else { + echo"".str_replace("0","Ø",$listElem[2]).""; + } if (defined("ENABLEXTDLOOKUP")) { echo "".getName($listElem[2]).""; } diff --git a/setup.php b/setup.php index 66e7a8b..cfc9abf 100644 --- a/setup.php +++ b/setup.php @@ -160,6 +160,10 @@ include "include/tools.php";
State that signalizes online-state: " name="POWERONLINESTATE" class="form-control" placeholder="1" aria-describedby="POWERONLINESTATE"> +
+
+ Show link to QRZ.com on Callsigns +
>
diff --git a/txinfo.php b/txinfo.php index f9e39f9..7fb3aeb 100644 --- a/txinfo.php +++ b/txinfo.php @@ -14,7 +14,11 @@ foreach ($lastHeard as $listElem) { if ($listElem[6] == null) { echo"$listElem[0]"; echo"$listElem[1]"; - echo"".str_replace("0","Ø",$listElem[2]).""; + if (constant("SHOWQRZ")) { + echo"".str_replace("0","Ø",$listElem[2]).""; + } else { + echo"".str_replace("0","Ø",$listElem[2]).""; + } if (defined("ENABLEXTDLOOKUP")) { echo "".getName($listElem[2]).""; } diff --git a/version.php b/version.php index 54e6053..5063c78 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@