]> 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 8d46fd5d7d3f50a34748ce48d45e0009cd887dd4..64e2f26ce1dfa1ace676eb59ba84bd33fdcd2fe4 100644 (file)
@@ -38,7 +38,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
@@ -65,7 +65,7 @@ if (isUserIdSet() && (isSessionVariableSet('u_hash'))) {
        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') {
@@ -77,8 +77,8 @@ LIMIT 1",
                        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 ;-)
@@ -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\">
-  ".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!