coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: adon on February 21, 2005, 11:08:05 PM

Title: cpg_redir.php problem
Post by: adon on February 21, 2005, 11:08:05 PM
I installed both Coppermine and phpBB (2.0.11) properly and they work fine apart, I went through the integration steps and everything was fine, but I placed the cpg_redir.php file in the phpBB root filder, and when I went to my gallery and clicked 'logout' (I was currently logged in through the board) and it took me to http://microsoft.com, how it did that I have no idea, below is the code in the cpg_redir.php file
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host='http://theshriekingshack.com';
}
$cpg_path='/site/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
Title: Re: cpg_redir.php problem
Post by: Tranz on February 21, 2005, 11:20:54 PM
http://".$cpg_host.$cpg_path =
http://http://theshriekingshack.com/site/gallery

change $cpg_host to:
theshriekingshack.com

instead of
http://theshriekingshack.com
Title: Re: cpg_redir.php problem
Post by: adon on February 21, 2005, 11:22:41 PM
thanks, I'll change it
Title: Re: cpg_redir.php problem
Post by: adon on February 21, 2005, 11:32:33 PM
works like a charm now, thanks!  ;D