if (isFormSent()) {
// Add new transfer
- if (getConfig('transfer_code') > 0) {
+ if (getTransferCode() > 0) {
// Check for code
- $code = generateRandomCode(getConfig('transfer_code'), postRequestParameter('code_chk'), getMemberId(), $content['max_transferable']);
+ $code = generateRandomCode(getTransferCode(), postRequestParameter('code_chk'), getMemberId(), $content['max_transferable']);
$valid_code = ($code == postRequestParameter('code'));
} else {
// Zero length (= disabled) is always valid!
$content['userid_selection'] = $OUT;
// Generate Code
- if (getConfig('transfer_code') > 0) {
+ if (getTransferCode() > 0) {
// Generate random number
$rand = mt_rand(0, 99999);
// Generate CAPTCHA code
- $code = generateRandomCode(getConfig('transfer_code'), $rand, getMemberId(), $content['max_transferable']);
+ $code = generateRandomCode(getTransferCode(), $rand, getMemberId(), $content['max_transferable']);
// Generate image (HTML code)
$img = generateImageOrCode($code, false);
$nothingMessage = '';
switch ($mode) {
case 'list_in':
- $sql = "SELECT `trans_id`, `from_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}";
+ $sql = 'SELECT `trans_id`, `from_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}';
$nothingMessage = '{--TRANSFER_NO_INCOMING_TRANSFERS--}';
$content['balance'] = '{--TRANSFER_TOTAL_INCOMING--}';
$content['title'] = '{--TRANSFER_LIST_INCOMING--}';
break;
case 'list_out':
- $sql = "SELECT `trans_id`, `to_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}";
+ $sql = 'SELECT `trans_id`, `to_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}';
$nothingMessage = '{--TRANSFER_NO_OUTGOING_TRANSFERS--}';
$content['balance'] = '{--TRANSFER_TOTAL_OUTGOING--}';
$content['title'] = '{--TRANSFER_LIST_OUTGOING--}';