X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-doubler.php;h=f4a7922f36f947961a45702e14bf15c9e28bab82;hb=49654afc3fc819c4a9e65be2d870782f5e33e60d;hp=6982a4083c025e25b7d946f70b20e2d8a393e696;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/modules/admin/action-doubler.php b/inc/modules/admin/action-doubler.php index 6982a4083c..f4a7922f36 100644 --- a/inc/modules/admin/action-doubler.php +++ b/inc/modules/admin/action-doubler.php @@ -32,8 +32,7 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) -{ +if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -42,15 +41,13 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) ADD_DESCR("admin", basename(__FILE__)); // Load the include file -$INC = sprintf(PATH."inc/modules/admin/what-%s.php", $GLOBALS['what']); -if (file_exists($INC)) -{ +$INC = sprintf(."%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']); +if ((file_exists($INC)) && (is_readable($INC))) { // Ok, we finally load the admin action module include($INC); -} - else -{ +} else { ADD_FATAL(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2); } + // ?>