forum.coppermine-gallery.net
Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: canelli on August 08, 2005, 08:09:51 pm
-
I'm testing the phpbb2 2.0.x bridge from cpg 1.4.1 beta.
I'm running the test web on my laptop with this configuration
M$ Win XP2 SP2
IIS 5.0
PHP 4.3.10
the gallery works fine in standalone mode. I had some troubles in login and logout phase with the gallery bridged with phpbb2
the webs paths are
cpg - http://localhost/centroveladervio/cpg141
phpbb2 - http://localhost/centroveladervio/phpbb2
bridge setting:
Forum URL: http://localost/centroveladervio/phpbb2
Relative path to your BBS's config file: ../phpbb2/
Use post-based groups?: 0
Cookie prefix: phpbb2mysql
When I try the login from cpg the url made is
http://localhost/centroveladervio/phpbb2/login.php?redirect=..../centroveladervio/cpg141/
I can login in phpbb2 but the redirect url is wrong (missing a / in the redirect part).
If I mannualy use the url
http://localhost/centroveladervio/phpbb2/login.php?redirect=../../centroveladervio/cpg141/
the login take on and I'm redirected to the cpg site
-
same result on a linux box
-
Can you try changing this line in the bridge file
$redirect = str_repeat('..', $levels) . rtrim($cpg['path'], '/') . '/';
to
$redirect = str_repeat('../', $levels) . trim($cpg['path'], '/') . '/';
-
I made the fix in file phpbb.inc.php , function login_page() and logout_page()
The mod works on my test environments (WIN XP + IIS50 + PHP 4.3.10, linux + apache 1.3.27 + PHP 4.3.2, WIN2000 + IIS50 + PHP 4.3.10)