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: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)  (Read 6944 times)

0 Members and 1 Guest are viewing this topic.

misteriddler

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

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.  :) ;)





Logged

Nibbler

  • Guest
Re: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)
« Reply #1 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/');
Logged

misteriddler

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)
« Reply #2 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 !!!
Logged

Pascal YAP

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Probleme de Passerelle entre Coppermine et phpBB !!! Au secour :)
« Reply #3 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

Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 19 queries.