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: Parse error due to cpg_redir  (Read 3206 times)

0 Members and 1 Guest are viewing this topic.

nickelsto

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Parse error due to cpg_redir
« on: November 06, 2004, 06:35:35 pm »

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:
Code: [Select]
<?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:
Code: [Select]
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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 22 queries.