/**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // check permission
     WCF::getUser()->checkPermission('admin.system.cronjobs.canEditCronjob');
     // execute cronjob
     $this->cronjob->execute();
     $this->executed();
     // forward
     HeaderUtil::redirect('index.php?page=CronjobsList&successfulExecuted=1&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED);
     exit;
 }
 /**
  * @see Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // check permission
     if (!$this->cronjob->canBeEdited) {
         throw new IllegalLinkException();
     }
     WCF::getUser()->checkPermission('admin.system.cronjobs.canDeleteCronjob');
     // delete cronjob
     $this->cronjob->delete();
     $this->executed();
     // forward
     HeaderUtil::redirect('index.php?page=CronjobsList&deleteJob=' . $this->cronjobID . '&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED);
     exit;
 }