cpg_redir.php problem cpg_redir.php problem
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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!