- set_session("mxchange_theme", $NewTheme, (time() + 60*60*24*365), COOKIE_PATH);
+ set_session('mxchange_theme', $data['curr_theme']);
+
+ // Remmeber login failures if available
+ if (GET_EXT_VERSION("sql_patches") >= "0.6.1") {
+ // Reset login failures
+ SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data`
+SET login_failures=0, last_failure='0000-00-00 00:00:00'
+WHERE userid=%s
+LIMIT 1",
+ array($GLOBALS['userid']), __FILE__, __LINE__);
+
+ // Store it in session
+ set_session('mxchange_member_failures', $data['login_failures']);
+ set_session('mxchange_member_last_fail', $data['last_failure']);
+ } // END - if