]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-payout.php
Filters for configurable userid exclusion added:
[mailer.git] / inc / modules / member / what-payout.php
index e0bba7eee52b59dda96982013d9c7fd17f8b5c7a..731a00f42c421d303bbf780ed7e2040ebd6c23b0 100644 (file)
@@ -76,27 +76,27 @@ ORDER BY
 
                // Check for his payouts
                $result_payouts = SQL_QUERY_ESC("SELECT
-       p.`id`,
-       p.`payout_total`,
-       p.`target_account`,
-       p.`target_bank`,
-       t.`type`,
-       p.`payout_timestamp`,
-       p.`status`,
-       t.`allow_url` AS `allow`,
-       p.`target_url` AS `url`,
-       p.`link_text`,
-       p.`banner_url` AS `banner`
+       `p`.`id`,
+       `p`.`payout_total`,
+       `p`.`target_account`,
+       `p`.`target_bank`,
+       `t`.`type`,
+       `p`.`payout_timestamp`,
+       `p`.`status`,
+       `t`.`allow_url` AS `allow`,
+       `p`.`target_url` AS `url`,
+       `p`.`link_text`,
+       `p`.`banner_url` AS `banner`
 FROM
        `{?_MYSQL_PREFIX?}_user_payouts` AS `p`
 LEFT JOIN
        `{?_MYSQL_PREFIX?}_payout_types` AS `t`
 ON
-       p.`payout_id` = t.`id`
+       `p`.`payout_id`=`t`.`id`
 WHERE
-       p.`userid` = %s
+       `p`.`userid`=%s
 ORDER BY
-       p.`payout_timestamp` DESC",
+       `p`.`payout_timestamp` DESC",
                        array(getMemberId()), __FILE__, __LINE__);
                if (!SQL_HASZERONUMS($result_payouts)) {
                        // List all his requests
@@ -119,11 +119,11 @@ ORDER BY
                                $content['payout_timestamp'] = generateDateTime($content['payout_timestamp'], 2);
 
                                // Load row template and switch colors
-                               $OUT .= loadTemplate('member_payout_row', true, $content);
+                               $OUT .= loadTemplate('member_payout_row', TRUE, $content);
                        } // END - while
 
                        // Load template
-                       loadTemplate('member_payout', false, $OUT);
+                       loadTemplate('member_payout', FALSE, $OUT);
                } // END - if
 
                // Free memory
@@ -137,7 +137,7 @@ ORDER BY
        }
 } else {
        // Chedk if he can get paid by selected type
-       $result = SQL_QUERY_ESC("SELECT `type`, `rate`, `min_points`, `allow_url` AS allow FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `type`, `rate`, `min_points`, `allow_url` AS `allow` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestElement('payout'))), __FILE__, __LINE__);
 
        if (SQL_NUMROWS($result) == 1) {
@@ -231,7 +231,7 @@ VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')",
                                );
 
                                // Generate banner order form
-                               loadTemplate('member_payout_form_banner', false, $content);
+                               loadTemplate('member_payout_form_banner', FALSE, $content);
                        } else {
                                // Prepare content
                                $content = array(
@@ -241,7 +241,7 @@ VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')",
                                );
 
                                // Generate normal form
-                               loadTemplate('member_payout_form', false, $content);
+                               loadTemplate('member_payout_form', FALSE, $content);
                        }
                } else {
                        // Not enougth points