Login Logout Redirect Screen Login Logout Redirect Screen
 

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

Login Logout Redirect Screen

Started by guygar, April 06, 2011, 07:24:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guygar

site: coppermine.guygar.com

i have modified my coppermine so it loads the 'last additions' page instead of the index.php

the issue is when i login or logout the process redirects to index.php

i am thinking i have to change the redirect URL in the login and louout.php files.

Where can i find info regarding this type of modifications?

Thank you.

guygar

i was also wondering if this issue can be handled using .htaccess redirect? i.e. everytime index.php is called it redirects to 'last additions' page?

thanks.

guygar

i found this reading docs:

------------------
How can I send a user directly to his private album once he logs in?
edit
login.php
and search for
pageheader($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

and add before it
$referer = 'index.php?cat='.(FIRST_USER_CAT+$USER_DATA['user_id']);

------------------

but i could not find: pageheader($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

in the file.

please advise.

Αndré

Quote from: guygar on April 06, 2011, 07:39:49 PM
i was also wondering if this issue can be handled using .htaccess redirect? i.e. everytime index.php is called it redirects to 'last additions' page?
Just add a new rewrite rule like
RewriteEngine on
RewriteBase /
RewriteRule ^index.php$ thumbnails.php?album=lastup [NC]



Quote from: guygar on April 06, 2011, 07:59:23 PM
i found this reading docs:
Where exactly have you found that? Please post a link.


Αndré

Adjusted that part in svn revision 8222.