Advanced search  

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]

Pages: [1]   Go Down

Author Topic: cpg_redir.php problem  (Read 3629 times)

0 Members and 1 Guest are viewing this topic.

adon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
cpg_redir.php problem
« 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
Code: [Select]
<?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;
?>
« Last Edit: February 21, 2005, 11:38:29 pm by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: cpg_redir.php problem
« Reply #1 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
Logged

adon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: cpg_redir.php problem
« Reply #2 on: February 21, 2005, 11:22:41 pm »

thanks, I'll change it
Logged

adon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: cpg_redir.php problem
« Reply #3 on: February 21, 2005, 11:32:33 pm »

works like a charm now, thanks!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.038 seconds with 16 queries.