X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Fconfig.php;h=51b9ddcf2dae8bb93258b5081ebda73bb3212f5e;hp=aa705042a2a60208dcdf4ac73857155b067c1b2e;hb=4c20cd2f33699e549a06995d9c5ab1374cceeaee;hpb=b43f610c8d1458e4778e0a0a719367c478dacbb0 diff --git a/www/config.php b/www/config.php index aa70504..51b9ddc 100644 --- a/www/config.php +++ b/www/config.php @@ -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