// 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__);
}
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']));
}
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
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);
} // 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
$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..
$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);
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);
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" ?
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