$WEB_ROOT_FS = realpath(dirname(__FILE__));\r
$BASE_URL = dirname($_SERVER["PHP_SELF"]);\r
\r
-global $WEB_ROOT_FS, $BASE_URL, $data_directory, $db_type, $db_name, $db_username, $db_password;\r
+global $WEB_ROOT_FS, $BASE_URL, $data_directory, $db_type, $db_name, $db_username, $db_password, $IS_WEB_REQUEST;
+
+$IS_WEB_REQUEST = false;\r
if(file_exists("./config.php")) require_once("./config.php");
else if(file_exists("/etc/gwvpmini/config.php")) require_once("/etc/gwvpmini/config.php");
else if(file_exists("/usr/share/gwvpmini/lib/gwvpmini/gwvpmini.php")) require_once("/usr/share/gwvpmini/lib/gwvpmini/gwvpmini.php");
-
if(isset($noconfig)) {
gwvpmini_goSetup();
return;