X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fsponsor%2Fwelcome.php;h=95f0a3a4a7a2e67c067bdd41cc4cdc335b57f738;hb=7f104f6fe558bb56b4205241435a2357c2feece1;hp=4aa7880e92ea56c03149deed544cb67f9e8e73cf;hpb=f01652b7b8efac92d97889e312402c4a845c2f14;p=mailer.git diff --git a/inc/modules/sponsor/welcome.php b/inc/modules/sponsor/welcome.php index 4aa7880e92..95f0a3a4a7 100644 --- a/inc/modules/sponsor/welcome.php +++ b/inc/modules/sponsor/welcome.php @@ -31,7 +31,7 @@ ************************************************************************/ // 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())) {