Exemplo n.º 1
0
 static function get_PARAMS_STRING()
 {
     if (zcale_core_path_targets_ServerPath::$paramsString === null) {
         zcale_core_path_targets_ServerPath::$paramsString = php_Web::getParamsString();
         if (strlen(zcale_core_path_targets_ServerPath::$paramsString) > 0) {
             zcale_core_path_targets_ServerPath::$paramsString = "?" . _hx_string_or_null(zcale_core_path_targets_ServerPath::$paramsString);
         }
     }
     return zcale_core_path_targets_ServerPath::$paramsString;
 }
 public function get_queryString()
 {
     if ($this->queryString === null) {
         $this->queryString = php_Web::getParamsString();
         if ($this->queryString === null) {
             $this->queryString = "";
         }
         $indexOfHash = _hx_index_of($this->queryString, "#", null);
         if ($indexOfHash > -1) {
             $this->queryString = _hx_substring($this->queryString, 0, $indexOfHash);
         }
         $this->queryString = urldecode($this->queryString);
     }
     return $this->queryString;
 }
Exemplo n.º 3
0
 public function __construct()
 {
     if (!php_Boot::$skip_constructor) {
         $s = null;
         $s1 = php_Web::getParamsString();
         $s = urldecode($s1);
         if (_hx_char_at($s, strlen($s) - 1) === "/") {
             $s = _hx_substr($s, 0, strlen($s) - 1);
         }
         $this->query_string = $s;
         if (strlen($this->query_string) >= 255) {
             throw new HException(new system_base_Http_exception("Query string malformed or too long", 414, _hx_anonymous(array("fileName" => "Router.hx", "lineNumber" => 28, "className" => "system.base.Router", "methodName" => "new"))));
         }
         $this->query_hash = haxe_crypto_Md5::encode($this->query_string);
     }
 }
Exemplo n.º 4
0
 static function getParamValues($param)
 {
     $reg = new EReg("^" . $param . "(\\[|%5B)([0-9]*?)(\\]|%5D)=(.*?)\$", "");
     $res = new _hx_array(array());
     $explore = array(new _hx_lambda(array(&$param, &$reg, &$res), "php_Web_0"), 'execute');
     call_user_func_array($explore, array(str_replace(";", "&", php_Web::getParamsString())));
     call_user_func_array($explore, array(php_Web::getPostData()));
     if ($res->length === 0) {
         $post = php_Lib::hashOfAssociativeArray($_POST);
         $data = $post->get($param);
         $k = 0;
         $v = "";
         if (is_array($data)) {
             reset($data);
             while (list($k, $v) = each($data)) {
                 $res[$k] = $v;
             }
         }
     }
     if ($res->length === 0) {
         return null;
     }
     return $res;
 }
Exemplo n.º 5
0
 static function get_param_string()
 {
     $s = php_Web::getParamsString();
     return urldecode($s);
 }