How to redirect user after login How to redirect user after login
 

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

How to redirect user after login

Started by angeldevil, January 06, 2007, 08:01:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

angeldevil

Hi, I've a little question:
how to automatically redirect the user in ->thumbnails.php?album=lastupby&uid=X after login?

Many tnx in advance
a

Nibbler

Assuming you are not bridged, login.php

change

$referer=preg_replace("'&'","&",$referer);

to

$referer='thumbnails.php?album=lastupby&uid=' . USER_ID;

angeldevil

Quote from: Nibbler on January 06, 2007, 08:51:43 PM
Assuming you are not bridged, login.php

change

$referer=preg_replace("'&'","&",$referer);

to

$referer='thumbnails.php?album=lastupby&uid=' . USER_ID;

Hi Nibbler, yes I've not bridged gallery. Tnx for the your suggestion but I've tryed it without success. After login I have been redirected in a "last uploaded by anonymous" empty page, instead of my "last uploaded by [myself]" page.
How to fix?
a

Nibbler

Sorry, use

$referer='thumbnails.php?album=lastupby&uid=' . $USER_DATA['user_id'];

angeldevil

Yes Nibbler, now all work fine!  :)

Thank you
a