X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=lib%2Fplugins%2Fwww.php;h=3d5b9d17dc2959c559f15c235595351bbf38e086;hb=73e9e1e1ac9154003e436bc5cbbc820f61be1ab4;hp=d060677dfdbb24b3e3c0f7639938816c5e2711d5;hpb=38f5cf40e82e0d3cc9bcc52cf5710f883dd3447a;p=glcas.git diff --git a/lib/plugins/www.php b/lib/plugins/www.php index d060677..3d5b9d1 100644 --- a/lib/plugins/www.php +++ b/lib/plugins/www.php @@ -51,7 +51,7 @@ function www_basePage($calls) www_top(); } - echo ""; + echo ""; // left menu if(isset($calls["left_menu_function"])) { @@ -114,6 +114,21 @@ function www_top() } echo ""; + if(function_exists("msg_haveMessages")) if(msg_haveMessages()) { + echo ""; + $msgs = msg_getMessages(); + + foreach($msgs as $msg) { + $msgtime = msg_toDate($msg["msgdate"]); + $msgcol = $msg["msgcolour"]; + $msgtxt = $msg["msgtext"]; + $msgid = $msg["messages_id"]; + + echo ""; + echo ""; + } + echo "
$msgtime - $msgtxtAcknowledge
"; + } } function www_leftmenu() @@ -136,4 +151,17 @@ function www_pageend() { echo ""; } + +function urlCreate($from) +{ + global $MENU_ITEMS, $GLOBAL_BASE_URL; + + $mlink = "$GLOBAL_BASE_URL/".$from; + $mlink = preg_replace("/\/[\/]+/", "/", $mlink); + + return $mlink; + +} + + ?> \ No newline at end of file