cpg_redir.php problem cpg_redir.php problem
 

News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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