]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/chk_login.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / chk_login.php
index 33e652776f3221006443bb84d0a6c8214427bccb..64e2f26ce1dfa1ace676eb59ba84bd33fdcd2fe4 100644 (file)
@@ -65,7 +65,7 @@ if (isUserIdSet() && (isSessionVariableSet('u_hash'))) {
        SQL_FREERESULT($result);
 
        // Change to new theme
        SQL_FREERESULT($result);
 
        // Change to new theme
-       set_session('mxchange_theme', $data['curr_theme']);
+       setSession('mxchange_theme', $data['curr_theme']);
 
        // Remmeber login failures if available
        if (GET_EXT_VERSION('sql_patches') >= '0.6.1') {
 
        // Remmeber login failures if available
        if (GET_EXT_VERSION('sql_patches') >= '0.6.1') {
@@ -77,8 +77,8 @@ LIMIT 1",
                        array(getUserId()), __FILE__, __LINE__);
 
                // Store it in session
                        array(getUserId()), __FILE__, __LINE__);
 
                // Store it in session
-               set_session('mxchange_member_failures', $data['login_failures']);
-               set_session('mxchange_member_last_fail', $data['last_failure']);
+               setSession('mxchange_member_failures', $data['login_failures']);
+               setSession('mxchange_member_last_fail', $data['last_failure']);
        } // END - if
 
        // Bonus is not given by default ;-)
        } // END - if
 
        // Bonus is not given by default ;-)
@@ -100,7 +100,7 @@ LIMIT 1",
        if (($bonus) && (REQUEST_GET('mode') == 'bonus') && (EXT_IS_ACTIVE('bonus'))) {
                // Output message with added points
                $message .= "<div class=\"tiny\">
        if (($bonus) && (REQUEST_GET('mode') == 'bonus') && (EXT_IS_ACTIVE('bonus'))) {
                // Output message with added points
                $message .= "<div class=\"tiny\">
-  ".sprintf(getMessage('BONUS_LOGIN_BONUS_ADDED'), TRANSLATE_COMMA(getConfig('login_bonus')))."
+  ".sprintf(getMessage('BONUS_LOGIN_BONUS_ADDED'), translateComma(getConfig('login_bonus')))."
 </div>";
        } elseif (EXT_IS_ACTIVE('bonus')) {
                // No login bonus added!
 </div>";
        } elseif (EXT_IS_ACTIVE('bonus')) {
                // No login bonus added!