X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=gwvplib%2Fgwvpweb.php;h=9c08a3c289a093a58facd1ab79a0a84ffc821a3f;hb=eafd2fd6a4a6a3f5866780e0b9e07e1b83ea6be7;hp=474cdff0e45b8ba135681def5622af1b80071edb;hpb=8f714681f0b8452e97c1d4eeb02262f1ffd3ee7b;p=gwvp.git diff --git a/gwvplib/gwvpweb.php b/gwvplib/gwvpweb.php index 474cdff..9c08a3c 100644 --- a/gwvplib/gwvpweb.php +++ b/gwvplib/gwvpweb.php @@ -89,12 +89,12 @@ function gwvp_goMainPage($bodyFunction = null) echo ""; if(isset($_SESSION["message"])) { - echo ""; } - echo "
"; + echo "
"; gwvp_MessageBuilder(); echo "
"; + echo "
"; gwvp_MenuBuilder(); echo ""; gwvp_LoginBuilder(); @@ -109,7 +109,7 @@ function gwvp_goMainPage($bodyFunction = null) if(function_exists($bodyFunction)) { $bodyFunction(); } else { - error_log("Got called with non-existant body function"); + error_log("Got called with non-existant body function, $bodyFunction"); gwvp_BodyBuilder(); } } @@ -151,11 +151,18 @@ function gwvp_MenuBuilder() ksort($MENU_ITEMS); - echo ""; + echo "
Menu
"; foreach($MENU_ITEMS as $key => $val) { $link = $val["link"]; $text = $val["text"]; - echo ""; + if(isset($val["userlevel"])) { + if(gwvp_CheckAuthLevel($val["userlevel"])) { + echo ""; + } + + } else { + echo ""; + } } echo "
Menu$text$text$text
"; @@ -169,7 +176,7 @@ function gwvp_LoginBuilder() if($login === false) { gwvp_SingleLineLoginForm(); } else { - echo "Hello, ".gwvp_GetFullName($login); + echo "Hello, ".gwvp_GetFullName($login)." logout"; } }