X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=218c5ad82749fbec6b4fd83e757929040b51b58e;hp=6c8f6178554de84eddebb5b1450d1c53ac5f02a1;hb=507bc8f2818a42d751ed6e2e2fc68ee2bde94016;hpb=674f402e57a48fb80c84f3c556ec08ff1b1c6239 diff --git a/www/index.php b/www/index.php index 6c8f617..218c5ad 100644 --- a/www/index.php +++ b/www/index.php @@ -1,6 +1,62 @@ "; + 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: + * + * + * 1. admin functions (create/delete repo) + * 2. user functions (patch pushes, pull requests) + * 3. gitweb functions (to display git web output) + * 4. git-http-backend functions (to interact with command line functions) + * 5. do we auth? + */ + +gwvp_goWebBegin(); +//goWebGitBackEnd(); + + +if(function_exists("gwvp_DebugEnabled")) { + gwvp_DebugEnabled(); +} + + ?>