Browse Source

Added an URL option to activate debug : debug activates all messages, and disables the cache.

teromene@teromene.fr 8 years ago
parent
commit
3e8a7624e1
1 changed files with 8 additions and 1 deletions
  1. 8 1
      index.php

+ 8 - 1
index.php

@@ -14,7 +14,14 @@ TODO :
 
 date_default_timezone_set('UTC');
 error_reporting(0);
-//ini_set('display_errors','1'); error_reporting(E_ALL);  // For debugging only.
+
+if(isset($_REQUEST['debug'])) {
+    
+    ini_set('display_errors','1'); error_reporting(E_ALL); //Report all errors
+    
+    $_REQUEST["disable_cache"] = true; //Disable the cache.
+    
+}
 
 require_once __DIR__ . '/lib/RssBridge.php';