]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/admins_functions.php
config.php partly solved, see #117
[mailer.git] / inc / libs / admins_functions.php
index 86f375c200895a208233898a96ac6f3f77d23f03..1279145d40b2a8490589c7c6db979bbadaf520f9 100644 (file)
@@ -160,7 +160,7 @@ function adminsChangeAdminAccount ($POST) {
                // When both passwords match update admin account
                if ($POST['pass1'][$id] == $POST['pass2'][$id]) {
                        // Save only when both passwords are the same (also when they are empty)
-                       $add = ''; $cache_update = "1";
+                       $add = ''; $cache_update = '1';
 
                        // Generate hash
                        $hash = generateHash($POST['pass1'][$id]);
@@ -269,12 +269,12 @@ function adminsEditAdminAccount ($POST) {
                        // Shall we allow changing default ACL?
                        if ($currMode == "allow") {
                                // Allow chaning it
-                               $content['mode']    = generateOptionList("/ARRAY/", array("allow", "deny"), array(constant('ADMINS_ALLOW_MODE'), constant('ADMINS_DENY_MODE')), $content['mode']);
+                               $content['mode']    = generateOptionList('/ARRAY/', array("allow", "deny"), array(constant('ADMINS_ALLOW_MODE'), constant('ADMINS_DENY_MODE')), $content['mode']);
                        } else {
                                // Don't allow it
                                $content['mode'] = " ";
                        }
-                       $content['la_mode'] = generateOptionList("/ARRAY/", array("global", "OLD", "NEW"), array(ADMINS_GLOBAL_LA_SETTING, ADMINS_OLD_LA_SETTING, ADMINS_NEW_LA_SETTING), $content['la_mode']);
+                       $content['la_mode'] = generateOptionList('/ARRAY/', array("global", "OLD", "NEW"), array(ADMINS_GLOBAL_LA_SETTING, ADMINS_OLD_LA_SETTING, ADMINS_NEW_LA_SETTING), $content['la_mode']);
 
                        // Load row template and switch color
                        $OUT .= LOAD_TEMPLATE("admin_edit_admins_row", true, $content);
@@ -349,7 +349,7 @@ function adminsRemoveAdminAccount ($POST) {
 
                        // Purge cache
                        cachePurgeAdminMenu($id);
-                       $cache_update = "1";
+                       $cache_update = '1';
                }
        }