]> i-scream Git - www.i-scream.org.git/commitdiff
Logs the remote address of the client
authorPaul Mutton <pjm2@i-scream.org>
Sat, 5 May 2001 18:03:38 +0000 (18:03 +0000)
committerPaul Mutton <pjm2@i-scream.org>
Sat, 5 May 2001 18:03:38 +0000 (18:03 +0000)
cgi-bin/download.cgi

index b2f2a71342698617f98311bc99334f673a82bdf7..7134d478ef94a03b52e84efcbac1f69e6a58185b 100755 (executable)
@@ -48,7 +48,7 @@ if (!defined($file_name) || $file_name eq "") {
 
 if (defined($submit) && $submit eq "Download") {
     open(LOGFILE, ">>$log_file");
-    print LOGFILE "$date|$file_name|$your_name|$email_address|$country\n";
+    print LOGFILE "$date|$ENV{'REMOTE_ADDR'}|$file_name|$your_name|$email_address|$country\n";
     close(LOGFILE);
     print $query->redirect("$build_dir/$file_name");
 }
@@ -155,4 +155,4 @@ exit;
 sub print_html ($) {
     my ($filename) = @_;
     print `cat $filename`;
-}
\ No newline at end of file
+}