coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: zina on April 17, 2005, 01:10:12 PM

Title: I cant get my cpg_redir.php file right
Post by: zina on April 17, 2005, 01:10:12 PM
Hello board members,

Ive got phpbb installed correct and coppermine
and i followd the steps in the doc file to Integrating my phpbb with my coppermine

when i log in and i go to my photo album i see i am logged in but when i try to logout
the page dont shows  :o

i think my cpg_redir.php is not correct

my phpbb board is in the url

http://81.4.88.28/~naruc/

and my photo album is in the url

http://81.4.88.28/~naruc/F/


i have this
like what should i modefy the script ?

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['http://81.4.88.28/~naruc'];
} else {
  
$cpg_host=$_SERVER['http://81.4.88.28/~naruc'];
}
$cpg_path='/F/';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>






Title: Re: I cant get my cpg_redir.php file right
Post by: Nibbler on April 17, 2005, 05:50:00 PM
You are only support to change 1 (one) line:

$cpg_path='/F/';

Put the rest back as it was.
Title: Re: I cant get my cpg_redir.php file right
Post by: zina on April 17, 2005, 09:47:22 PM
Quote from: Nibbler on April 17, 2005, 05:50:00 PM
You are only support to change 1 (one) line:

$cpg_path='/F/';

Put the rest back as it was.

eeeh what do you mean ? i did not understand you my english is poor, what should the script look like ?
Title: Re: I cant get my cpg_redir.php file right
Post by: kegobeer on April 17, 2005, 09:58:38 PM
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/F';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>