X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=218c5ad82749fbec6b4fd83e757929040b51b58e;hp=cfe2386647b18fecacb00be4e31c926bcd382d81;hb=507bc8f2818a42d751ed6e2e2fc68ee2bde94016;hpb=1dbfde26ce2b413bed52a7cf7f93f349496951e0
diff --git a/www/index.php b/www/index.php
index cfe2386..218c5ad 100644
--- a/www/index.php
+++ b/www/index.php
@@ -1,8 +1,45 @@
";
+ 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 ""; -*/ ?>