From: Roland Häder Date: Mon, 6 Oct 2008 17:49:53 +0000 (+0000) Subject: Fixes for turbo_rates vs. bonus_ranks X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=62c27b6be1b4edfe53d60b54c06621dbc7b30686;p=mailer.git Fixes for turbo_rates vs. bonus_ranks --- diff --git a/inc/databases.php b/inc/databases.php index 081fad2707..e64fee2fcc 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', "464"); +define('CURR_SVN_REVISION', "465"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index 1404119753..e6d3f69dd5 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -74,7 +74,7 @@ function BONUS_ADD_TURBO_POINTS($mid, $uid, $type) else { // Anything else so let's explode all entered rank points - $test = explode(";", $_CONFIG['bonus_ranks']); + $test = explode(";", $_CONFIG['turbo_rates']); if (!empty($test[$rank - 2])) { // Level found @@ -104,7 +104,7 @@ function BONUS_MAKE_RANK_ROWS($data, $type, $uid) $self = false; $OUT = ""; // How many ranks do we have? - $ranks = sizeof(explode(";", $_CONFIG['bonus_ranks'])) + 1; + $ranks = sizeof(explode(";", $_CONFIG['turbo_rates'])) + 1; // Load current user's data $result = SQL_QUERY_ESC("SELECT level, points, timemark FROM "._MYSQL_PREFIX."_bonus_turbo WHERE %s=%s AND userid=%s LIMIT 1", diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index 961168604c..6515531d3a 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -93,7 +93,7 @@ if (isset($_POST['ok'])) $RANKS = explode(";", $_CONFIG['turbo_rates']); // Automatically calculate bonus points for ranks 2 and 3 when not set - if (empty($_CONFIG['bonus_ranks'])) $RANKS = array(round($_CONFIG['turbo_bonus'] / 2), round($_CONFIG['turbo_bonus'] / 4)); + if (empty($_CONFIG['turbo_rates'])) $RANKS = array(round($_CONFIG['turbo_bonus'] / 2), round($_CONFIG['turbo_bonus'] / 4)); // Generate list $OUT = "
    \n";