X-Git-Url: http://git.i-scream.org/?a=blobdiff_plain;f=cgi-bin%2Fdownload.cgi;h=fb3a69414230a9a1904c19d5f570e31fd041ba03;hb=374eadca4d94df9fd11726246adbd2a42236e131;hp=9ae0bbfab27f075390082fffe3393dc8e7f9690b;hpb=8ea93006c49527c3039efd9597e9e07573f16be6;p=www.i-scream.org.git diff --git a/cgi-bin/download.cgi b/cgi-bin/download.cgi index 9ae0bbf..fb3a694 100755 --- a/cgi-bin/download.cgi +++ b/cgi-bin/download.cgi @@ -19,8 +19,11 @@ $| = 1; #-------------------------------------------------------------- # Essential Settings #-------------------------------------------------------------- -my ($build_dir) = "/builds"; +my ($build_dir) = "/downloads"; my ($log_file) = "download_log"; +my ($left) = "../left.inc" ; +my ($title) = "../title.inc"; +my ($bottom) = "../bottom.inc"; #-------------------------------------------------------------- @@ -45,21 +48,52 @@ 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"); } else { print "Content-type: text/html\n\n"; - - print < + + + - - - + + + i-scream downloads + + + + + + + +
+ + +
+END + + &print_html($left); + + print <<"END"; + +END + + &print_html($title); + + print <
-
+

i-scream builds

At the current moment, all i-scream builds may be downloaded free @@ -67,28 +101,29 @@ else { regarding the i-scream montoring system, then we would recommend that you provide your contact details below. All fields are optional. +

 

-
+ - - + + - + - + - + @@ -102,7 +137,22 @@ else { EOT + &print_html($bottom); + + print <<"END"; + + + +
Filename:$file_nameFilename:$file_name
Your name:Your name:
Email address:Email address:
Country:Country:
+END + } +exit; -exit; \ No newline at end of file + +# Print a file without escaping HTML: - +sub print_html ($) { + my ($filename) = @_; + print `cat $filename 2>&1`; +}