Commit 26cee0c9 authored by Etienne CHAMPETIER's avatar Etienne CHAMPETIER

ZP-800 compat.php: remove now useless apache_request_headers().

Released under the Affero GNU General Public License (AGPL) version 3.
parent 88c52924
......@@ -56,23 +56,6 @@ if (!function_exists("quoted_printable_encode")) {
}
}
if (!function_exists("apache_request_headers")) {
/**
* When using other webservers or using php as cgi in apache
* the function apache_request_headers() is not available.
* This function parses the environment variables to extract
* the necessary headers for Z-Push
*/
function apache_request_headers() {
$headers = array();
foreach ($_SERVER as $key => $value)
if (substr($key, 0, 5) == 'HTTP_')
$headers[strtr(substr($key, 5), '_', '-')] = $value;
return $headers;
}
}
if (!function_exists("hex2bin")) {
/**
* Complementary function to bin2hex() which converts a hex entryid to a binary entryid.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment