X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=gwvplib%2Fgwvpgitcontrol.php;fp=gwvplib%2Fgwvpgitcontrol.php;h=18ddde565c164c9ee1fda78b9d929fb266655852;hb=1a1ed3388655bbc4001022fd91f3f5ea3ad4d03a;hp=dddf0b2429aa5c674af8d964f538c565798bc895;hpb=4bf1f2ca1b688395eac6e2517fdbce4e87cce0d5;p=gwvp.git diff --git a/gwvplib/gwvpgitcontrol.php b/gwvplib/gwvpgitcontrol.php index dddf0b2..18ddde5 100644 --- a/gwvplib/gwvpgitcontrol.php +++ b/gwvplib/gwvpgitcontrol.php @@ -27,6 +27,27 @@ function gwvp_repoPermissionCheck($repo, $user) return true; } +function gwvp_gitBackendInterface_new() +{ + // and this is where i re-code the git backend interface from scratch + global $repo_base, $BASE_URL; + + + $repo = ""; + $newloc = "/"; + if(isset($_REQUEST["q"])) { + $query = $_REQUEST["q"]; + $qspl = explode("/", $query); + $repo = $qspl[1]; + for($i=2; $i < count($qspl); $i++) { + $newloc .= "/".$qspl[$i]; + } + } + + +} + + function gwvp_gitBackendInterface() { global $repo_base, $BASE_URL;