]> git.mxchange.org Git - mailer.git/commitdiff
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 2c31d0330e8fd7774765e2ff6c8386e702f36c56..f53f158f2ee2f8a3c0f5738cbce052198d7f6d87 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 cb36e954f321c97ad2df59b8e43702764692bd86..954b8fdadb2ce3a53d1e67d776284999aabab070 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 2fcc7560d9ef288a9fa965d8c6f79794b404f810..3bf291b12af280136efc004a9d3847e1cbcad26c 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 262629303cb8f4149a1868ee209a9f05fc9fe4c4..1eba1b02c7deb1b5694d35185f6190a387046253 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 b98befee083176f47befd82fe5314712e89525aa..4d47daabe5555dc4ea1872bee940ed362eceaaef 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 15618193a419148db85057fd77c93ccccd0b921a..1def31192837709bc8214be54562fc4295a8229e 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 d4896483d1d563c0e34c2c2415aad0c99c98f0a5..33c4acad41ffe3c0626fe2a3b65dec34a21fe4be 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