some framework stuff
[gwvp.git] / www / config.php
index aa70504..51b9ddc 100644 (file)
@@ -4,21 +4,9 @@
 $repo_base = "/tmp/gwvp-repos/";
 $lib_base = "../gwvplib/";
 $data_directory = "../data";
-
-
-
-// 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($lib_base);
-       set_include_path(get_include_path().PATH_SEPARATOR.$path);
-}
-
-require_once("gwvplib.php");
+$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