X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=6864c2ce82ba0b29ce1dfdba4ee550a87c924bcf;hp=aef8e3d986bfb3eb35b68526834812843f7de404;hb=4f4bf1da18181d412cd755143e016ede587cc1d6;hpb=4c20cd2f33699e549a06995d9c5ab1374cceeaee diff --git a/www/index.php b/www/index.php index aef8e3d..6864c2c 100644 --- a/www/index.php +++ b/www/index.php @@ -1,18 +1,41 @@ "; + echo "I have to bail"; + return; + } +} else { + if(file_exists("../gwvplib/gwvplib.php")) { + $path = realpath("../gwvplib/"); + set_include_path(get_include_path().PATH_SEPARATOR.$path); + } else if(file_exists("/usr/share/php/gwvplib/gwvplib.php")) { + $path = realpath("/usr/share/php/gwvplib/"); + set_include_path(get_include_path().PATH_SEPARATOR.$path); + } else if(file_exists("/usr/share/gwvp/gwvplib/gwvplib.php")) { + $path = realpath("/usr/share/gwvp/gwvplib/"); + set_include_path(get_include_path().PATH_SEPARATOR.$path); + } else { + echo "Problem: lib_base is set in the config.php file, but I cant find the actual library
"; + echo "I have to bail"; + return; + } } require_once("gwvplib.php"); @@ -31,14 +54,9 @@ gwvp_goWebBegin(); //goWebGitBackEnd(); -echo "
";
-echo "BASEURL: $BASE_URL\n";
-echo "CUSTOM\n";
-print_r($_SERVER);
-print_r($_REQUEST);
-
-
-echo "
"; +if(function_exists("gwvp_DebugEnabled")) { + gwvp_DebugEnabled(); +} ?>