Coppermine 1.3.0.beta4 with phpbb 2.0.8 Coppermine 1.3.0.beta4 with phpbb 2.0.8
 

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

Coppermine 1.3.0.beta4 with phpbb 2.0.8

Started by Goldberg, June 07, 2004, 07:08:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Goldberg

Hi,

I wanne integrate my coppermine in the database of the phpbb forum.
I followed the guidance in coppermine how to do that an know i have a Problem with the "cpg_redir.php" (I guess)

Here are the Changes i made in coppermine and phpbb:


=========
Coppermine
=========

phpbb.inc.php

"
// database configuration
define('PHPBB_DB_NAME', 'NAME OF MY DB'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'MY USER'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'MY PASSW'); // The password to use to connect to the database

// 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', '/forum/');
// 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', 'phpbb2mysql'); // 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
"


init.inc.php
"
define('COPPERMINE_VERSION', '1.3.0 Beta3- Build 2004-04-02 18:30 h UTC+1 (public beta tester version)');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
"

=========
phpbb
=========

cpg_redir.php
"
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['goldberg.funpic.de'];
} else {
$cpg_host=$_SERVER['torsten-friedrich.de.vu'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
"

When i login at the phpbb everything is fine and works good.
When i try to login at the coppermine-login-button i get to the login screen of the phpbb but after the login i see the following ling

http:////gallery

I guss it must be an error in the "cpg_redir.php"


What is the differense between
$HTTP_SERVER_VARS
and
$_SERVER

Thank for your help
AND SORRY FOR MY BAD ENGLISH

Goldberg



Nibbler

You have changed bits of cpg_redir that you are not supposed to, read the instructions again.

Goldberg

Now i try out the following:

"cpg_redir.php"


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

And after Login i get the following message:
"
Not Found
The requested URL /goldberg/gallery/ was not found on this server.


--------------------------------------------------------------------------------

Apache/1.3.31 Server at sm9.funpic.de Port 80
"

Can someone help me here?

Nibbler

OK, simplify your cpg_redir to:

<?
header("Location: http://www.yoursite.com/coppermine");
exit;
?>


or equivalent.

Goldberg

Hi Nibbler,

NOW it Works
Thx a lot, but know i got a new problem :-)
Sorry that i must ask so many stupid and i guess simple questions.

After Login i got back to coppermine but not loged in and so i cant do the next step (synchronize groups)
I guess the problem is that i use Frames.
If it is to complicated i will use too log account (one for phpbb and one for coppermine)


Joachim Müller

link and test user account (non admin)?

GauGau

P.S. we have a "one question per thread" policy on this board...