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: Bridged with PHPBB2 in different domain  (Read 2913 times)

0 Members and 1 Guest are viewing this topic.

powweb

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Bridged with PHPBB2 in different domain
« on: April 27, 2005, 06:12:43 pm »

OK now I keep seeing posts where people say that you can not bridge CPM with a forum in a different domain. However in the documentation for creating the cpg_redir.php file for php it says it can be done. This is from the documentation

Quote
$cpg_host - contains the domain pointer to Coppermine. If Coppermine and phpBB are installed on the same server and domain (the "normal" case), you should leave the default value. Otherwise you should provide a string constant which contains the domain where Coppermine is installed (for example: 'www.my-other-domain.com').

So according to the directions it can be done...

SO my question is this....

What part of the cpg_redir.php do you change the host?

example:
Quote
<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=Change.domain.here;
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

or

Quote
<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=change.domain.here;
}
$cpg_path='/';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Or could I just do the following

Code: [Select]
<?php

header
("Location: http://domain/path);
exit;
?>

What I am tring to do is this:

have my forum on forumdomain.com
and the gallery on picsdomain.com
« Last Edit: April 27, 2005, 06:36:04 pm by powweb »
Logged

Nibbler

  • Guest
Re: Bridged with PHPBB2 in different domain
« Reply #1 on: April 28, 2005, 05:26:11 pm »

Redirection isn't the issue. The reason you can't have them on different domains is because cookies can only be read from the domain on which they are set.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.