diff options
author | Tarulia <takuja@gmx.de> | 2015-09-20 23:25:54 +0300 |
---|---|---|
committer | Tarulia <takuja@gmx.de> | 2015-09-20 23:25:54 +0300 |
commit | 1af17a2c2a7e95755761b16102ce8838b313acb2 (patch) | |
tree | 457b8bbd3594ea1703e1d53516181bfc8cc8c8e4 | |
parent | bbe274deb26fc75abd1f7e5eadecfbd39395c46f (diff) |
Disable anything but PHP Error with Debug Mode off
-rw-r--r-- | lib-core.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib-core.php b/lib-core.php index f1d310e..bee2b84 100644 --- a/lib-core.php +++ b/lib-core.php @@ -16,7 +16,10 @@ */ @(require_once('config.php')); include('version.php'); -$debug = 0; // Set to 1 in order to enable debug mode (shows sensitive database info), use for troubleshooting +$debug = false; // Set to 1 in order to enable debug mode (shows sensitive database info), use for troubleshooting +if ( $debug === FALSE ) { + error_reporting(E_ERROR); +} $footer = "© Copyright 2014 $wsn. Powered by <a href='http://github.com/cydrobolt/polr'>Polr</a> ver $version build $reldate"; $hidefooter = true; // Let's hide this for now //connect to mysql with $mysqli variable |