fixing up the "is setup" check in the installer
[gwvp.git] / gwvplib / gwvpgitwebservice.php
index 57d0881..298c8e4 100644 (file)
@@ -28,7 +28,16 @@ function gwvp_gitControlCallMe()
 
 function gwvp_GitLogProvider()
 {
-       echo "<br>gitload provider loaded on homepage<br>";
+       /*
+        * 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"])) {