]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_user.php
A lot fixes to templates and missing functions added, more rewrites
[mailer.git] / inc / modules / admin / what-config_user.php
index f2fcbbcbc2cae7a6c4905fe23e4d7c629331c2b9..914c9c22ef86a51e5761149e6c4e0ea9c817f614 100644 (file)
@@ -39,13 +39,13 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
        // Save settings
-       ADMIN_SAVE_SETTINGS($_POST);
+       ADMIN_SAVE_SETTINGS_POST();
 } else {
        // Prepare constants for the template
-       define('__LIMIT_VALUE', $_CONFIG['user_limit']);
-       define('__ALPHA_VALUE', $_CONFIG['user_alpha']);
+       define('__LIMIT_VALUE', getConfig('user_limit'));
+       define('__ALPHA_VALUE', getConfig('user_alpha'));
 
        // Load form template
        LOAD_TEMPLATE("admin_config_user");