working git-http-backend proxy poc code
[gwvp.git] / www / index.php
index 95cbd7e..cfe2386 100644 (file)
@@ -1,5 +1,29 @@
-<php?
+<?php
 
 // initial http file
+require_once("config.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?
+ */
+
+goWebGitBackEnd();
+
+/*
+echo "<pre>";
+echo "BASEURL: $BASE_URL\n";
+echo "CUSTOM\n";
+print_r($_SERVER);
+print_r($_REQUEST);
+
+
+echo "</pre>";
+*/
 
 ?>