X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-mods.php;h=a0ecec34ec7b67dde2cf93a8d337248e00cc3e08;hb=4e828541f3977c085ef54d3490b3e0069eb09a06;hp=6ce43d01648e4dcfb7da5ebabdd28779f86739c6;hpb=b73c135350d7ed266c0cac680105707139bd892d;p=mailer.git diff --git a/inc/modules/admin/action-mods.php b/inc/modules/admin/action-mods.php index 6ce43d0164..a0ecec34ec 100644 --- a/inc/modules/admin/action-mods.php +++ b/inc/modules/admin/action-mods.php @@ -38,15 +38,15 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); // Load the include file -$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']); +$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); if (FILE_READABLE($INC)) { // Ok, we finally load the admin action module - include($INC); + LOAD_INC($INC); } else { - ADD_FATAL(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2); + addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2); } //