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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 2 Guests 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.