]> git.mxchange.org Git - mailer.git/commitdiff
Missing bonus_rates fixed to bonus_ranks
authorRoland Häder <roland@mxchange.org>
Sat, 13 Sep 2008 17:44:19 +0000 (17:44 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 13 Sep 2008 17:44:19 +0000 (17:44 +0000)
inc/databases.php
inc/libs/bonus_functions.php
inc/modules/admin/what-config_bonus.php

index d9e4876e1c663de0ed68c4885ac8006dfc4bf846..ad65169cee3db609f4f986c28df947fef625f361 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "319");
+define('CURR_SVN_REVISION', "320");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 366606a243d6649687743275e4596cd338c202ee..ea963dd66c79e3a3386d05d8262c912e33e91401 100644 (file)
@@ -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_rates']);
+               $test = explode(";", $_CONFIG['bonus_ranks']);
                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_rates'])) + 1;
+       $ranks = sizeof(explode(";", $_CONFIG['bonus_ranks'])) + 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",
index edf24bfc67ff58f07c6a49092d33954516d0e541..5641b9c5cfed677c26f518a7f4697106e9d6d215 100644 (file)
@@ -89,10 +89,10 @@ if (isset($_POST['ok']))
        ADD_MEMBER_SELECTION_BOX($_CONFIG['bonus_uid'], false, true, true);
 
        // Initialize array for the points list
-       $RANKS = explode(";", $_CONFIG['bonus_rates']);
+       $RANKS = explode(";", $_CONFIG['bonus_ranks']);
 
        // Automatically calculate bonus points for ranks 2 and 3 when not set
-       if (empty($_CONFIG['bonus_rates'])) $RANKS = array(round($_CONFIG['turbo_bonus'] / 2), round($_CONFIG['turbo_bonus'] / 4));
+       if (empty($_CONFIG['bonus_ranks'])) $RANKS = array(round($_CONFIG['turbo_bonus'] / 2), round($_CONFIG['turbo_bonus'] / 4));
 
        // Generate list
        $OUT = "<OL start=\"2\">\n";