-
+
';
}
}
@@ -265,14 +265,14 @@ function handler_exception($e)
throw new Exception($msg, 101);
}
+$config = require_once $configPath;
+require BB_PATH_VENDOR.'/autoload.php';
+
// Try to check if /install directory still exists, even after the installation was completed
-if (file_exists($configPath) && 0 !== filesize($configPath) && file_exists(BB_PATH_ROOT.'/install/index.php')) {
+if ($config['debug'] == false && file_exists($configPath) && 0 !== filesize($configPath) && file_exists(BB_PATH_ROOT.'/install/index.php')) {
throw new Exception('For safety reasons, you have to delete the /install directory to start using BoxBilling.
Please delete the /install directory from your web server.', 102);
}
-$config = require_once $configPath;
-require BB_PATH_VENDOR.'/autoload.php';
-
date_default_timezone_set($config['timezone']);
define('BB_DEBUG', $config['debug']);