X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fspush%2Fsac-a-push.phh;fp=web%2Fspush%2Fsac-a-push.phh;h=0000000000000000000000000000000000000000;hb=65c6a676cf9a655d33fa48441b1c7390492163fa;hp=fef79ac92a7c432e0e262cad070fea1bf7e6c0e9;hpb=fce0ad98358c7884408699613ad33c92851d45b4;p=brisk.git diff --git a/web/spush/sac-a-push.phh b/web/spush/sac-a-push.phh deleted file mode 100644 index fef79ac..0000000 --- a/web/spush/sac-a-push.phh +++ /dev/null @@ -1,79 +0,0 @@ - 1) { - $a = explode('&', $get_vars[1]); - printf("A COUNT: [%s] %d\n", $a[0], count($a)); - for ($i = 0 ; $i < count($a) ; $i++) { - $b = explode('=', $a[$i]); - $get[$b[0]] = urldecode($b[1]); - } - } - // POST params management - if ($req[0] == 'POST') { - if ($header['Content-Type'] != 'application/x-www-form-urlencoded' - || !isset($header['Content-Length'])) { - return FALSE; - } - $post_len = mb_strlen($line, "latin1"); - $a = explode('&', $line); - for ($i = 0 ; $i < count($a) ; $i++) { - $b = explode('=', $a[$i]); - $post[$b[0]] = urldecode($b[1]); - } - printf("INFO: postlen: %d\n", $post_len); - } - break; - } - if ($line == "") { - $check_post = TRUE; - continue; - } - $split = explode(":", $line, 2); - $header[$split[0]] = $split[1]; - } - 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; -} -?>