diff --git a/example.php b/example.php index 6d53b0f..9d6b19d 100644 --- a/example.php +++ b/example.php @@ -140,14 +140,13 @@ if ('true' == GetCFGValue('dash_show_ps') && `ps -aux | grep -e qn -e MMDVMHost foreach ($lines as $line) { echo str_replace(' ', ' ', $line), "
\n"; } - echo '', "\n"; + echo '
', "\n"; } if ('true' == GetCFGValue('dash_show_lh')) { echo 'Last Heard:
', "\n"; $rstr = 'MyCall/Sfx URCall Module Gateway Last Time
'; echo str_replace(' ', ' ', $rstr), "\n"; - echo '

', "\n"; $dbname = GetCFGValue('dash_sql_filename'); $db = new SQLite3($dbname, SQLITE3_OPEN_READONLY); $ss = 'SELECT mycall,sfx,urcall,module,gateway,strftime("%s","now")-lasttime FROM LHEARD ORDER BY 6 LIMIT '.GetCFGValue('dash_lastheard_count').' '; @@ -155,7 +154,7 @@ if ('true' == GetCFGValue('dash_show_lh')) { if ($result = $stmnt->execute()) { while ($row = $result->FetchArray(SQLITE3_NUM)) { $rstr = MyAndSfxToQrz($row[0], $row[1]).' '.$row[2].' '.RptrToAprs($row[3]).' '.$row[4].' '.SecToString(intval($row[5])).'
'; - echo str_replace(str_replace(' ', ' ', $rstr), '*', ' '), "\n"; + echo str_replace('*', ' ', str_replace(' ', ' ', $rstr)), "\n"; } $result->finalize(); }