1
0
mirror of https://github.com/php/web-php.git synced 2026-04-26 08:28:07 +02:00
Files
archived-web-php/log_download.php
T
2001-10-28 22:02:06 +00:00

11 lines
245 B
PHP

<?php
$log = @fopen("logs/download.log", "a");
if ($log) {
$log_line = sprintf("%s %s %s %s %s", date("H:i:s d-M-Y"), $user_referer, $download_file, gethostbyaddr($user_ip), $mirror);
fputs($log, "$log_line\n");
fclose($log);
}
?>