unset($_POST['salt_length']);
// Redirect to logout link
- LOAD_URL(URL."/modules.php?module=admin&logout=1");
+ LOAD_URL("modules.php?module=admin&logout=1");
}
// Save settings
- ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
+ ADMIN_SAVE_SETTINGS($_POST);
}
else
{
// Remember stuff in constants
- define('__PASS_LEN' , $CONFIG['pass_len']);
+ define('__PASS_LEN' , $_CONFIG['pass_len']);
// Password-salt length
- define('__SALT_LENGTH', $CONFIG['salt_length']);
+ define('__SALT_LENGTH', $_CONFIG['salt_length']);
// Load template
LOAD_TEMPLATE("admin_config_secure");