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 / Coppermine Login Issue  (Read 3511 times)

0 Members and 1 Guest are viewing this topic.

DrGamez

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
phpBB / Coppermine Login Issue
« on: August 23, 2005, 06:29:11 am »

I run phpbb 2.0.15 and coppermine 1.3.3 and for some time now anyone that registers new at the forums wont appeared logged in at the gallery.

EXCEPT there is an odd "fix". If the user goes in an uploads an avatar for the forums, then the gallery will suddenly see them logged in, and it will work from that day out.

I don't know why, that doesn't even make any sence.

phpbb.inc.php
Code: [Select]
// database configuration
define('PHPBB_DB_NAME', '****'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '****'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '****'); // The password to use to connect to the database
define('PHPBB_LOGOUT_GET', TRUE);

init.inc.php
Code: [Select]
define('COPPERMINE_VERSION', '1.3.3');
// 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');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');

cpg_redir.php
Code: [Select]
<?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;
?>

Why would it just "work" after uploading an avatar?

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.