cpg132 to phpBB2 login hangs up in BB2 cpg132 to phpBB2 login hangs up in BB2
 

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

cpg132 to phpBB2 login hangs up in BB2

Started by desert_dave, November 08, 2004, 08:10:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

desert_dave

Hi guy's,
I change the code for the membership error when intergrating with php with :
// Edit users
function udb_edit_users()
{
    $target = 'memberlist.php';
    udb_redirect($target);
}

as said to in the forum, but then I get:
Parse error: parse error, unexpected T_VARIABLE, expecting '{' in /home/creating/public_html/coppermine/cpg132/bridge/phpbb.inc.php on line 265

Any idea where the hick-up in my gidda-up is?

Cheers,
desert dave
8)

Joachim Müller

What exactly did you modify?

Joachim

Nibbler

Add the entire file as an attachment to your posting.

desert_dave

I had to re-install phpBB2 so I redid the intergation also. Now cpg132 takes me to phpBB2 for login in and after I log in it will go back to cpg132. Log out is fine stays(or appears to) at cpg132.

My re-direct looks like this;
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/coppermine/cpg132';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

I've attached my phpbb.inc.php for you as requested. It has the revision added already that should take care of this problem but doesn't;
// Edit users
function udb_edit_users()
{
    $target = 'memberlist.php';
    udb_redirect($target);
}

Please take a look to see what I missed.

Cheers,
desert dave
valley of the sun  8)

Nibbler

The defines under // HTML code for login/logout redirection are in the file 3 times. I don't get that parse error, but I'd suggest you start again from a fresh copy of the file.

desert_dave

Sorry Nibbler, I made the text attachment before I the deleted the extra two off.
I played with this thing until late last night and here's where I'm at:
Log out is fine. Log in takes you to BB2 and stalls there until you log in then it will go back to cpg132.

Here's the site if you'd like to ck: http://www.creatingslideshows.com/coppermine/cpg132.
I have also attached the revised php.inc file.

Cheers,
dave

desert_dave


Nibbler

If you want people to check login issues it is a good idea to post a test account to test with.

desert_dave

#8
Whatever you need just let me know.
Test account login in: test, password: demo
Tks,
dave

http://www.creatingslideshows.com/gallery

desert_dave


Nibbler

Seems to be working exactly as expected.

i click login
enter login info
redirected back to cpg
click logout
I am now logged out