diff --git a/example.php b/example.php
index 29b9ca8..3166ec3 100644
--- a/example.php
+++ b/example.php
@@ -6,6 +6,8 @@
', "\n";
$dbname = GetCFGValue('dashboard_sql_filename');
$db = new SQLite3($dbname, SQLITE3_OPEN_READONLY);
- $ss = 'SELECT mycall,sfx,urcall,module,gateway,strftime("%s","now")-lastime FROM LHEARD ORDER BY strftime("%s","now")-lastime LIMIT '.GetCFGValue('dashboard_lastheard_count', $cfg, $defaults);
+ $ss = 'SELECT mycall,sfx,urcall,module,gateway,strftime("%s","now")-lastime FROM LHEARD ORDER BY strftime("%s","now")-lastime LIMIT '.GetCFGValue('dashboard_lastheard_count');
if ($stmnt = $db->prepare()) {
if ($result = $stmnt->execute()) {
while ($row = $result->FetchArray(SQLITE3_NUM)) {
- $cs = str_pad($trim($row[0])./.$trim($row[1]), 13);
+ $cs = str_pad($trim($row[0]).'/'.$trim($row[1]), 13);
$rstr = $cs.' '.$row[2].' '.$row[3].' '.$row[4].' '.SecToStrstring($row[4]).'
';
echo str_replace(' ', ' ', $rstr), "\n";
}
@@ -120,12 +122,10 @@
echo '
', "\n";
}
- $cfg = array();
- $defaults = array();
ParseKVFile($cfgdir.'/qn.cfg', $cfg);
ParseKVFile($cfgdir.'/defaults', $defaults);
?>
-QnetGateway Dashboard
+QnetGateway Dashboard
2) {
echo 'Processes:
', "\n";
@@ -137,7 +137,7 @@ if (`ps -aux | grep -e qn -e MMDVMHost | wc -l` > 2) {
echo '', "\n";
}
-if ('true' == GetCFGValue('dashboard', $cfg, $defaults))
+if ('true' == GetCFGValue('dashboard_enable_lastheard'))
LastHeardPage();
?>
IP Addresses: