]> 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 7cd3c431e7e1f0e58368f35a2ed0041d90343676..914c9c22ef86a51e5761149e6c4e0ea9c817f614 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
-{
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
-if (isset($_POST['ok']))
-{
+if (IS_FORM_SENT()) {
        // Save settings
-       ADMIN_SAVE_SETTINGS($_POST);
-}
- else
-{
+       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");