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: redirection  (Read 4842 times)

0 Members and 1 Guest are viewing this topic.

banstey

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
redirection
« on: January 03, 2005, 07:03:46 am »

when i link go to the index page in coppermine and press the login button im redirected to www.lop.com  i have gone over all the files i am suppose to change and everything is right.  has anyone come across this before? any suggestions on how to fix it?
« Last Edit: April 30, 2005, 08:12:27 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: redirection
« Reply #1 on: January 03, 2005, 09:48:48 am »

this is expected behaviour: when bridging is enabled in coppermine, clicking the login link will send you to the login page you specified in your bridge file. Post your actual coppermine url and a test user account (non-admin) for further details.

Joachim
Logged

banstey

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: redirection
« Reply #2 on: January 03, 2005, 10:53:26 am »

the url is http://www.apluscs.net/snozone 

i cant make a test account as it wont let me get to the login
Logged

Nibbler

  • Guest
Re: redirection
« Reply #3 on: January 03, 2005, 12:56:00 pm »

Your login page trys to redirect to : http://www.apluscs.nethttp://www.apluscs.net/forumlogin.php?redirect=cpg_redir.php


Review your changes to the bridge file.
Logged

banstey

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: redirection
« Reply #4 on: January 03, 2005, 02:52:12 pm »

thank you the bridge file had an issue in it..  i got logged into coppermine  but now there are a number of other places i cant go..  i can upload and arrange pics..  but other things like logout profile and login for anyone other then me wont work..  i created a test account on my message forum it is username jk password test.. 
« Last Edit: January 03, 2005, 05:37:44 pm by banstey »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: redirection
« Reply #5 on: January 04, 2005, 06:04:48 am »

when bridging is enabled, coppermine's login page shouldn't show up when clicking on the login link, but the user should be redirected to your bbs app's login screen (expected behaviour), so I guess you disabled bridging/integration by turning off the switch in include/init.inc.php. As coppermine and your bbs are currently not bridged, you can't log in with a test account that is only valid on your bbs. Re-enable bridging, so we can try again.

Joachim
Logged

Mr Tee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 70
    • The Studio Online
Re: redirection
« Reply #6 on: April 28, 2005, 10:34:03 am »

I am having a problem with redirection. If I try to log in through coppermine I am redirected to my BB, which is fine, however, when I log in I the receive a 404 error. It tries to find a a folder called thegallery when it should direct to gallery.

I have checked all files but can find no code that directs to thegallery.

« Last Edit: April 29, 2005, 07:56:45 pm by Mr Tee »
Logged

Nibbler

  • Guest
Re: redirection
« Reply #7 on: April 28, 2005, 03:41:01 pm »

It's in the cpg_redir.php file. Post it here if you can't locate the error.
Logged

Mr Tee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 70
    • The Studio Online
Re: redirection
« Reply #8 on: April 28, 2005, 11:03:57 pm »

Thanks,

Code: [Select]
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/forum/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
Logged

Nibbler

  • Guest
Re: redirection
« Reply #9 on: April 29, 2005, 02:04:54 pm »

That's a cpg_redir.php in your gallery directory. You need to edit the one in your forum directory, and remove the one in your gallery directory.
Logged

Mr Tee

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 70
    • The Studio Online
Re: redirection
« Reply #10 on: April 29, 2005, 07:56:17 pm »

Yep, that would do it....... ::) Now I see the problem, I must have tried to install Coppermine previously. Thanks for the help.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 15 queries.