]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_newsletter.php
Surfbar now has start/stop button
[mailer.git] / inc / modules / admin / what-config_newsletter.php
index 9abc620029e8440d460ef78d7e04d5ad0a926e97..c7dc393d5b64790d0af576fea30d162d2eec0389 100644 (file)
@@ -32,8 +32,7 @@
  ************************************************************************/
 
 // 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);
 }
@@ -51,7 +50,7 @@ if (isset($_POST['ok']))
  else
 {
        // Prepare contants for the template
-       define('__CHARGE_VALUE'  , TRANSLATE_COMMA($CONFIG['nl_charge'], false));
+       define('__CHARGE_VALUE'  , TRANSLATE_COMMA($_CONFIG['nl_charge'], false));
 
        // Prepare constants and load template
        LOAD_TEMPLATE("admin_config_newsletter", false);