coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: matyasv on September 14, 2005, 12:48:26 AM

Title: CPG 1.3 - IPB 2.X Bridging Problem
Post by: matyasv on September 14, 2005, 12:48:26 AM
I finally got the log in to bridge after losing a few strands of hair...   It seems I didnt get the login.php file right.
anyway, my problem relates to the redirect.. That is all...
Thank you. Come again!

Coppermine
http://www.streetracersonline.com/copper

IPB
http://www.streetracersonline.com/forum

username: matyasv
pass: passcpg
Title: Re: CPG 1.3 - IPB 2.X Bridging Problem
Post by: Joachim Müller on September 20, 2005, 10:23:48 AM
what's the actual question?
Title: Re: CPG 1.3 - IPB 2.X Bridging Problem
Post by: matyasv on September 27, 2005, 10:39:54 PM
okay I figured out the redirect problem with the IPB 2.0 bridge

your script sends the log in with referer=blahblahblah

IPB 2.0 uses return=http://url to wherever you came from

NOTE: YOU MUST HAVE HTTP:// and a full url in order for the return script to work otherwise it calls fail function which redirects to the forum index

A server path, or any other path will not sufice.. Only a full URL starting with http://

use the following to obtain path

$HTTP_SERVER_VARS["HTTP_HOST"] . $HTTP_SERVER_VARS["REQUEST_URI"];