]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-lock_user.php
CSS classes rewritten to ids to let JavaScript insert more values. Some wrappers...
[mailer.git] / inc / modules / admin / what-lock_user.php
index a23e065e6d94662030d0e32cbec7f8ab1abde745..bfd2f3b8b9826982c68234bc005d48927df4533a 100644 (file)
@@ -40,7 +40,7 @@
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
-}
+} // END - if
 
 // Add description as navigation point
 ADD_DESCR('admin', __FILE__);
@@ -59,7 +59,7 @@ if (REQUEST_ISSET_GET('uid')) {
                SQL_FREERESULT($result_user);
 
                // Is a lock reason set?
-               if ((REQUEST_ISSET_POST(('lock'))) && ($status != "LOCKED")) {
+               if ((REQUEST_ISSET_POST(('lock'))) && ($status != 'LOCKED')) {
                        // Ok, lock the account!
                        if (GET_EXT_VERSION('user') >= '0.3.5') {
                                // Lock with reason
@@ -83,7 +83,7 @@ if (REQUEST_ISSET_GET('uid')) {
                        // Prepare message
                        $message = sprintf(getMessage('USER_ACCOUNT_LOCKED'), REQUEST_GET('uid'));
                        $ACT = true;
-               } elseif ((REQUEST_ISSET_POST(('unlock'))) && ($status == "LOCKED")) {
+               } elseif ((REQUEST_ISSET_POST(('unlock'))) && ($status == 'LOCKED')) {
                        // Ok, unlock the account!
                        if (GET_EXT_VERSION('user') >= '0.3.5') {
                                // Reset lock reason as well
@@ -114,7 +114,7 @@ if (REQUEST_ISSET_GET('uid')) {
                        // Delete the account
                        $ACT = true;
                        loadIncludeOnce("inc/modules/admin/what-del_user.php");
-               } elseif (REQUEST_ISSET_POST(('no'))) {
+               } elseif (REQUEST_ISSET_POST('no')) {
                        // Do not lock him...
                        $URL = ADMIN_CREATE_USERID_LINK(REQUEST_GET('uid'));
                } else {