X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=6864c2ce82ba0b29ce1dfdba4ee550a87c924bcf;hp=fb7149358fcbc0a5f9a20eec820145b683071efb;hb=4f4bf1da18181d412cd755143e016ede587cc1d6;hpb=34740c9fa804277f1f51c1fb3c0f2c9645f3840f
diff --git a/www/index.php b/www/index.php
index fb71493..6864c2c 100644
--- a/www/index.php
+++ b/www/index.php
@@ -1,7 +1,44 @@
";
+ 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");
/* first determine the url, it will be something that does either or the following:
*
@@ -13,16 +50,13 @@ require_once("config.php");
* 5. do we auth?
*/
-goWeb();
-
-echo "
"; -echo "BASEURL: $BASE_URL\n"; -echo "CUSTOM\n"; -print_r($_SERVER); -print_r($_REQUEST); +gwvp_goWebBegin(); +//goWebGitBackEnd(); -echo ""; +if(function_exists("gwvp_DebugEnabled")) { + gwvp_DebugEnabled(); +} ?>