AntiBK/engline/token/headers.function.php

12 lines
197 B
PHP
Raw Normal View History

2021-02-11 15:55:56 +02:00
<?
function getallheaders ()
{
$headers = array();
foreach ($_SERVER as $h => $v)
{
if (preg_match_all('/HTTP_(.+)/', $h, $hp))
$headers[$hp[1][0]] = $v;
}
return $headers;
}
?>