Only allow access to index.php page Only allow access to index.php page
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Only allow access to index.php page

Started by modiba, April 17, 2006, 05:03:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

modiba

Hello,

I am hoping someone can help me out.

How can I prevent users from accessing any photo album unless they login?

So, unless a user logs in they can only see the index.php page.

Many thanks,
Greg

Nibbler

Use the config option to disable anonymous browsing.

modiba

Hello,

Thanks for getting back to me.

Disalbing anonymous browsing via the config option will only allow the user to visit the login.php and register.php pages.

I want to allow anonymous viewing of index.php too.

How can I achieve this?

Thanks again,
Greg

modiba


modiba

pasted:

if (!USER_ID) cpg_die(ERROR, 'You need to <a href=register.php>register</ a> to access this page', __FILE__, __LINE__);

to the top of thumbnails.php

Works fine.

Thanks anyway

Greg

Joachim Müller