Advanced search  

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]

Pages: [1]   Go Down

Author Topic: phpBB 2.0.18 and coppermine login problems  (Read 7723 times)

0 Members and 1 Guest are viewing this topic.

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
phpBB 2.0.18 and coppermine login problems
« on: November 01, 2005, 03:38:11 am »

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

« Last Edit: November 03, 2005, 03:58:33 pm by Nibbler »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: phpBB 2.0.18 and coppermine login problems
« Reply #1 on: November 01, 2005, 06:21:52 am »

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.
Logged
Chief Geek at Ranium Systems

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #2 on: November 01, 2005, 02:16:27 pm »

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
Logged

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #3 on: November 01, 2005, 02:18:11 pm »

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
Logged

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #4 on: November 01, 2005, 02:20:40 pm »

here is my bridge file:

Code: [Select]
// 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

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

Logged

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #5 on: November 01, 2005, 02:34:59 pm »

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
Logged

Nibbler

  • Guest
Re: phpBB 2.0.18 and coppermine login problems
« Reply #6 on: November 01, 2005, 02:49:23 pm »

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

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #7 on: November 01, 2005, 03:31:49 pm »

Code: [Select]

 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
Logged

Nibbler

  • Guest
Re: phpBB 2.0.18 and coppermine login problems
« Reply #8 on: November 01, 2005, 03:32:54 pm »

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

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #9 on: November 01, 2005, 03:33:56 pm »

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

i modified my post above...
Logged

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #10 on: November 01, 2005, 03:36:20 pm »

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

Nibbler

  • Guest
Logged

littleking

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpBB 2.0.18 and coppermine login problems
« Reply #12 on: November 03, 2005, 03:57:36 pm »

solved
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.