X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=www%2Findex.php;h=6864c2ce82ba0b29ce1dfdba4ee550a87c924bcf;hp=4f830011587c437b21bf3125840f828809472748;hb=4f4bf1da18181d412cd755143e016ede587cc1d6;hpb=a182956b0e83f45b973212b0b91bb44cf88edbdc diff --git a/www/index.php b/www/index.php index 4f83001..6864c2c 100644 --- a/www/index.php +++ b/www/index.php @@ -1,9 +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(); +} -echo "Hello moto"; ?>