X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fbonus_functions.php;h=bde8c4836cbe6b34bc44f6e66a13ee00ff5cbe46;hp=ea963dd66c79e3a3386d05d8262c912e33e91401;hb=963e55ca1ea79e255f235e359cde9f7862191dc5;hpb=392bea48385686e8c7c85396c0cdd71460fdfd14 diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index ea963dd66c..bde8c4836c 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -32,11 +32,11 @@ ************************************************************************/ // 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); } + // This function must be run *BEFORE* a link is removed from table 'mxchange_user_links' ! function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) {