diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dba.php | 2 | ||||
-rw-r--r-- | include/notifier.php | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/dba.php b/include/dba.php index 050068230..9e44db5fb 100644 --- a/include/dba.php +++ b/include/dba.php @@ -46,7 +46,7 @@ class dba { else $mesg = $result->num_rows.' results' . EOL; - $str = 'SQL = ' . $sql . EOL . 'SQL returned ' . $mesg . EOL; + $str = 'SQL = ' . printable($sql) . EOL . 'SQL returned ' . $mesg . EOL; switch($this->debug) { case 3: diff --git a/include/notifier.php b/include/notifier.php index dcc772454..149ce765c 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -1,21 +1,21 @@ <?php -$debugging = false; + $debugging = false; -require_once("boot.php"); + require_once("boot.php"); -$a = new App; + $a = new App; -@include(".htconfig.php"); -require_once("dba.php"); -$db = new dba($db_host, $db_user, $db_pass, $db_data, $install); - unset($db_host, $db_user, $db_pass, $db_data); + @include(".htconfig.php"); + require_once("dba.php"); + $db = new dba($db_host, $db_user, $db_pass, $db_data, $install); + unset($db_host, $db_user, $db_pass, $db_data); -require_once("session.php"); -require_once("datetime.php"); + require_once("session.php"); + require_once("datetime.php"); -if($argc < 2) - exit; + if($argc < 3) + exit; $a->set_baseurl(get_config('system',url')); |