I cant get my cpg_redir.php file right I cant get my cpg_redir.php file right
 

News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

I cant get my cpg_redir.php file right

Started by zina, April 17, 2005, 01:10:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zina

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;
?>







Nibbler

You are only support to change 1 (one) line:

$cpg_path='/F/';

Put the rest back as it was.

zina

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 ?

kegobeer

<?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;
?>
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots