forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: panhead on November 20, 2005, 07:04:05 pm
-
Hopefully the last problem! If you want to login or logout the cpg_redir.php is called, but a blank page is shown.
This is my cpg_redir code:
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/coppermine';
//header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
Link: http:www.hydra-glide.com/coppermine/index.php
Changed in bridge file:
// 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
// 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', '/phpBB2/');
-
Uncomment the line that does the redirection.
-
That makes no difference.
-
You changed
//header("Location: http://".$cpg_host.$cpg_path);
to
header("Location: http://".$cpg_host.$cpg_path);
and still nothing works?
-
Yes, this is the line:
header("Location: http://".$cpg_host.$cpg_path);
I hadn't changed it until tonight, it worked all the time.
-
Make sure you dont have blank lines at the start of the file (which appears to be the problem here), and that you make your edits using a simple text editor.
-
You are incredibly good! Thanks again!