Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarulia <takuja@gmx.de>2015-09-20 23:25:54 +0300
committerTarulia <takuja@gmx.de>2015-09-20 23:25:54 +0300
commit1af17a2c2a7e95755761b16102ce8838b313acb2 (patch)
tree457b8bbd3594ea1703e1d53516181bfc8cc8c8e4
parentbbe274deb26fc75abd1f7e5eadecfbd39395c46f (diff)
Disable anything but PHP Error with Debug Mode off
-rw-r--r--lib-core.php5
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 = "&copy; 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