forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: callahan on December 26, 2005, 01:39:35 am

Title: Changing the default index page
Post by: callahan on December 26, 2005, 01:39:35 am
Hi,

I've just upgraded to the latest version of Coppermine. All went smoothly but I need to change the setup back to prompt users to logon before they can see any pics in the albums. It's been a while since I did this so a memory jog is required. The sction in the FAQ -

edit
displayimage.php
and search for

/**************************************************************************
* Local functions definition
**************************************************************************/


and add before it
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);

doesn't cover it so if anyone can tell me which file to edit and with what I'd appreciate it.

Cheers.
Title: Re: Changing the default index page
Post by: Joachim Müller on December 26, 2005, 09:48:52 am
in coppermine's config, use the option "Allow unlogged users (guest or anonymous) access (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_user)". Please read the docs before asking questions.