]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_top10.php
Naming convention applied, rewritten to use filter
[mailer.git] / inc / modules / admin / what-config_top10.php
index 507f8a1a51fa64df833aed6d065d80a7297810aa..4eeaf49ac6412c7f0671e81014c549f5ce32f7e5 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']))
 {
@@ -48,7 +48,7 @@ if (isset($_POST['ok']))
  else
 {
        // Prepare constants for the template
-       define('__MAX_VALUE', $_CONFIG['top10_max']);
+       define('__MAX_VALUE', getConfig('top10_max'));
 
        // Load form template
        LOAD_TEMPLATE("admin_config_top10");