X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_user.php;h=c097c77ddaa388c0b3684475c9d0ec85556254ba;hb=d90ace91b5fce766924e587d20450f45318ccc64;hp=7cd3c431e7e1f0e58368f35a2ed0041d90343676;hpb=4d6226782aa4ba157dca8c3891412ba50159481f;p=mailer.git diff --git a/inc/modules/admin/what-config_user.php b/inc/modules/admin/what-config_user.php index 7cd3c431e7..c097c77dda 100644 --- a/inc/modules/admin/what-config_user.php +++ b/inc/modules/admin/what-config_user.php @@ -32,13 +32,12 @@ ************************************************************************/ // 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'])) { @@ -48,8 +47,8 @@ if (isset($_POST['ok'])) else { // Prepare constants for the template - define('__LIMIT_VALUE', $CONFIG['user_limit']); - define('__ALPHA_VALUE', $CONFIG['user_alpha']); + define('__LIMIT_VALUE', $_CONFIG['user_limit']); + define('__ALPHA_VALUE', $_CONFIG['user_alpha']); // Load form template LOAD_TEMPLATE("admin_config_user");