how can I make the files visible to guest, but not downloadable, ? so when they click on a file they get redirected to the Login page ?
thanks
ENGLISH - Allow guest to see but not download how...
-
Anonymous
I would answer anyway, someone else might search for this too...
that's all....
Code: Alles auswählen
In the file Root/load.php, find :
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_DOWNLOADS);
init_userprefs($userdata);
//
// End session management
//
After that, ad :
// Restrict download to logged-in users
if (!$userdata['session_logged_in'])
{
redirect(append_sid("login.".$phpEx."?redirect=downloads.".$phpEx,true));
exit;
}