Skip to content

Commit

Permalink
Fix admin timezone chicken/egg problem
Browse files Browse the repository at this point in the history
Need to load application_top before calling strtotime() so that the timezone overrides are executed first.
  • Loading branch information
drbyte committed Nov 11, 2015
1 parent b513ec5 commit 7020d20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/login.php
Expand Up @@ -6,14 +6,15 @@
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version GIT: $Id: Author: Ian Wilson Modified in v1.5.4 $
*/
require ('includes/application_top.php');

define('ADMIN_SWITCH_SEND_LOGIN_FAILURE_EMAILS', 'Yes'); // Can be set to 'No' if you don't want warning/courtesy emails to be sent after several login failures have occurred

// PCI-DSS / PA-DSS requirements for lockouts and intervals:
define('ADMIN_LOGIN_LOCKOUT_TIMER', (30 * 60));
define('ADMIN_PASSWORD_EXPIRES_INTERVAL', strtotime('- 90 day'));

//////////
require ('includes/application_top.php');
$admin_name = $admin_pass = $message = "";
$errors = array();
$error = $expired = false;
Expand Down

0 comments on commit 7020d20

Please sign in to comment.