diff --git a/include/functions.php b/include/functions.php index 6cfcb0e..f580d12 100644 --- a/include/functions.php +++ b/include/functions.php @@ -242,7 +242,6 @@ function getHeardList($logLines, $onlyLast) { $alias = ""; foreach ($logLines as $logLine) { - //echo $logLine; $duration = ""; $loss = ""; $ber = ""; @@ -261,7 +260,7 @@ function getHeardList($logLines, $onlyLast) { } else if(strpos($logLine,"bad LC received")) { continue; } - //$alias = substr($logLine, 27, 5); + if(strpos($logLine, "0000") > 0){ $decodedAlias = decodeAlias($logLine); if ($alias =="") diff --git a/include/tools.php b/include/tools.php index d87a8cc..7d723f8 100644 --- a/include/tools.php +++ b/include/tools.php @@ -116,7 +116,7 @@ function convertTimezone($timestamp) { function encode($hex) { $validchars = " abcdefghijklmnopqrstuvwxyzäöüßABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜ0123456789"; $str = ''; - $chrval = hexdec(substr($hex,$i,2)); + $chrval = hexdec($hex); $str = chr($chrval); if (strpos($validchars, $str)>=0) return $str; diff --git a/include/txinfo.php b/include/txinfo.php index 2fda064..72debfe 100644 --- a/include/txinfo.php +++ b/include/txinfo.php @@ -15,8 +15,12 @@ Name Talker Alias + DSTAR-ID Target Source diff --git a/setup.php b/setup.php index 7c975b6..84facaf 100644 --- a/setup.php +++ b/setup.php @@ -295,6 +295,10 @@ get_tz_options(constant("TIMEZONE"), "Timezone", ''); +
+ Show Talker Alias +
>
+
diff --git a/txinfo.php b/txinfo.php index 0bf9982..90dc385 100644 --- a/txinfo.php +++ b/txinfo.php @@ -44,7 +44,8 @@ foreach ($lastHeard as $listElem) { if (defined("ENABLEXTDLOOKUP")) { //echo "".getName($listElem[2]).""; echo"$listElem[3]"; - echo"$listElem[11]"; + if (defined("TALKERALIAS")) + echo"$listElem[11]"; echo"$listElem[4]"; echo"$listElem[5]"; if ($listElem[6] == "RF"){ @@ -57,7 +58,8 @@ foreach ($lastHeard as $listElem) { $diff = $d2->getTimestamp() - $d1->getTimestamp(); echo"$diff s"; } else { - echo"$listElem[10]"; + if (defined("TALKERALIAS")) + echo"$listElem[10]"; echo"$listElem[3]"; echo"$listElem[4]"; if ($listElem[5] == "RF"){ diff --git a/version.php b/version.php index e897ede..d2b3bbc 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@