X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_task.php;h=7212e1ecee27ede55e33fde086ca2a6499446925;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=edef52bfd74dc86bb3f9fd8e21bbb5ad58142935;hpb=99cab54d086b044c882670ef9e051ba85bf9771f;p=mailer.git
diff --git a/inc/modules/admin/what-del_task.php b/inc/modules/admin/what-del_task.php
index edef52bfd7..7212e1ecee 100644
--- a/inc/modules/admin/what-del_task.php
+++ b/inc/modules/admin/what-del_task.php
@@ -32,14 +32,16 @@
************************************************************************/
// 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);
+} elseif (!EXT_IS_ACTIVE("task")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "task");
+ return;
}
+
// Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML("
");
+ADD_DESCR("admin", __FILE__);
//
?>