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 @@