protected function __new__($dict = null) { $this->dict($dict); parent::__new__(); $this->templ->cp($this->vars); $port = isset($_SERVER["SERVER_PORT"]) ? $_SERVER["SERVER_PORT"] : 80; $server = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : (isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : ""); $path = isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : ""; if (preg_match("/^(.*?)(\\?.*)\$/", $path, $match)) { list(, $path, self::$request_query) = $match; } self::$request_url = ($port === 443 ? "https" : "http") . "://" . $server . $path; }
/** * リクエストされたURLを返す * * @return string */ public static final function request_url() { return Flow::request_url(false); }