Added user view page, updated repo view page, added ocmmit logs
[gwvp-mini.git] / gwvpmini / gwvpmini_web.php
index 72f95d7..f6b6665 100644 (file)
@@ -90,6 +90,11 @@ function gwvpmini_goMainPage($bodyFunction = null)
        
        
        echo "<table width=\"100%\">";
+       
+       echo "<tr width=\"100%\" bgcolor=\"#ddddff\"><td colspan=\"2\" align=\"right\">";
+       gwvpmini_SearchBuilder();
+       echo "</td></tr>";\r
+       
 
        if(isset($_SESSION["message"])) {
                echo "<tr width=\"100%\"><td colspan=\"2\">";
@@ -105,7 +110,7 @@ function gwvpmini_goMainPage($bodyFunction = null)
        
        echo "</tr>";
        
-       echo "<tr><td>";
+       echo "<tr><td colspan=\"2\">";
        if($bodyFunction == null) {
                gwvpmini_BodyBuilder();
        } else {
@@ -222,6 +227,19 @@ function gwvpmini_TailBuilder()
        echo "<font size=\"-1\"><i>Copyright 2011, PJR - licensed under GPL</i></font>";
 }
 
+function gwvpmini_emailToUserLink($email)
+{
+       global $BASE_URL;
+       
+       $username = gwvpmini_GetUserNameFromEmail($username);
+       
+       if($username !== false) {
+               return "<a href=\"$BASE_URL/user/$username\">$username</a>";
+       } else {
+               return "Uknown";
+       }
+}
+
 function gwvpmini_fourZeroThree()
 {
        error_log("403 called");