Great work, Josh, thanks!

But is there a way to restrict download to registered Users only? I tried your old hack adding to download.php the following line:
if ((!strstr($user['U_Groups'],"-5-")) && (!strstr($user['U_Groups'],"-8-"))) {
$html = new html;
$html -> not_right("You are not authorized to download.",$Cat);}
It works but with a little bug: inline pictures can be viewed by registered Users but when they click on the Attachment link, they get the same "You are not authorized to download" message.
Any hint for a dumb PHP newbie like me?

Thanks!