define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "605");
+define('CURR_SVN_REVISION', "606");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
break;
case "0.2.1": // SQL queries for v0.2.1
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` `min_age` TINYINT(3) UNSIGNED NOT NULL DEFAULT 16";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `min_age` TINYINT(3) UNSIGNED NOT NULL DEFAULT 16";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Minimumalter ist nun konfigurierbar.";
}
// Add points to user or begging rallye account
-function BEG_ADD_POINTS($uid, $points) {
+function BEG_ADD_POINTS ($uid, $points) {
global $_CONFIG;
// Set mode depending on how many mails the member has to confirm
$locked = false;
- if (($ref_payout > 0) && ($_CONFIG['allow_direct_pay'] == "N")) $locked = true;
+ if (($_CONFIG['ref_payout'] > 0) && ($_CONFIG['allow_direct_pay'] == "N")) $locked = true;
// Is begging rallye active?
if ($_CONFIG['beg_rallye'] == "Y") {
LEFT JOIN "._MYSQL_PREFIX."_user_data AS d
ON p.userid=d.userid
WHERE d.status='CONFIRMED' AND d.max_mails > 0 AND d.mails_confirmed >= %s AND p.ref_depth=1 AND p.points > 0 AND d.userid=%s",
- array($_CONFIG['ref_payout'], bigintval($uid)), __FILE__, __LINE__);
+ array($_CONFIG['ref_payout'], bigintval($uid)), __FILE__, __LINE__);
list($refpoints) = SQL_FETCHROW($result_ref);
SQL_FREERESULT($result_ref);