coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: Mantis on April 18, 2007, 12:40:03 PM

Title: Change login.php?referer=index.php
Post by: Mantis 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:

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

Regards,

Mantis
Title: Re: Change login.php?referer=index.php
Post by: Nibbler on April 18, 2007, 03:21:03 PM
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.
Title: Re: Change login.php?referer=index.php
Post by: Mantis 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 ?
Title: Re: Change login.php?referer=index.php
Post by: Nibbler on April 18, 2007, 08:24:51 PM
That's different. logout.php

$referer = 'index.php';