]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/doubler_functions.php
Refback will be payed now (user cannot setup currently)
[mailer.git] / inc / libs / doubler_functions.php
index 85ad9e68722cac22ee6f6fcbfbb1465683cfb2eb..3c44736a4c689bdb9a5b0a8f34b32ae87ce580ef 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 DOUBLER_GENERATE_TABLE($uid="0", $done='N', $ref='N', $sort="ASC")
 {
        global $_CONFIG;
-       if (empty($cnt)) $cnt = "0";
-       $ADD = ""; $DT_MODE = "0";
+       if (empty($cnt)) $cnt = 0;
+       $ADD = ""; $DT_MODE = 0;
        if ($uid > 0)
        {
                // Load entries only from a single user
@@ -128,7 +128,7 @@ function DOUBLER_GET_TOTAL_POINTS_LEFT()
 {
        global $_CONFIG;
        // Initialize variables
-       $points = "0";
+       $points = 0;
 
        if ($_CONFIG['doubler_own'] == "Y")
        {