add option to disable setup check
[phancap.git] / www / setup.php
index 5a9c38908ab7c7a8dc96459116942492dbad22e3..70c117fb622f5305197df2707b744ec96520039d 100644 (file)
@@ -17,6 +17,12 @@ $messages = array();
 $config = new Config();
 try {
     $config->load();
+    if ($config->disableSetup) {
+        header('HTTP/1.0 403 Forbidden');
+        header('Content-type: text/plain');
+        echo "Setup check is disabled.\n";
+        exit(1);
+    }
     $messages[][] = array('ok', 'Base configuration is ok');
 
     if ($config->access === true) {