Change login.php?referer=index.php Change login.php?referer=index.php
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Change login.php?referer=index.php

Started by Mantis, April 18, 2007, 12:40:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mantis

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:

/login.php?referer=index.php to /login.php?referer=index.html ?

Regards,

Mantis

Nibbler

include/init.inc.php

find:

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

change to

$REFERER = urlencode($_SERVER['REQUEST_URI']);

Should do it.

Mantis

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 ?

Nibbler

That's different. logout.php

$referer = 'index.php';