Advanced search  

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]

Pages: [1]   Go Down

Author Topic: login redirect with cpg 1.4.6/punBB1.2.12  (Read 3034 times)

0 Members and 1 Guest are viewing this topic.

buchananben

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
login redirect with cpg 1.4.6/punBB1.2.12
« on: May 23, 2006, 11:05:51 am »

If I am in my gallery ie http://buchanan.homedns.org/nightcats/gallery and I click 'login' and enter my details, I am redirected to my forum http://buchanan.homedns.org/nightcats/forum after logging in, instead of back to my gallery. Is there a way to fix this?
there is a test account you can log in with user:test pass:test
Thanks
Ben
« Last Edit: May 24, 2006, 02:52:38 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: login redirect with cpg 1.4.6/punBB1.2.12
« Reply #1 on: May 23, 2006, 12:27:16 pm »

You need to apply a code 'fix' to punbb to enable that.

Code: [Select]
For login/logout redirection:

Edit punbb's login.php


Find: $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Login'];

Add before it: $redirect_url = (isset($_GET['redir'])) ? $_GET['redir'] : $redirect_url;


Find: redirect('index.php', $lang_login['Logout redirect']);

Change to: redirect(isset($_GET['redir']) ? $_GET['redir'] : 'index.php', $lang_login['Logout redirect']);
Logged

buchananben

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: login redirect with cpg 1.4.6/punBB1.2.12
« Reply #2 on: May 24, 2006, 02:03:45 am »

Thanks so much. That worked perfectly.
Ben
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.