Even more rewrites/fixes from EL branch (please report any broken part after you...
[mailer.git] / inc / modules / member / what-transfer.php
index 122f0daa22fcf3f2024adfcdb86e56678d79d94b..ba40074cf842234a089c2d9e22d1f5676d9b66c2 100644 (file)
@@ -120,10 +120,6 @@ switch ($mode) {
                                        $content['recipient']['nickname'] = '';
                                } // END - if
 
-                               // Translate some data
-                               $content['sender']['gender']    = translateGender($content['sender']['gender']);
-                               $content['recipient']['gender'] = translateGender($content['recipient']['gender']);
-
                                // Prepare variables for testing
                                $TEST_NICK_SENDER = $content['sender']['nickname'];
                                $TEST_NICK_REC    = $content['recipient']['nickname'];
@@ -267,15 +263,12 @@ switch ($mode) {
                        $content['reason'] = '';
 
                        // Transfer maybe already entered valued'
-                       if (isGetRequestParameterSet('ok')) {
+                       if (isPostRequestParameterSet('ok')) {
                                // Get values from form
-                               $content['points'] = bigintval(postRequestParameter('points'));
-                               $content['reason'] = secureString(postRequestParameter('reason'));
+                               $content['points'] = postRequestParameter('points');
+                               $content['reason'] = postRequestParameter('reason');
                        } // END - if
 
-                       // Translate some array elements for template
-                       $content['max_transferable'] = translateComma($content['max_transferable']);
-
                        // Output form
                        loadTemplate('member_transfer_new', false, $content);
                } // END - if
@@ -321,7 +314,7 @@ switch ($mode) {
                                        'stamp'    => generateDateTime($stamp, 3),
                                        'userid'   => $userid,
                                        'reason'   => $reason,
-                                       'points'   => translateComma($points)
+                                       'points'   => $points
                                );
 
                                // Load row template
@@ -375,7 +368,7 @@ KEY (`party_userid`)
                while ($DATA = SQL_FETCHROW($result)) {
                        $DATA[] = 'IN';
                        $DATA = implode("','", $DATA);
-                       $res_temp = SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_transfers_tmp` (`trans_id`, `party_userid`, `points`, `reason`, `time_trans`, `trans_type`) VALUES ('".$DATA."')", __FILE__, __LINE__);
+                       $res_temp = SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_transfers_tmp` (`trans_id`, `party_userid`, `points`, `reason`, `time_trans`, `trans_type`) VALUES ('" . $DATA . "')", __FILE__, __LINE__);
                } // END - while
 
                // Free memory
@@ -387,7 +380,7 @@ KEY (`party_userid`)
                while ($DATA = SQL_FETCHROW($result)) {
                        $DATA[] = 'OUT';
                        $DATA = implode("','", $DATA);
-                       $res_temp = SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_transfers_tmp` (`trans_id`, `party_userid`, `points`, `reason`, `time_trans`, `trans_type`) VALUES ('".$DATA."')", __FILE__, __LINE__);
+                       $res_temp = SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_transfers_tmp` (`trans_id`, `party_userid`, `points`, `reason`, `time_trans`, `trans_type`) VALUES ('" . $DATA . "')", __FILE__, __LINE__);
                } // END - while
 
                // Free memory