X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-holiday_list.php;h=b8fe129b582d4c9d285c9ce121228168c7690b2d;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=6446e9a8ea91cbb7ba7d1afdeefcd036843e8de3;hpb=99cab54d086b044c882670ef9e051ba85bf9771f;p=mailer.git
diff --git a/inc/modules/admin/what-holiday_list.php b/inc/modules/admin/what-holiday_list.php
index 6446e9a8ea..b8fe129b58 100644
--- a/inc/modules/admin/what-holiday_list.php
+++ b/inc/modules/admin/what-holiday_list.php
@@ -32,14 +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__));
-OUTPUT_HTML("
");
+ADD_DESCR("admin", __FILE__);
//
?>