Parse error due to cpg_redir Parse error due to cpg_redir
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Parse error due to cpg_redir

Started by nickelsto, November 06, 2004, 06:35:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickelsto

Clearly I've done something wrong but I can't figure it out.  I receive this error message when logging out of the gallery:
Parse error: parse error, unexpected ':' in /home/.fajadryer/renaissa/renaissanceguitars.com/forum/cpg_redir.php on line 8

This is the board:             http://renaissanceguitars.com/forum/
and this is the gallery:       http://renaissanceguitars.com/Gallery/

The cpg_redir.php, located in the forum/ folder, is:
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/Gallery';
header(Locationhttp://".$cpg_host.$cpg_path);
exit;
?>


The rest of the code is below:
define('COPPERMINE_VERSION', '1.3.2');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);

// database configuration
define('PHPBB_DB_NAME', 'rturner_forum'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'mysql.renaissanceguitars.com'); // The name of the database server
define('PHPBB_DB_USERNAME', 'rturner1'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'guitars'); // 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', '/forum/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


Thanks in advance for any help