X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-task.php;h=721e5edd9ab2c52b8b91d09acb6f7d0444aa829a;hp=cbbd29c4eda692623dca9b7d75eac6767466424d;hb=7b0f17cd637e388049d2167811e4332cec1e979b;hpb=1cf72a9c1a5e737509af79d49f0731da2eb6a218 diff --git a/inc/modules/admin/action-task.php b/inc/modules/admin/action-task.php index cbbd29c4ed..721e5edd9a 100644 --- a/inc/modules/admin/action-task.php +++ b/inc/modules/admin/action-task.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Erweitertes Aufgaben-Management * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -33,23 +38,23 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); -} elseif (!EXT_IS_ACTIVE("task")) { - addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "task"); +} elseif (!EXT_IS_ACTIVE('task')) { + addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'task')); return; } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); // Load the include file $INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); -if (FILE_READABLE($INC)) { +if (isIncludeReadable($INC)) { // Ok, we finally load the admin action module - LOAD_INC($INC); + loadInclude($INC); } else { - addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']); + addFatalMessage(__FILE__, __LINE__, getMessage('ADMIN_ACTION_404'), $GLOBALS['what']); } //