X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fsponsor.php;h=1067b359030c2c9e3c419e8180e8fd55d83a8de7;hb=3b7577d3b3e6522d8898ed1799031b6de696accc;hp=7a3258071bf1c7f27268c44928919b5a65c86e7a;hpb=ea2a5e6a7838127d2f9dec02ba68ec575188528b;p=mailer.git diff --git a/inc/modules/sponsor.php b/inc/modules/sponsor.php index 7a3258071b..1067b35903 100644 --- a/inc/modules/sponsor.php +++ b/inc/modules/sponsor.php @@ -31,15 +31,15 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) { - $FATAL[] = EXTENSION_PROBLEM_EXT_INACTIVE; +} elseif ((!EXT_IS_ACTIVE("sponsor")) + ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); return; } elseif (!IS_SPONSOR()) { // No sponsor! - $FATAL[] = SPONSOR_ONLY_AREA_ENTERED; + ADD_FATAL(SPONSOR_ONLY_AREA_ENTERED); return; } elseif (empty($GLOBALS['what'])) { // Empty what value detected!