示例#1
0
 public function execute()
 {
     if (false === ($this->thread = $this->module->getCurrentThread())) {
         return $this->module->error('err_thread');
     }
     if (!$this->thread->hasEditPermission(GWF_Session::getUser())) {
         return GWF_HTML::err('ERR_NO_PERMISSION');
     }
     require_once GWF_CORE_PATH . 'module/Forum/GWF_ForumBoardSelect.php';
     if (false !== Common::getPost('edit')) {
         return $this->onEdit() . $this->templateEditThread();
     }
     if (false !== Common::getPost('delete')) {
         return $this->onDelete();
     }
     return $this->templateEditThread();
 }