X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_task.php;h=7212e1ecee27ede55e33fde086ca2a6499446925;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=ed8e7187fac063de80fd0b24c0e0e02cb9f1b374;hpb=4e56971aed3008cd33f946c17012d0851ac3a18a;p=mailer.git
diff --git a/inc/modules/admin/what-del_task.php b/inc/modules/admin/what-del_task.php
index ed8e7187fa..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__);
//
?>