示例#1
0
 public function killAction()
 {
     $this->_checkCanEdit();
     $pid = Request::post('pid', 'integer', 0);
     if (!$pid) {
         Response::jsonError($this->_lang->WRONG_REQUEST);
     }
     if ($this->_tManager->kill($pid)) {
         Response::jsonSuccess();
     } else {
         Response::jsonError($this->_lang->CANT_EXEC);
     }
 }