Fat Lizard - 2003-03-10

Hack for 0.83 downloads mod.

Decided I'd like a little more from the downloads module (www.cannonbose.com), so hacked it a bit.

4 fields added to *mod_downloads_config
New table *mod_downloads_log

Allows, via downloads Admin area., to:
- optionally log downloads (file, referrer, date/time),
- optionally enable/disable leech downloads
- redirect unauthorised leech attempts to another URL

Needs some fine tuning, but logging ok for me.

If anyone would like to play with it, you can get it from the downloads section of www.fatlizard.com.au

Cheers,

Fat Lizard

PS. Since enabling it on my site a few minutes ago, the following was logged:

randomimage.zip
http://www.fatlizard.com.au (213.253.61.226) /mod.php?mod=downloads&op=getfile&id=3
March 10, 2003, 8:39 am

Which means:
Non-leech download of randomimage.zip, originating from the U.K. (213.253.61.226)