changes to git management links based on perms
[gwvp.git] / gwvplib / gwvpweb.php
index 6f8c36c..92ed814 100644 (file)
@@ -3,6 +3,9 @@
 // this function is the initial insertion point for the web calls, here we need to determine where we go
 global $CALL_ME_FUNCTIONS;
 
+// the home_page_provders bit is an array 
+global $HOME_PAGE_PROVIDERS;
+
 $MENU_ITEMS["00home"]["text"] = "Home";
 $MENU_ITEMS["00home"]["link"] = "$BASE_URL";
 
@@ -151,6 +154,7 @@ function gwvp_MenuBuilder()
        
        ksort($MENU_ITEMS);
        
+       echo "\n\n\n";
        echo "<table border=\"1\"><tr><td><b><i>Menu</i></b></td>";
        foreach($MENU_ITEMS as $key => $val) {
                $link = $val["link"];
@@ -183,6 +187,7 @@ function gwvp_MenuBuilder()
                }
        }
        echo "</tr></table>";
+       echo "\n\n\n";
        
 }
 
@@ -190,18 +195,29 @@ function gwvp_LoginBuilder()
 {
        global $WEB_ROOT_FS, $BASE_URL;
        
+       echo "\n\n\n";
        $login = gwvp_IsLoggedIn();
        if($login === false) {
                gwvp_SingleLineLoginForm();
        } else {
                echo "Hello, ".gwvp_GetFullName($login)." <a href=\"$BASE_URL/logout\">logout</a>";
        }
+       echo "\n\n\n";
 }
 
 // builds the body structure
 function gwvp_BodyBuilder()
 {
-       echo "I AM THE MAIN BODY, FEAR ME!!!!";
+       global $HOME_PAGE_PROVIDERS;
+       
+       echo "I AM THE MAIN BODY, FEAR ME!!!! - have no idea whats going to go here";
+       if(isset($HOME_PAGE_PROVIDERS)) {
+               ksort($HOME_PAGE_PROVIDERS);
+               foreach($HOME_PAGE_PROVIDERS as $provider) {
+                       error_log("Loading home_page_provider, $provider");
+                       $provider();
+               }
+       }
 }
 
 // builds the tail structure