How to remove the redirect URL from the Bridge How to remove the redirect URL from the 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

How to remove the redirect URL from the Bridge

Started by girlboheme, April 20, 2011, 01:20:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

girlboheme

I just installed phpBB 3.0.8 ( http://littleblueumbrella.com/forum/ )
I also just installed Coppermine Photo Gallery v1.5.12 ( http://littleblueumbrella.com/gallery/ )

URL of Bridge App: http://littleblueumbrella.com/forum
Relative Path to your bridge app's config file: ../forum/
Cookie prefix: phpbb3_qkcy3

Cookie prefix: phpbb3_qkcy3
URL of the bridge app: http://littleblueumbrella.com/forum
Relative path to your bridge app's config file: ../forum/
Use bridge app custom groups?:    1

I have been working on this issue for several days: http://forum.coppermine-gallery.net/index.php/topic,72132.0.html 

It has been determined that it is an issue with the Host and not Coppermine, but I can't ask the host to change this, so I need to get help with removing the redirect url from the Bridge.

Would anyone know what code needs to be changed to make this happen?  Thank you!

Nibbler

Edit bridge/phpbb3.inc.php and change


        function login_page()
        {
            global $CONFIG;
           
            $redirect = urlencode($CONFIG['site_url']);
            $this->redirect("/ucp.php?mode=login&redirect=$redirect");
        }

        function logout_page()
        {
            global $CONFIG;
           
            $redirect = urlencode($CONFIG['site_url']);
            $this->redirect("/ucp.php?mode=logout&redirect=$redirect&sid=" . $this->session_id);
        }


to


        function login_page()
        {
            $this->redirect("/ucp.php?mode=login");
        }

        function logout_page()
        {
            $this->redirect("/ucp.php?mode=logout&sid=" . $this->session_id);
        }

girlboheme


Hellblazer

Nice nice nice, thank you very much that also solves my redirect problem.