#!/usr/local/bin/perl # # Aminet Download Utility # (c)1996 Mark Rigby-Jones for mrjsw # mark.rigby-jones@keble.oxford.ac.uk # http://users.ox.ac.uk/~kebl0206/ # # Usage: # http://some.site.net/cgi-bin/safeperl/username/aminet?dir.subdir[&filename[&filename[&...]]] # Parse the input $query = $ENV{QUERY_STRING}; @query = split('&', $query); $dir = shift(@query); $dir =~ s|\.|/|; # Output the top of the HTML document print(<<"BACK_TO_PERL"); Content-type: text/html

This page will allow you to download the requested file(s) from any of the full aminet mirrors. Pick the site which is closest to you. You may need to shift-click on the links to force your browser to download the file properly.
©1996 Mark Rigby-Jones
mark.rigby-jones\@keble.oxford.ac.uk
"); if ($#files == -1) { print("ftp://$server/pub/aminet/$dir/
\n"); } else { while ($file = shift(@files)) { print("ftp://$server/pub/aminet/$dir/$file