AntiBK/engline/token/headers.function.php
Ivor Barhansky 36bf662112 code-upload (#1)
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>
2021-02-11 16:13:04 +00:00

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;
}
?>