Mahor rewrite:
[mailer.git] / inc / modules / admin / what-config_secure.php
index 2f9e327ce6157f5fbb84e21ff3c845b762fba180..e241ce7d65c420b7437019b8025e803f5dfc3e5f 100644 (file)
@@ -39,11 +39,9 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
-if (isset($_POST['ok']))
-{
+if (isset($_POST['ok'])) {
        // If salt length is empty or null then we shall generate new passwords
-       if (empty($_POST['salt_length']) || ($_POST['salt_length'] == "0"))
-       {
+       if (empty($_POST['salt_length']) || ($_POST['salt_length'] == "0")) {
                // Generate new passwords for all!
                require(PATH."/inc/gen_sql_patches.php");
 
@@ -52,18 +50,16 @@ if (isset($_POST['ok']))
 
                // Redirect to logout link
                LOAD_URL("modules.php?module=admin&logout=1");
-       }
+       } // END - if
 
        // Save settings
        ADMIN_SAVE_SETTINGS($_POST);
-}
- else
-{
+} else {
        // Remember stuff in constants
-       define('__PASS_LEN'   , $_CONFIG['pass_len']);
+       define('__PASS_LEN'   , getConfig('pass_len'));
 
        // Password-salt length
-       define('__SALT_LENGTH', $_CONFIG['salt_length']);
+       define('__SALT_LENGTH', getConfig('salt_length'));
 
        // Load template
        LOAD_TEMPLATE("admin_config_secure");