From b8b77464c75792cf0740006074d379d9e70f0af2 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sat, 7 Mar 2020 17:14:13 -0700 Subject: [PATCH] moved db file --- example.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.php b/example.php index 40bee86..940b2bd 100644 --- a/example.php +++ b/example.php @@ -147,7 +147,7 @@ if ('true' == GetCFGValue('dash_show_lh')) { echo 'Last Heard:
', "\n"; $rstr = 'MyCall/Sfx URCall Module Gateway Last Time
'; echo str_replace(' ', ' ', $rstr), "\n"; - $dbname = GetCFGValue('dash_sql_filename'); + $dbname = $cfgdir.'/'.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').' '; if ($stmnt = $db->prepare($ss)) {