X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Faction-admins.php;h=69eaf11bc28055a3cce13c9d1ea1dc34d7b4333d;hb=c47144dd555bbab4acdf9085e4623900dedb0e7c;hp=9e4c6b28ee5b2db910b592cef6e49ff49444f71f;hpb=c72c89ffa5f7f5444d7fd47021db520b77738d9e;p=mailer.git diff --git a/inc/modules/admin/action-admins.php b/inc/modules/admin/action-admins.php index 9e4c6b28ee..69eaf11bc2 100644 --- a/inc/modules/admin/action-admins.php +++ b/inc/modules/admin/action-admins.php @@ -32,21 +32,22 @@ ************************************************************************/ // 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__)); +ADD_DESCR("admin", __FILE__); // Load the include file -$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']); -if ((file_exists($INC)) && (is_readable($INC))) { +$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); } + // ?>