Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 365 Bytes
<?php
$logfile = "reverse.log";
$response = array(
"url" => $_SERVER["REDIRECT_URL"],
"post" => $_POST,
"get" => $_GET,
"auth" => array(
"user" => $_SERVER['PHP_AUTH_USER'],
"password" => $_SERVER['PHP_AUTH_PW']
)
);
$handler = fopen($logfile, "a+");
fwrite($handler, json_encode($response)."\n");
fwrite($handler, "==========\n");
fclose($handler);
?>