예제 #1
0
파일: Flow.php 프로젝트: hisaboh/w2t
 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;
 }
예제 #2
0
파일: Templf.php 프로젝트: hisaboh/w2t
 /**
  * リクエストされたURLを返す
  *
  * @return string
  */
 public static final function request_url()
 {
     return Flow::request_url(false);
 }