X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fspush%2Fsac-a-push.phh;h=fef79ac92a7c432e0e262cad070fea1bf7e6c0e9;hb=c3ccbbd5bc7c8534127fa10b4f88b81cffc6029a;hp=1e9abb6e98fbef26109815c94bf0426cf1a417c9;hpb=d26d12be0db2626de591b64c4407c190e746d290;p=brisk.git diff --git a/web/spush/sac-a-push.phh b/web/spush/sac-a-push.phh index 1e9abb6..fef79ac 100644 --- a/web/spush/sac-a-push.phh +++ b/web/spush/sac-a-push.phh @@ -14,7 +14,6 @@ function spu_process_info($stream_info, $method, &$header, &$get, &$post, &$cook } $req = explode(" ", $header['The-Request']); $method = $req[0]; - $path = $req[1]; if (isset($header['Cookie'])) { $cookies = explode(";", $header['Cookie']); @@ -29,6 +28,7 @@ function spu_process_info($stream_info, $method, &$header, &$get, &$post, &$cook } // GET params management $get_vars = explode('?', $req[1], 2); + $path = $get_vars[0]; if (count($get_vars) > 1) { $a = explode('&', $get_vars[1]); printf("A COUNT: [%s] %d\n", $a[0], count($a)); @@ -63,4 +63,17 @@ function spu_process_info($stream_info, $method, &$header, &$get, &$post, &$cook return $path; } +function gpcs_var($name, $get, $post, $cookie) +{ + if (isset($GLOBALS[$name])) + return FALSE; + else if (isset($cookie[$name])) + return ($cookie[$name]); + else if (isset($post[$name])) + return ($post[$name]); + else if (isset($get[$name])) + return ($get[$name]); + + return FALSE; +} ?>