X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=6864c2ce82ba0b29ce1dfdba4ee550a87c924bcf;hp=792b52aec5864787ed92640c08b3907f9866fa2c;hb=4f4bf1da18181d412cd755143e016ede587cc1d6;hpb=2a3a171ba0f5059ca3e0e2ac62e6412e50cd6f76 diff --git a/www/index.php b/www/index.php index 792b52a..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");