From a182956b0e83f45b973212b0b91bb44cf88edbdc Mon Sep 17 00:00:00 2001 From: paulr Date: Sun, 30 Oct 2011 13:04:42 +1100 Subject: [PATCH] uh oh --- www/.htaccess | 3 +-- www/config.php | 6 ++++-- www/index.php | 3 +++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/www/.htaccess b/www/.htaccess index be7a5ed..89a505c 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -1,7 +1,6 @@ RewriteEngine on -RewriteBase /src/eclipse-workspace/glcas/www/ +RewriteBase /src/eclipse-workspace/gwvp/www/ RewriteRule ^index\.php.* - [L,B] -RewriteRule ^soap\.php.* - [L,B] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,B] diff --git a/www/config.php b/www/config.php index fc67a23..aa70504 100644 --- a/www/config.php +++ b/www/config.php @@ -3,6 +3,7 @@ // the config file, this is as exciting as it gets really $repo_base = "/tmp/gwvp-repos/"; $lib_base = "../gwvplib/"; +$data_directory = "../data"; @@ -14,9 +15,10 @@ 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"); + $path = realpath($lib_base); set_include_path(get_include_path().PATH_SEPARATOR.$path); } +require_once("gwvplib.php"); + ?> \ No newline at end of file diff --git a/www/index.php b/www/index.php index 6c8f617..4f83001 100644 --- a/www/index.php +++ b/www/index.php @@ -3,4 +3,7 @@ // initial http file require_once("config.php"); + +echo "Hello moto"; + ?> -- 1.7.0.4