X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-;h=c68fa7661e70df027a667b615dc2c0fb66f07826;hp=984f25f6ac816ec9e4cc94dbe1c061c8ca090473;hb=c72c89ffa5f7f5444d7fd47021db520b77738d9e;hpb=114d6b94e8c2aa1ec5c79465fb2011196ec6f70b diff --git a/inc/modules/admin/action- b/inc/modules/admin/action- index 984f25f6ac..c68fa7661e 100644 --- a/inc/modules/admin/action- +++ b/inc/modules/admin/action- @@ -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)) { // Ok, we finally load the admin action module include($INC); -} - else -{ +} else { ADD_FATAL(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2); } + // ?>