some framework stuff
[gwvp.git] / gwvplib / gwvprepoadmin.php
diff --git a/gwvplib/gwvprepoadmin.php b/gwvplib/gwvprepoadmin.php
new file mode 100644 (file)
index 0000000..49073c0
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+$CALL_ME_FUNCTIONS["repoadmin"] = "gwvp_RepoAdminCallMe";
+
+$MENU_ITEMS["20repos"]["text"] = "Repo Admin";
+$MENU_ITEMS["20repos"]["link"] = "$BASE_URL/admin/repos";
+
+function gwvp_RepoAdminCallMe()
+{
+       if(isset($_REQUEST["q"])) {
+               $query = $_REQUEST["q"];
+               if($query == "admin/repos") return "gwvp_RepoAdminPage";
+               else return false;
+       }
+       
+       return false;
+}
+
+function gwvp_RepoAdminPage()
+{
+       gwvp_goMainPage("gwvp_RepoAdminPageBody");
+}
+
+
+function gwvp_RepoAdminPageBody()
+{
+       echo "I am a repo admin page body";
+}
+
+?>
\ No newline at end of file