]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_surfbar.php
More queries now depends on UNIX_TIMESTAMP() SQL function, wrong index in autopurge...
[mailer.git] / inc / modules / admin / what-config_surfbar.php
index 1cd75f1270cddb5414a29bdb80f1ac936e6c9085..d844d99e6b14e9b5aa5b1774494edbf09ca287fb 100644 (file)
@@ -32,7 +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);
 }
@@ -75,17 +75,6 @@ if (isset($_POST['ok'])) {
                define('__CONFIG_SURFBAR_PAY_MODEL_DYNAMIC', " checked=\"checked\"");
        }
 
-       // Prepare admin notify
-       if ($_CONFIG['surfbar_notify_admin_unlock'] == "Y") {
-               // Yes selected
-               define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_Y' , " checked=\"checked\"");
-               define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_N', "");
-       } else {
-               // No selected
-               define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_Y' , "");
-               define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_N', " checked=\"checked\"");
-       }
-
        // Prepare auto-sart
        if ($_CONFIG['surfbar_autostart'] == "Y") {
                // Yes selected