Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Fixed bug #204
Browse files Browse the repository at this point in the history
  • Loading branch information
renlok committed Jun 4, 2015
1 parent 3a7263f commit 72d4cf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common.php
Expand Up @@ -93,5 +93,11 @@
$system->ctime = time() + $system->tdiff;
}

// delete REDIRECT_AFTER_LOGIN value automatically so you are never forwarded to an old page
if(isset($_SESSION['REDIRECT_AFTER_LOGIN']) && !defined('AtLoggin'))
{
unset($_SESSION['REDIRECT_AFTER_LOGIN']);
}

$template->set_template();
?>
1 change: 1 addition & 0 deletions user_login.php
Expand Up @@ -12,6 +12,7 @@
* sold. If you have been sold this script, get a refund.
***************************************************************************/

define('AtLoggin', 1);
include 'common.php';

$NOW = time();
Expand Down

0 comments on commit 72d4cf7

Please sign in to comment.