]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/autopurge_functions.php
More templates rewritten
[mailer.git] / inc / libs / autopurge_functions.php
index 62073918fc055ad5ebe1ed11fe9e4295fe343428..7305ba5d4f8510b29eca159513511384bf90e05f 100644 (file)
@@ -32,8 +32,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);
 }
@@ -61,7 +60,7 @@ function AUTOPURGE_ADD_POINTS($uid, $points)
        {
                // ... to jackpot account
                ADD_JACKPOT($points);
-               if (empty($jackpot)) $jackpot = "0";
+               if (empty($jackpot)) $jackpot = 0;
                $jackpot += $points;
        }
         else