phpBB 2.0.18 and coppermine login problems phpBB 2.0.18 and coppermine login problems
 

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

phpBB 2.0.18 and coppermine login problems

Started by littleking, November 01, 2005, 03:38:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

littleking

i'm having a heck of a time being able to log into cpg and be re-directed back to cpg. it works, but then i have to log in again and then it takes me to phpbb...

any ideas?

username: test
password: testing


http://www.huntohio.net/gallery/
http://www.huntohio.net/forums/

phpbb - Cookie name = huntforums

define('PHPBB_COOKIE_PREFIX', 'huntforums'); // The prefix used for board cookies

cpg cooke = huntgallery


Abbas Ali

I had no problems in log in on your cpg installation. I was redirected from forum to gallery after log in.

Try removing all the cookies of forum as well as gallery and then logging in.
Chief Geek at Ranium Systems

littleking

if you log into phpbb first, then try to go to the gallery you are not logged in, if you click login it takes you to phpbb

littleking

i cleared all cookies, when i log in it takes me back to cpg, but i am not logged in. if i hit login again it takes me to phpbb

littleking

here is my bridge file:


// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/forums/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'huntforums'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


and here is my redir


<?php
$cpg_host
=$_SERVER['HTTP_HOST'];
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


littleking

now im getting
Notice: Undefined index: huntforums_sid in /home/httpd/vhosts/huntohio.net/httpdocs/gallery/bridge/phpbb.inc.php on line 103

when logging out

Nibbler

That doesn't make any sense. Please post lines 102 and 103 from the bridge file.

littleking



102   //     if ($cookie_uid && !$cookie_pass && isset($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX . '_sid'])) {
103       $session_id = addslashes($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX . '_sid']);



102 was commented out from following http://forum.coppermine-gallery.net/index.php?topic=23229.0


the easy fix for me was to do the new session handling as posted above, then just remove the logout button:)

but i still get: Notice: Undefined index: huntforums_sid in /home/httpd/vhosts/huntohio.net/httpdocs/gallery/bridge/phpbb.inc.php on line 103

if you go to the gallery without logging into phpbb first.... is there any way to make them log in first to phpbb? so if they go to the gallery without logging in to phpbb it redirects them to phpbb

Nibbler

The error is caused by that modification, you'll need to seek support from its author.

littleking

Quote from: Nibbler on November 01, 2005, 03:32:54 PM
The error is caused by that modification, you'll need to seek support from its author.

i modified my post above...

littleking

without that modification, i have to log in to cpg twice, and i still am not logged into cpg... any ideas?