public function handle_request() { $this->response->set_content_type('text/html', 'utf-8'); if (Bll_Tools_AutoCreate::allowIp()) { $this->out = $this->getUpDownRuntimeInfo(); } else { $this->out['status'] = 0; $this->out['msg'] = array('你所在Ip不在允许操作权限内'); } $this->setAttribute('out', $this->out); return 'Tools_Updown'; }
public function handle_request() { $this->response->set_content_type('text/html', 'utf-8'); if (Bll_Tools_AutoCreate::allowIp()) { if ($this->request->is_get_method()) { $this->process_get(); } else { $this->out['result'] = $this->process_post(); } } else { $this->out['result']['msg'] = array('你所在Ip不在允许操作权限内'); } $this->setAttribute('out', $this->out); return 'Tools_AutoCreate'; }
public function handle_request() { $this->response->set_content_type('text/html', 'utf-8'); if (Bll_Tools_AutoCreate::allowIp()) { // 分发对应工具controller if ($action = trim($this->getRouterMatches(1), '/')) { $controller = 'Tools_' . $action . 'Controller'; if (class_exists($controller)) { $obj = new $controller(); return $obj->handle_request(); } } } else { $this->out['result']['status'] = 0; $this->out['result']['msg'] = array('你所在Ip不在允许操作权限内'); } $this->out['result']['msg'] = $this->getTools(); $this->setAttribute('out', $this->out); return 'Tools_Tools'; }