Variable DEPTH must be deleted before ADD_POINTS_REFSYSTEM() is being called :(
authorRoland Häder <roland@mxchange.org>
Sun, 12 Oct 2008 15:02:58 +0000 (15:02 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 12 Oct 2008 15:02:58 +0000 (15:02 +0000)
beg.php
birthday_confirm.php
inc/databases.php
inc/modules/guest/what-confirm.php
inc/modules/member/what-wernis.php
inc/mysql-manager.php
mailid_top.php

diff --git a/beg.php b/beg.php
index 2c31d03..f53f158 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -132,7 +132,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                                        // Remember remote address, userid and timestamp for next click
                                        // but only when there is no admin begging.
                                        // Admins shall be able to test it!
-                                       $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES('%s','%s', UNIX_TIMESTAMP())",
+                                       $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES ('%s','%s', UNIX_TIMESTAMP())",
                                         array($uid, GET_REMOTE_ADDR()), __FILE__, __LINE__);
                                }
 
@@ -147,7 +147,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                                         array($points, $uid), __FILE__, __LINE__);
                                } else {
                                        // Add points to account
-                                       $DEPTH = 0;
+                                       unset($DEPTH);
                                        ADD_POINTS_REFSYSTEM($uid, $points, false, "0", $locked, strtolower($_CONFIG['beg_mode']));
                                }
 
index cb36e95..954b8fd 100644 (file)
@@ -79,7 +79,7 @@ WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
                        if (($data['ref_payout'] > 0) && ($_CONFIG['allow_direct_pay'] == "N")) $locked = true;
 
                        // Add points to account
-                       $DEPTH = 0;
+                       unset($DEPTH);
                        ADD_POINTS_REFSYSTEM($uid, $data['points'], false, "0", $locked, strtolower($_CONFIG['birthday_mode']));
 
                        // Remove entry from table
index 2fcc756..3bf291b 100644 (file)
@@ -113,7 +113,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "504");
+define('CURR_SVN_REVISION', "505");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 2626293..1eba1b0 100644 (file)
@@ -92,7 +92,7 @@ if (!empty($_GET['hash'])) {
                                        } // END - if
 
                                        // Add one-time referal bonus over referal system or directly
-                                       $DEPTH = 0;
+                                       unset($DEPTH);
                                        ADD_POINTS_REFSYSTEM($rid, $_CONFIG['points_ref'], true, bigintval($uid), $locked, $_CONFIG['reg_points_mode']);
                                } // END - if
                        } // END - if
index b98befe..4d47daa 100644 (file)
@@ -232,7 +232,7 @@ if ((isset($_POST['ok'])) && (isset($_GET['mode']))) {
                                        $success = WERNIS_EXECUTE_WITHDRAW($_POST['wds66_id'], md5($_POST['wds66_password']), $_POST['amount']);
                                        if ($success) {
                                                // Add it to this amount
-                                               $DEPTH = 0;
+                                               unset($DEPTH);
                                                ADD_POINTS_REFSYSTEM($GLOBALS['userid'], bigintval($_POST['amount']), false, 0, false, "direct");
 
                                                // Update the user data as well..
index 1561819..1def311 100644 (file)
@@ -198,7 +198,7 @@ function ADD_DESCR($ACC_LVL, $file, $return = false, $output = true) {
        $LINK_ADD = ""; $OUT = ""; $AND = "";
 
        // First we have to do some analysis...
-       if (ereg("action-", $file)) {
+       if (substr($file, 0, 7) == "action-") {
                // This is an action file!
                $type = "action";
                $search = substr($file, 7);
@@ -215,7 +215,7 @@ function ADD_DESCR($ACC_LVL, $file, $return = false, $output = true) {
                        break;
                }
                $AND = " AND (what='' OR what IS NULL)";
-       } elseif (ereg("what-", $file)) {
+       } elseif (substr($file, 0, 5) == "what-") {
                // This is an admin what file!
                $type = "what";
                $search = substr($file, 5);
index d489648..33c4aca 100644 (file)
@@ -234,7 +234,7 @@ if (isBooleanConstantAndTrue('mxchange_installed'))
                                                                                 array($url_uid), __FILE__, __LINE__);
 
                                                                                // Add points
-                                                                               $DEPTH = 0;
+                                                                               unset($DEPTH);
                                                                                ADD_POINTS_REFSYSTEM($url_uid, $payment, false, "0", $locked);
 
                                                                                // Shall I add bonus points for "turbo clickers" ?
@@ -273,7 +273,7 @@ if (isBooleanConstantAndTrue('mxchange_installed'))
                                                                                LOAD_TEMPLATE($template);
                                                                        } else {
                                                                                // Wrong image code! So add points to sender's account
-                                                                               $DEPTH = 0;
+                                                                               unset($DEPTH);
                                                                                ADD_POINTS_REFSYSTEM($sender, $payment, false, 0, false, "direct");
 
                                                                                // Remove link from table