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
Use the config option to disable anonymous browsing.
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
SOLVED
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
...as suggested in the FAQ (http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#viewThumbnailsOnly)