X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fchk_login.php;h=016ecc249a85f62700138a3980c5d00f1609af46;hb=0226aea588ae0b433e4c2c17b23f79885c2d0da5;hp=ce282a4c7b5ccab25c34df009ab9c62886b7961d;hpb=ff7fae2b45eba59000af3b7753b41f34d1544a8a;p=mailer.git diff --git a/inc/modules/chk_login.php b/inc/modules/chk_login.php index ce282a4c7b..016ecc249a 100644 --- a/inc/modules/chk_login.php +++ b/inc/modules/chk_login.php @@ -38,7 +38,7 @@ if (!defined('__SECURITY')) { } // Initial message part -$MSG = "{!VALIDATING_LOGIN!}"; +$MSG = "{--VALIDATING_LOGIN--}"; if (!empty($GLOBALS['userid']) && (isSessionVariableSet('u_hash'))) { // Login failures are supported since 0.4.7 @@ -50,7 +50,7 @@ if (!empty($GLOBALS['userid']) && (isSessionVariableSet('u_hash'))) { } // END - if // Get theme from profile - $result = SQL_QUERY_ESC("SELECT curr_theme".$ADD." FROM `"._MYSQL_PREFIX."_user_data` WHERE userid=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT curr_theme".$ADD." FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1", array($GLOBALS['userid']), __FILE__, __LINE__); // Load data @@ -65,7 +65,7 @@ if (!empty($GLOBALS['userid']) && (isSessionVariableSet('u_hash'))) { // 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 + 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", @@ -80,7 +80,7 @@ LIMIT 1", $bonus = false; if ((GET_EXT_VERSION("sql_patches") >= "0.2.8") && (GET_EXT_VERSION("bonus") >= "0.2.1") && (getConfig('bonus_login_yn') == "Y")) { // Update last login if far enougth away - SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data + SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET last_login=UNIX_TIMESTAMP() WHERE userid=%s AND last_login < (UNIX_TIMESTAMP() - %s) LIMIT 1", @@ -95,13 +95,13 @@ LIMIT 1", if (($bonus) && ($_GET['mode'] == "bonus") && (EXT_IS_ACTIVE("bonus"))) { // Output message with added points $MSG .= "