cpg_redir.php problem cpg_redir.php problem
 

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]

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