Closes #713: add a parameter to run the site in a degraded mode
[platal.git] / include / globals.inc.php.in
index 6ad5a3c..e7f9f55 100644 (file)
@@ -26,6 +26,9 @@ class PlatalGlobals
     /** The x.org version */
     public $version = '@VERSION@';
     public $debug   = 0;
+    public $mode    = 'rw';    // 'rw' => read/write,
+                               // 'r'  => read/only
+                               // ''   => site down
 
     /** db params */
     public $dbdb               = 'x4dat';