]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
Security line in all includes changed
[mailer.git] / inc / libs / bonus_functions.php
index ea963dd66c79e3a3386d05d8262c912e33e91401..bde8c4836cbe6b34bc44f6e66a13ee00ff5cbe46 100644 (file)
  ************************************************************************/
 
 // 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)
 {