Ivor Barhansky
36bf662112
Upload code Изменил(а) на 'README.md' Изменил(а) на 'README.md' Reviewed-on: https://src.lopar.us/lopar/AntiBK/pulls/1 Co-Authored-By: Ivor Barhansky <lopar@noreply.lopar.us> Co-Committed-By: Ivor Barhansky <lopar@noreply.lopar.us>
12 lines
197 B
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;
|
|
}
|
|
?>
|