X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-overview.php;h=44f34e52ad6f0f680fb48d19c7eedc712f0126cd;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=799cae84f1cdf967d578f9c633d80830970911fb;hpb=abc82902f6ca318dcbb75ba5952a4478387569af;p=mailer.git diff --git a/inc/modules/admin/what-overview.php b/inc/modules/admin/what-overview.php index 799cae84f1..44f34e52ad 100644 --- a/inc/modules/admin/what-overview.php +++ b/inc/modules/admin/what-overview.php @@ -32,13 +32,13 @@ ************************************************************************/ // 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__); // Otherwise load include file 'overview-inc' (old standard overview page) require_once(PATH."inc/modules/admin/overview-inc.php"); @@ -65,7 +65,7 @@ if ($JOBS_DONE) { global $menuDesription, $FATAL; if ((is_array($menuDesription)) && (sizeof($menuDesription) > 0)) { $OUT = ""; - foreach ($menuDesription as $key=>$value) + foreach ($menuDesription as $key => $value) { // Prepare content $content = array(