Untitled

mail@pastecode.io avatar
unknown
php
a year ago
494 B
7
Indexable
Never
<?php
file_put_contents(
    $_SERVER["DOCUMENT_ROOT"]. '/auth_test.log',
    print_r([
        'SERVER' => [
            'PHP_AUTH_USER' => $_SERVER['PHP_AUTH_USER'],
            'PHP_AUTH_PW' => $_SERVER['PHP_AUTH_PW'],
            'PHP_AUTH_DIGEST' => $_SERVER['PHP_AUTH_DIGEST'],
            'REDIRECT_REMOTE_USER' => $_SERVER['REDIRECT_REMOTE_USER'],
        ],
        'HEADERS' => getallheaders(),
        'COOKIE' => $_COOKIE,
        'SESSION' => $_SESSION,
], true)
);