Example #1
0
 public function onStartup()
 {
     if (false !== ($user = GWF_Session::getUser())) {
         $this->onInclude();
         $userid = $user->getID();
         # Check if we have unread messages.
         $msgs = GWF_Ban::getUnread($userid);
         if (count($msgs) > 0) {
             $this->onLoadLanguage();
             # Display Unread Bans/Warnings
             $this->onStartupMessages($msgs);
         }
     }
 }