X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-sponsor.php;h=459607d7b7b66964dce95899ecff1069d0fd0cf9;hb=61b77b466ed51b55406cce2671c6ad3991b350a9;hp=fcb23d131ddae7cb6562886c117b9fd9e6f6fb1e;hpb=c72c89ffa5f7f5444d7fd47021db520b77738d9e;p=mailer.git diff --git a/inc/modules/admin/action-sponsor.php b/inc/modules/admin/action-sponsor.php index fcb23d131d..459607d7b7 100644 --- a/inc/modules/admin/action-sponsor.php +++ b/inc/modules/admin/action-sponsor.php @@ -31,8 +31,7 @@ ************************************************************************/ // 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); } @@ -42,11 +41,11 @@ ADD_DESCR("admin", basename(__FILE__)); // Load the include file $INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']); -if ((file_exists($INC)) && (is_readable($INC))) { +if (FILE_READABLE($INC)) { // Ok, we finally load the admin action module include($INC); } else { - $FATAL[] = ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2; + ADD_FATAL(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2); } // ?>