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: IPB redirect issue...  (Read 8791 times)

0 Members and 1 Guest are viewing this topic.

index

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
IPB redirect issue...
« on: October 21, 2003, 07:55:27 am »

ok,

well i did the following hack which might help a few people
also, i'm pretty much a beginner, so if the code is ugly or inefficient, i'm sorry but it works for me  :D

on line 2469 in the sources/functions.php file (in IPB) i replaced the following lines:

Code: [Select]
$url =$ibforums->base_url.$url;

with


Code: [Select]

$findme = 'www.domain.com';
if (!is_int(strpos($url,$findme)))
{
$url =$ibforums->base_url.$url;
}
else{
}


where www.domain.com is your domain.

this will redirect the user back to where he/she was in the gallery when login in using the IPB integration.

I did not yet do the logout hack for this, but it should work the same way.
Hope this helps
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.