Seite 1 von 1

ENGLISH - Allow guest to see but not download how...

Verfasst: Mi 14.Jul, 2004 10:54
von Anonymous
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

Verfasst: Mi 08.Sep, 2004 17:28
von Anonymous
I solved this allready, is the question still 'active' ?

Verfasst: Mi 08.Sep, 2004 17:58
von Anonymous
I would answer anyway, someone else might search for this too...

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;
	}

that's all....