[Closed]: Login/Logout redirect with phpbb3 + coppermine 1.4.x bridge [Closed]: Login/Logout redirect with phpbb3 + coppermine 1.4.x bridge
 

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

[Closed]: Login/Logout redirect with phpbb3 + coppermine 1.4.x bridge

Started by kalyug, May 06, 2009, 02:47:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kalyug

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:

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


Joachim Müller


kalyug

Nevermind. It just started working fine on its own. Sorry for any trouble.