Exemplo n.º 1
0
 /**
  * 删除管理员执行页面
  * @author 陈晓东
  */
 public function deleteAction()
 {
     /**
      * 记录日志
      */
     $log = "删除管理员执行页面\n\nServerIp:\n" . $this->request->getServer('SERVER_ADDR') . "\n\nGET:\n" . var_export($_GET, true) . "\n\nPOST:\n" . var_export($_POST, true);
     $this->oLogManager->push('log', $log);
     $PermissionCheck = $this->manager->checkMenuPermission("DeleteManager");
     if ($PermissionCheck['return']) {
         $id = intval($this->request->id);
         $Widget_Manager = new Widget_Manager();
         $Widget_Manager->delete($id);
         $this->response->goBack();
     } else {
         $home = $this->sign;
         include $this->tpl('403');
     }
 }