forum.coppermine-gallery.net

Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: misteriddler on January 11, 2005, 10:27:09 pm

Title: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)
Post by: misteriddler on January 11, 2005, 10:27:09 pm
Hello !!!
Tres content de tomber sur ce forum !!!! ;)
Alors voila, je ne viens pas avec de bonnes nouvelles : En effet j'ai un probleme !!!  :)
Pour planter le decor : je suis une buse en code, j'ai reussi je ne sais pas encore comment a creer un forum phpbb, et a installer Coppermine... lol
Coppermine fonctionnait tres bien, jusqu'a ce que je me decide a suivre la partie du tuto en anglais "Edit your bridge file" afin de permettre aus personnes identifiées sur mon forum de ne pas avoir a se ré-identifier sur la galerie...
Du coup, j'ai modifié les 2 fichiers comme ils disent : "phpbb.inc.php" et "init.inc.php" et créé un fichier "cpg_redir.php" que j'ai placé dans le dossier phpbb2...
Mais maintenant, des que je suis sur la galerie, et que je fait "s'identifier" je tombe sur une page d'erreur...
Afin que vous puissiez m'aider au mieux, voici les differents elements que j'ai fait :

Le forum : http://www.dynatomik.fr/bonnelles/forum.htm
La galerie : http://www.dynatomik.fr/bonnelles/Coppermine/cpg132/

L'url d'erreur que j'ai lorsque je veux m'identifier sur la galerie : http://www.dynatomik.fr/bonnelles/Coppermine/cpg132/login.php?referer=%2Fbonnelles%2FCoppermine%2Fcpg132%2F

Le contenu des fichiers modifiés (avec en rouge ce que j'ai modifié) :

cpg_redir.php :

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


init.inc.php :

define('COPPERMINE_VERSION', '1.3.2');
// 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');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);

phpbb.inc.php :

// database configuration
define('PHPBB_DB_NAME', 'my64097'); // The name of the database used by the board
define('PHPBB_BD_HOST', '62.193.206.76'); // The name of the database server
define('PHPBB_DB_USERNAME', 'my64097'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'xxxxxxxx'); // 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('http://www.dynatomik.fr/bonnelles', '/phpBB2/');
// 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);

Voila, auriez vous une idée ou ca merdouille ?  Je crois comprendre que la redirection pour choper la base de donnée est mauvaise car j'ai :
http://www.dynatomik.fr/bonnelles/Coppermine/cpg132/login.php?referer=%2Fbonnelles%2FCoppermine%2Fcpg132%2F
et ca me semble bizarre....
Si vous pouviez m'aider, ca serait top, car ca fait pas mal de temps que je seche...
Merci d'avance.  :) ;)





Title: Re: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)
Post by: Nibbler on January 11, 2005, 10:35:38 pm
Code: [Select]
<?php
 
if (!$_SERVER['HTTP_HOST']) {
 
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
 } else {
 
$cpg_host=$_SERVER['HTTP_HOST'];
 }
 
$cpg_path='/bonnelles/Coppermine/cpg132/';
 
header("Location: http://".$cpg_host.$cpg_path);
 exit;
 
?>

Code: [Select]
define('PHPBB_WEB_PATH', '/bonnelles/phpBB2/');
Title: Re: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)
Post by: misteriddler on January 11, 2005, 11:02:23 pm
Heu la, Nibbler, faut bien avouer que je suis bluffé !!! :o
Mon probleme résolut en moins d'un quart d'heure, je n'en attendais pas tant !!!!
Merci beaucoup , et merci encore, je suis aux anges !!!
Vais tester tout ca .....
Excellent !!!
Title: Re: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)
Post by: Pascal YAP on January 14, 2005, 09:54:28 am
Bonjour MisterRiddler;

 Visiblement Nibbler a de la difficulté pour formuler une réponse en français, qu'il ne maitrise pas ! (je crois)
Sa solution fonctionne-t-elle ?

Pascal