]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-transfer.php
A lot texts rewritten and exclamation signs removed
[mailer.git] / inc / modules / member / what-transfer.php
index 0d4ba2e0fa31bd56981eefb11cf290821b8a6878..5c4db42a09e3f96e6f854eea4569b756227a2d50 100644 (file)
@@ -325,7 +325,7 @@ switch ($mode) {
                                $row = array(
                                        'sw'     => $SW,
                                        'tid'    => $tid,
-                                       'stamp'  => generateDateTime($stamp, '3'),
+                                       'stamp'  => generateDateTime($stamp, 3),
                                        'userid' => $userid,
                                        'reason' => $reason,
                                        'points' => translateComma($points)
@@ -368,10 +368,10 @@ switch ($mode) {
                // First of all create the temporary table
                $result = SQL_QUERY("CREATE TEMPORARY TABLE `{?_MYSQL_PREFIX?}_transfers_tmp` (
 `trans_id` VARCHAR(12) NOT NULL DEFAULT '',
-`party_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-`points` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+`party_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `reason` VARCHAR(255) NOT NULL DEFAULT '',
-`time_trans` VARCHAR(10) NOT NULL DEFAULT '0',
+`time_trans` VARCHAR(10) NOT NULL DEFAULT 0,
 `trans_type` ENUM('IN','OUT') NOT NULL DEFAULT 'IN',
 KEY (`party_userid`)
 ) TYPE=HEAP", __FILE__, __LINE__);
@@ -389,8 +389,8 @@ KEY (`party_userid`)
                SQL_FREERESULT($result);
 
                // As the last table transfer data from outgoing table to temporary
-               $result = SQL_QUERY_ESC("SELECT `trans_id`, `to_userid`, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `id` LIMIT %s",
-                       array(getUserId(), getConfig('transfer_max')), __FILE__, __LINE__);
+               $result = SQL_QUERY_ESC("SELECT `trans_id`, `to_userid`, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `id` LIMIT {?transfer_max?}",
+                       array(getUserId()), __FILE__, __LINE__);
                while ($DATA = SQL_FETCHROW($result)) {
                        $DATA[] = 'OUT';
                        $DATA = implode("','", $DATA);
@@ -414,7 +414,7 @@ KEY (`party_userid`)
 
                                // Prepare content for template
                                $content['sw']     = $SW;
-                               $content['time']   = generateDateTime($content['time_trans'], '3');
+                               $content['time']   = generateDateTime($content['time_trans'], 3);
                                $content['points'] = translateComma($content['points']);
 
                                // Load row template
@@ -533,10 +533,10 @@ LIMIT 1",
                if (SQL_NUMROWS($result) == 1) {
                        // Load newest transaction
                        list($newest) = SQL_FETCHROW($result);
-                       $content['settings'] = sprintf(getMessage('TRANSFER_LATEST_IS'), generateDateTime($newest, '3'));
+                       $content['settings'] = sprintf(getMessage('TRANSFER_LATEST_IS'), generateDateTime($newest, 3));
                } else {
                        // Load template
-                       $content['settings'] = loadTemplate('member_transfer_settings', true);
+                       $content['settings'] = loadTemplate('member_transfer_settings', true, $content);
                }
 
                // Free result