$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'];
$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
'stamp' => generateDateTime($stamp, 3),
'userid' => $userid,
'reason' => $reason,
- 'points' => translateComma($points)
+ 'points' => $points
);
// Load row template
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
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