cpg_redir.php problem cpg_redir.php problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

cpg_redir.php problem

Started by adon, February 21, 2005, 11:08:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adon

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;
?>

Tranz

http://".$cpg_host.$cpg_path =
http://http://theshriekingshack.com/site/gallery

change $cpg_host to:
theshriekingshack.com

instead of
http://theshriekingshack.com

adon


adon

works like a charm now, thanks!  ;D