]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_payouts.php
Several array indexes renamed, TODOs.txt updated
[mailer.git] / inc / modules / admin / what-config_payouts.php
index 526b80d3345b7937c97b988421daeb40fd87a37f..b0c094b86a98319e442937c31c2ec0bdcdec5187 100644 (file)
@@ -58,7 +58,7 @@ VALUES ('%s', %d, %d,'%s','%s','%s','%s','%s','%s','%s')",
                array(
                        postRequestElement('title'),
                        bigintval(postRequestElement('rate')),
-                       bigintval(postRequestElement('mpoi')),
+                       bigintval(postRequestElement('min_points')),
                        postRequestElement('yacc'),
                        postRequestElement('ypass'),
                        postRequestElement('yurl'),
@@ -106,7 +106,7 @@ WHERE `id`='".$id."' LIMIT 1",
                                array(
                                        postRequestElement('title', $id),
                                        convertCommaToDot(postRequestElement('rate', $id)),
-                                       convertCommaToDot(postRequestElement('mpoi' , $id)),
+                                       convertCommaToDot(postRequestElement('min_points' , $id)),
                                        postRequestElement('allow', $id),
                                ),__FILE__, __LINE__, false));
                        }
@@ -124,7 +124,7 @@ WHERE `id`='".$id."' LIMIT 1",
                        // Load data
                        $result = SQL_QUERY_ESC("SELECT type, rate, min_points, allow_url FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
-                       list($title, $rate, $mpoi, $allow) = SQL_FETCHROW($result);
+                       list($title, $rate, $min_points, $allow) = SQL_FETCHROW($result);
                        SQL_FREERESULT($result);
 
                        // Prepare data for the row template
@@ -133,7 +133,7 @@ WHERE `id`='".$id."' LIMIT 1",
                                'id'    => $id,
                                'title' => $title,
                                'rate'  => translateComma($rate),
-                               'mpoi'  => translateComma($mpoi),
+                               'min_points'  => translateComma($min_points),
                                'allow' => addSelectionBox('yn', $allow, "allow[".$id."]"),
                        );
 
@@ -172,7 +172,7 @@ WHERE `id`='".$id."' LIMIT 1",
                        // Load data
                        $result = SQL_QUERY_ESC("SELECT type, rate, min_points FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                        array($id), __FILE__, __LINE__);
-                       list($title, $rate, $mpoi) = SQL_FETCHROW($result);
+                       list($title, $rate, $min_points) = SQL_FETCHROW($result);
                        SQL_FREERESULT($result);
 
                        // Prepare data for the row template
@@ -181,7 +181,7 @@ WHERE `id`='".$id."' LIMIT 1",
                                'id'    => $id,
                                'title' => $title,
                                'rate'  => translateComma($rate),
-                               'mpoi'  => translateComma($mpoi),
+                               'min_points'  => translateComma($min_points),
                        );
 
                        // Load row template and switch color
@@ -212,14 +212,13 @@ if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result_type)) {
                // Prepare data for the row template
-               // @TODO Rewrite in template: mpoi->min_points,from->from_account
                $content = array(
-                       'sw'    => $SW,
-                       'id'    => $content['id'],
-                       'from => $content['from_account'],
-                       'type'  => $content['type'],
-                       'rate'  => translateComma($content['rate']),
-                       'mpoi'  => translateComma($content['min_points']),
+                       'sw'           => $SW,
+                       'id'           => $content['id'],
+                       'from_account' => $content['from_account'],
+                       'type'         => $content['type'],
+                       'rate'         => translateComma($content['rate']),
+                       'min_points'   => translateComma($content['min_points']),
                );
 
                // Load row template and switch color