Beispiel #1
0
 /**
  * This action displays the user management page.
  */
 public function manageAction()
 {
     if (!FreshRSS_Auth::hasAccess('admin')) {
         Minz_Error::error(403);
     }
     Minz_View::prependTitle(_t('admin.user.title') . ' · ');
     // Get the correct current user.
     $username = Minz_Request::param('u', Minz_Session::param('currentUser'));
     if (!FreshRSS_UserDAO::exist($username)) {
         $username = Minz_Session::param('currentUser');
     }
     $this->view->current_user = $username;
     // Get information about the current user.
     $entryDAO = FreshRSS_Factory::createEntryDao($this->view->current_user);
     $this->view->nb_articles = $entryDAO->count();
     $this->view->size_user = $entryDAO->size();
 }