mirror of
https://github.com/php/web-php.git
synced 2026-04-26 08:28:07 +02:00
11 lines
245 B
PHP
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);
|
|
}
|
|
|
|
?>
|