I'd like
user.php?action=login
to be the result link upon clicking "logout" instead of
user.php?action=logout
.
I am rebuilding efiction! Join us on irc! #efiction at
What? You want the logout link to log people in? Surely I'm not understanding you correctly!
to show the login screen ^^
I am rebuilding efiction! Join us on irc! #efiction at
No. It's not possible. The logging out actually happens at that result link.
if you want that you'll have to MOD logout.php to display the login form.
You can redirect the user... this should work:
1. BACKUP YOUR FILE: user/logout.php
2. OPEN user/logout.php AND FIND (around line 22):
require_once("header.php");
3. ADD BEFORE
header("Location: user.php");
exit( );
It should work but you will have more lines then you need since the script stops at the exit(); line.
If you want, you can delete all the lines from require_once("header.php"); and down. Just leave the "?>" at the end or it won't work.
Post if you have any problems.
