From 1090de8d4e7bf659002468fec8571388e7487a00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 12 Oct 2008 15:02:58 +0000 Subject: [PATCH] Variable DEPTH must be deleted before ADD_POINTS_REFSYSTEM() is being called :( --- beg.php | 4 ++-- birthday_confirm.php | 2 +- inc/databases.php | 2 +- inc/modules/guest/what-confirm.php | 2 +- inc/modules/member/what-wernis.php | 2 +- inc/mysql-manager.php | 4 ++-- mailid_top.php | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/beg.php b/beg.php index 2c31d0330e..f53f158f2e 100644 --- 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'])); } diff --git a/birthday_confirm.php b/birthday_confirm.php index cb36e954f3..954b8fdadb 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -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 diff --git a/inc/databases.php b/inc/databases.php index 2fcc7560d9..3bf291b12a 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -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); diff --git a/inc/modules/guest/what-confirm.php b/inc/modules/guest/what-confirm.php index 262629303c..1eba1b02c7 100644 --- a/inc/modules/guest/what-confirm.php +++ b/inc/modules/guest/what-confirm.php @@ -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 diff --git a/inc/modules/member/what-wernis.php b/inc/modules/member/what-wernis.php index b98befee08..4d47daabe5 100644 --- a/inc/modules/member/what-wernis.php +++ b/inc/modules/member/what-wernis.php @@ -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.. diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 15618193a4..1def311928 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -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); diff --git a/mailid_top.php b/mailid_top.php index d4896483d1..33c4acad41 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -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 -- 2.39.5