User page code for user/group admin
[gwvp.git] / www / config.php
index fc67a23..51b9ddc 100644 (file)
@@ -3,20 +3,10 @@
 // the config file, this is as exciting as it gets really
 $repo_base = "/tmp/gwvp-repos/";
 $lib_base = "../gwvplib/";
-
-
-
-// nothing to configure from here
-$WEB_ROOT_FS = realpath(dirname(__FILE__));
-$BASE_URL = dirname($_SERVER["PHP_SELF"]);
-
-global $WEB_ROOT_FS, $BASE_URL;
-
-// add libglcas as if it were a path in ../libglcas
-if(file_exists($lib_base)) {
-       $path = realpath($WEB_ROOT_FS."/$lib_base");
-       error_log("addded $path as include");
-       set_include_path(get_include_path().PATH_SEPARATOR.$path);
-}
+$data_directory = "../data";
+$db_type = "sqlite"; // could be mysql or pgsql - but not yet
+$db_name = "$data_directory/gwvp.db"; // just a file for sqlite, for anything else is a pdo url without driver, i.e. host=localhost;dbname=whatever;user=asdf;password=asdf
+$db_username = "";
+$db_password = "";
 
 ?>
\ No newline at end of file