fixing up the "is setup" check in the installer
[gwvp.git] / www / index.php
index 7ec0950..6864c2c 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 
 // get config
-require_once("config.php");
+if(file_exists("config.php")) require_once("config.php");
 
 // initial http file
 $WEB_ROOT_FS = realpath(dirname(__FILE__));
 $BASE_URL = dirname($_SERVER["PHP_SELF"]);
 
-global $WEB_ROOT_FS, $BASE_URL, $repo_base, $data_directory, $db_type, $db_name, $db_username, $db_password;
+global $WEB_ROOT_FS, $BASE_URL, $data_directory, $db_type, $db_name, $db_username, $db_password;
 
 // the index will search for the base library depending on:
 // if lib_base is set in config.php, it'll go there and nowhere else