Author: glen Date: Tue Sep 9 18:45:03 2008 GMT Module: SOURCES Tag: HEAD ---- Log message: - implement apache_request_headers() for FCGI, lighttpd for example based on this post: http://z-push.sourceforge.net/phpbb/viewtopic.php?f=2&t=36
---- Files affected: SOURCES: z-push-apache_request_headers.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/z-push-apache_request_headers.patch diff -u /dev/null SOURCES/z-push-apache_request_headers.patch:1.1 --- /dev/null Tue Sep 9 20:45:03 2008 +++ SOURCES/z-push-apache_request_headers.patch Tue Sep 9 20:44:57 2008 @@ -0,0 +1,22 @@ +--- z-push/compat.php~ 2008-09-09 21:38:38.000000000 +0300 ++++ z-push/compat.php 2008-09-09 21:38:41.000000000 +0300 +@@ -24,4 +24,18 @@ + } + } + +-?> ++# based on http://z-push.sourceforge.net/phpbb/viewtopic.php?f=2&t=36 ++if (!function_exists("apache_request_headers")) { ++ function apache_request_headers() { ++ $headers = array(); ++ foreach ($_SERVER as $key => $value) { ++ if (substr($key, 0, 5) != 'HTTP_') { ++ continue; ++ } ++ $headername = strtr(ucwords(strtolower(strtr(substr($key, 5), '_', ' '))), ' ', '-'); ++ $headers[$headername] = $value; ++ } ++ ++ return $headers; ++ } ++} ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
