coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: morychka on April 10, 2005, 06:02:38 PM

Title: Problems with logout (cpg1.3.2/phpBB 2.0.13)
Post by: morychka on April 10, 2005, 06:02:38 PM
I`v read themes about this kind of problems,but I steel can`t find solution.
I have cpg1.3.2 and phpBB 2.0.13.
I`v edited files init.inc.php and phpbb.inc.php , after that created file cpg_redir.php it is:
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://www.virtsex.ru".$cpg_host.$cpg_path);
exit;
?>


But when I try to logout,there is message Page cannot been found.After clicking button "Back" I`m logged out.
During installing phpBB forum,I edited file login.php to integrate forum with portal.

What shoul I do? help me,please.[/b]
Title: Re: Problems with logout (cpg1.3.2/phpBB 2.0.13)
Post by: Nibbler on April 10, 2005, 06:05:17 PM
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


Use this code instead, the default values were fine.
Title: Re: Problems with logout (cpg1.3.2/phpBB 2.0.13)
Post by: morychka on April 10, 2005, 06:23:04 PM
Nibbler
thanx a lot!))