AntiBK/engline/token/headers.function.php

12 lines
197 B
PHP

<?
function getallheaders ()
{
$headers = array();
foreach ($_SERVER as $h => $v)
{
if (preg_match_all('/HTTP_(.+)/', $h, $hp))
$headers[$hp[1][0]] = $v;
}
return $headers;
}
?>