X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=6864c2ce82ba0b29ce1dfdba4ee550a87c924bcf;hp=cfe2386647b18fecacb00be4e31c926bcd382d81;hb=HEAD;hpb=1dbfde26ce2b413bed52a7cf7f93f349496951e0 diff --git a/www/index.php b/www/index.php index cfe2386..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,17 +50,13 @@ require_once("config.php"); * 5. do we auth? */ -goWebGitBackEnd(); +gwvp_goWebBegin(); +//goWebGitBackEnd(); -/* -echo "
";
-echo "BASEURL: $BASE_URL\n";
-echo "CUSTOM\n";
-print_r($_SERVER);
-print_r($_REQUEST);
 
+if(function_exists("gwvp_DebugEnabled")) {
+	gwvp_DebugEnabled();
+}
 
-echo "
"; -*/ ?>