coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: emiru on June 25, 2004, 03:34:47 PM

Title: Phpbb + copermane
Post by: emiru on June 25, 2004, 03:34:47 PM
I need help about connecting phpbb and coppermine usernames. I did everithing like you said.
My phpbb domain is www.domain.com/forum
and copermain www.domain.com/slikice

is this ok

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/slikice/';
header("Location: http://".www.domain.com/slikice/./slikice/);
exit;
?>
Title: Re: Phpbb + copermane
Post by: Nibbler on June 25, 2004, 06:27:32 PM
The header line is supposed to be:

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