X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvpgitwebservice.php;h=298c8e45580b70b4b30dd0fc6037410470b68d62;hp=57d0881f3eaa10e29b5c97faef6ce2badb42cc01;hb=4f4bf1da18181d412cd755143e016ede587cc1d6;hpb=1283f0d8043b7aafc4edd1c4627d465a92355a49 diff --git a/gwvplib/gwvpgitwebservice.php b/gwvplib/gwvpgitwebservice.php index 57d0881..298c8e4 100644 --- a/gwvplib/gwvpgitwebservice.php +++ b/gwvplib/gwvpgitwebservice.php @@ -28,7 +28,16 @@ function gwvp_gitControlCallMe() function gwvp_GitLogProvider() { - echo "
gitload provider loaded on homepage
"; + /* + * The home page provider will: + * 1) show the last 10 commits for every repository - though, excluding private repos + * 2) if loged in, show the last commit on any repo's the user owns + * + * So i need a table thats going to list "writes" by user - as in POST writes but only + * put that info into the stats (doesnt exist) db if the repo is publically readable + * + * Or... should we instead just list every repo? + */ } function gwvp_repoPermissionCheck($repo, $user) @@ -325,7 +334,7 @@ function gwvp_callGitBackend($username, $repo) $procenv["QUERY_STRING"] = "$qs"; $procenv["HTTP_USER_AGENT"] = "git/1.7.1"; $procenv["REMOTE_USER"] = "$username"; - $procenv["REMOTE_ADDR"] = "1.2.3.4"; + $procenv["REMOTE_ADDR"] = $_SERVER["REMOTE_ADDR"]; $procenv["AUTH_TYPE"] = "Basic"; if(isset($_SERVER["CONTENT_TYPE"])) {