X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=6864c2ce82ba0b29ce1dfdba4ee550a87c924bcf;hp=1bc6bc702471d6b1858c875aebcfa11643373b1c;hb=HEAD;hpb=8f714681f0b8452e97c1d4eeb02262f1ffd3ee7b diff --git a/www/index.php b/www/index.php index 1bc6bc7..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"); @@ -30,8 +53,10 @@ require_once("gwvplib.php"); gwvp_goWebBegin(); //goWebGitBackEnd(); + if(function_exists("gwvp_DebugEnabled")) { gwvp_DebugEnabled(); } + ?>