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: [Closed]: Login/Logout redirect with phpbb3 + coppermine 1.4.x bridge  (Read 10967 times)

0 Members and 1 Guest are viewing this topic.

kalyug

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

I have phpbb 3.0.4
I have coppermine 1.4.22
I have followed instructions from http://forum.coppermine-gallery.net/index.php/topic,53678.0.html for bridging phpbb3 with coppermine. The login etc works fine. But I would like to find out how do I make redirect work back to coppermine page after login/logout is clicked? I did update ucp.php with the following under the logout section, but it just goes to the default index page:
Code: [Select]
case 'logout':
                if ($user->data['user_id'] != ANONYMOUS && isset($_GET['sid']) && !is_array($_GET['sid']) && $_GET['sid'] === $user->session_id)
                {
                        $user->session_kill();
                        $user->session_begin();
                        $message = $user->lang['LOGOUT_REDIRECT'];
                }
                else
                {
                        $message = ($user->data['user_id'] == ANONYMOUS) ? $user->lang['LOGOUT_REDIRECT'] : $user->lang['LOGOUT_FAILED'];
                }

                meta_refresh(3, request_var('redirect', append_sid("{$phpbb_root_path}index.$phpEx")));

                $message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . request_var('redirect', append_sid("{$phpbb_root_path}index.$phpEx")) . '">', '</a> ');

                trigger_error($message);

And I didn't find any instructions on how to take care of the login page. The urls are setup like this:

http://domainname/forum
http://domainname/multimedia/pgallery

« Last Edit: May 07, 2009, 11:09:39 pm by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

kalyug

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Login/Logout redirect with phpbb3 + coppermine 1.4.x bridge
« Reply #2 on: May 06, 2009, 08:17:37 pm »

Nevermind. It just started working fine on its own. Sorry for any trouble.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.