0) { $msg = " 编号 400".$_SESSION['install_error']; header("Content-type: text/html;charset=utf-8"); echo ""; return; } $_SESSION['install_step'] = '2'; $num = 3; $url = $this->curPageURL(); $request = $this->getContext()->getRequest(); $request->setAttribute('url', isset($url) ? $url : ''); $this->getContext()->getStorage()->write('step', $num); return View::INPUT; } public function getRequestMethods() { return Request::NONE; } function curPageURL() { $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https' : 'http'; $hh = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : ($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']); $uri = $http_type . '://' . $_SERVER['HTTP_HOST'] . substr($hh, 0, strrpos($hh, '/') + 1); $pageURL = substr($uri, 0, strrpos(substr($uri, 0, strrpos($uri, "/")), "/")); return $pageURL; } } ?>