/**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     $this->board->markAsRead();
     WCF::getSession()->unregister('lastSubscriptionsStatusUpdateTime');
     $this->executed();
 }
 /**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // check permission
     WCF::getUser()->checkPermission('admin.board.canDeleteBoard');
     // delete board
     $this->board->delete();
     // reset cache
     WCF::getCache()->clearResource('board');
     $this->executed();
     // forward to list page
     HeaderUtil::redirect('index.php?page=BoardList&deletedBoardID=' . $this->boardID . '&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED);
     exit;
 }
 /**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // check permission
     WCF::getUser()->checkPermission(array('admin.board.canEditBoard', 'admin.board.canDeleteBoard', 'admin.board.canEditPermissions', 'admin.board.canEditModerators'));
     if ($this->close == 1) {
         $sql = "INSERT IGNORE INTO\twbb" . WBB_N . "_board_closed_category_to_admin\n\t\t\t\t\t\t\t(userID, boardID)\n\t\t\t\tVALUES\t\t\t(" . WCF::getUser()->userID . ", " . $this->boardID . ")";
         WCF::getDB()->sendQuery($sql);
     } else {
         $sql = "DELETE FROM\twbb" . WBB_N . "_board_closed_category_to_admin\n\t\t\t\tWHERE\t\tuserID = " . WCF::getUser()->userID . "\n\t\t\t\t\t\tAND boardID = " . $this->boardID;
         WCF::getDB()->sendQuery($sql);
     }
     $this->executed();
 }
 /**
  * @see Action::execute();
  */
 public function execute()
 {
     parent::execute();
     // check permission
     WCF::getUser()->checkPermission('admin.board.canEditBoard');
     // check board title
     if (StringUtil::encodeHTML($this->board->title) != WCF::getLanguage()->get(StringUtil::encodeHTML($this->board->title))) {
         // change language variable
         require_once WCF_DIR . 'lib/system/language/LanguageEditor.class.php';
         $language = new LanguageEditor(WCF::getLanguage()->getLanguageID());
         $language->updateItems(array($this->board->title => $this->title), 0, PACKAGE_ID, array($this->board->title => 1));
     } else {
         // change title
         $this->board->updateData(array('title' => $this->title));
     }
     // reset cache
     WCF::getCache()->clearResource('board');
     $this->executed();
 }
 /**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     $this->board->subscribe();
     $this->executed();
 }