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 6323 times)

0 Members and 1 Guest are viewing this topic.

panhead

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 106
cpg_redir.php problem
« on: November 20, 2005, 07:04:05 pm »

Hopefully the last problem! If you want to login or logout the cpg_redir.php is called, but a blank page is shown.

This is my cpg_redir code:

<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/coppermine';
//header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


Link: http:www.hydra-glide.com/coppermine/index.php
Changed in bridge file:
// database configuration
define('PHPBB_DB_NAME', '********'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '******'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '********'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/phpBB2/');


« Last Edit: November 22, 2005, 10:19:53 pm by panhead »
Logged

Nibbler

  • Guest
Re: cpg_redir.php problem
« Reply #1 on: November 20, 2005, 07:20:32 pm »

Uncomment the line that does the redirection.
Logged

panhead

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 106
Re: cpg_redir.php problem
« Reply #2 on: November 20, 2005, 08:20:01 pm »

That makes no difference.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: cpg_redir.php problem
« Reply #3 on: November 20, 2005, 08:52:01 pm »

You changed

//header("Location: http://".$cpg_host.$cpg_path);

to

header("Location: http://".$cpg_host.$cpg_path);

and still nothing works?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

panhead

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 106
Re: cpg_redir.php problem
« Reply #4 on: November 20, 2005, 10:05:32 pm »

Yes, this is the line:

header("Location: http://".$cpg_host.$cpg_path);

I hadn't changed it until tonight, it worked all the time.
Logged

Nibbler

  • Guest
Re: cpg_redir.php problem
« Reply #5 on: November 20, 2005, 10:20:21 pm »

Make sure you dont have blank lines at the start of the file (which appears to be the problem here), and that you make your edits using a simple text editor.
Logged

panhead

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 106
Re: cpg_redir.php problem
« Reply #6 on: November 20, 2005, 10:31:04 pm »

You are incredibly good! Thanks again!
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.