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 panhead, November 20, 2005, 07:04:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

panhead

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/');



Nibbler

Uncomment the line that does the redirection.

panhead


kegobeer

You changed

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

to

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

and still nothing works?
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

Yes, this is the line:

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

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

Nibbler

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.

panhead

You are incredibly good! Thanks again!