Joshpet write a small piece of code which does just that. Just add it underneath the first section shown below in download.php...
Code
// ----------------- <br />// Get the user info <br /> $userob = new user; <br /> $user = $userob -> authenticate("U_Groups"); <br /> <br />// ----------------- <br />// Must be logged in to download - by JoshPet <br /> if (!$user['U_Username']) { <br /> $html = new html; <br /> $html -> not_right('You must be logged in to download files.',$Cat); <br /> }
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.