coppermine-gallery.com/forum

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

Title: cpg_redir.php problem
Post 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/');


Title: Re: cpg_redir.php problem
Post by: Nibbler on November 20, 2005, 07:20:32 PM
Uncomment the line that does the redirection.
Title: Re: cpg_redir.php problem
Post by: panhead on November 20, 2005, 08:20:01 PM
That makes no difference.
Title: Re: cpg_redir.php problem
Post by: kegobeer on November 20, 2005, 08:52:01 PM
You changed

//header("Location: http://".$cpg_host.$cpg_path);

to

header("Location: http://".$cpg_host.$cpg_path);

and still nothing works?
Title: Re: cpg_redir.php problem
Post by: panhead on November 20, 2005, 10:05:32 PM
Yes, this is the line:

header("Location: http://".$cpg_host.$cpg_path);

I hadn't changed it until tonight, it worked all the time.
Title: Re: cpg_redir.php problem
Post by: Nibbler on November 20, 2005, 10:20:21 PM
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.
Title: Re: cpg_redir.php problem
Post by: panhead on November 20, 2005, 10:31:04 PM
You are incredibly good! Thanks again!