Beispiel #1
0
 function all()
 {
     $idu = isset($_SESSION['idu']) ? $_SESSION['idu'] : 0;
     $this->stat->saveStat($idu, "msg/all");
     if ($idu > 0) {
         $model = new Model_Message();
         $model->getMessagesAll($idu, $unreadedMessage, $restMessage);
         $this->template->vars('unreadedMessage', $unreadedMessage);
         $this->template->vars('restMessage', $restMessage);
         $this->template->view('all', true);
     } else {
         unset($_SESSION['idu']);
         header('Location:' . WEB_APP);
     }
 }