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: Change login.php?referer=index.php  (Read 9158 times)

0 Members and 1 Guest are viewing this topic.

Mantis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Change login.php?referer=index.php
« on: April 18, 2007, 12:40:03 pm »

Hi all,

I've just install the SEF URL plugin and it works nice. I've just a question: how can I change this URL when login/out:

Code: [Select]
/login.php?referer=index.php to
Code: [Select]
/login.php?referer=index.html ?

Regards,

Mantis
Logged

Nibbler

  • Guest
Re: Change login.php?referer=index.php
« Reply #1 on: April 18, 2007, 03:21:03 pm »

include/init.inc.php

find:

Code: [Select]
$REFERER = urlencode($_SERVER['PHP_SELF'] . (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : ''));
change to

Code: [Select]
$REFERER = urlencode($_SERVER['REQUEST_URI']);
Should do it.
Logged

Mantis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: Change login.php?referer=index.php
« Reply #2 on: April 18, 2007, 07:49:18 pm »

Thanks nibble, but not exactly what I want...

Because, when I logout and click the "Continue" button, the galery redirect me to /index.php and not /index.html ...

What can I do ?
Logged

Nibbler

  • Guest
Re: Change login.php?referer=index.php
« Reply #3 on: April 18, 2007, 08:24:51 pm »

That's different. logout.php

Code: [Select]
$referer = 'index.php';
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.