log_download.php 246 B

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