Because you just couldnt logout in the v2.5 (the only
stable version, as far as I know) I made this fix. V3 isnt
working for me, also doesnt have any Mysql file, so I will
make patches for v2.5 in the future.
I hope this project is still alive... oh well, lets get to the
fix.
Just make a new page, named logout.php, and add this
code below:
<?php
include ('config.php');
include("head.php");
if( $email = $email && $pass = $pass )
{
unset($_SESSION['email']);
unset($_SESSION['pass']);
$_SESSION = array();
session_destroy();
echo "Succesfully logged out!! Return to <a
href=$root>main page</a>";
echo "<br>";
} else {
echo "You are not logged in yet ! So you cant logout !";
echo "<br>";
}
include("foot.php");
?>
Then open your Header file (header.php), inside search
for:
- <a href=index.php>Log Out</a><br>
And then change that line to this:
- <a href=logout.php>Log Out</a><br>
Save & upload the 2 files (logout.php/header.php) and its
fixed ! =)
Logged In: NO
Thank god, someone's still doing fixes :)