Security line in all includes changed
[mailer.git] / inc / libs / payout_functions.php
index 8b8f8ba03d5debddd8a2eef6442e324dbda0fc57..95d03c0f6e1bcceb87e01c34eac833808250429b 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);
 }
+
 //
 function PAYOUT_OUTPUT_PAYOUT_LIST($points)
 {