diff -Nru z-push.org/index.php z-push.mod/index.php --- z-push.org/index.php 2010-11-19 22:20:24.000000000 +0100 +++ z-push.mod/index.php 2011-03-08 16:25:49.000000000 +0100 @@ -111,7 +111,12 @@ } // Get the request headers so we can get the AS headers -$requestheaders = array_change_key_case(apache_request_headers(), CASE_LOWER); +if (function_exists ('apache_request_headers')) + $requestheaders = array_change_key_case(apache_request_headers(), CASE_LOWER); +else + foreach ($_SERVER as $Key=>$Value) + if (substr ($Key, 0, 5) == 'HTTP_') + $requestheaders [str_replace ('_', '-', strtolower (substr ($Key, 5)))] = $Value; global $protocolversion, $policykey, $useragent; $protocolversion = (isset($requestheaders["ms-asprotocolversion"]))? $requestheaders["ms-asprotocolversion"] : "1.0";