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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 3 Guests 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