* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
if (isGetRequestElementSet('pid')) {
// First let's get the member's id
- $result = SQL_QUERY_ESC("SELECT `userid`,`target_account`,`payout_total`,`payout_timestamp`,`password` FROM `{?_MYSQL_PREFIX?}_user_payouts` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `userid`, `target_account`, `payout_total`, `payout_timestamp`, `password` FROM `{?_MYSQL_PREFIX?}_user_payouts` WHERE `id`=%s LIMIT 1",
array(getRequestElement('pid')), __FILE__, __LINE__);
list($userid, $tuserid, $points, $tstamp, $tpass) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
// Load user's data
if (!fetchUserData($userid)) {
// Abort here because it is not valid!
- debug_report_bug(__FILE__, __LINE__, 'No user account ' . $userid . ' found.');
+ reportBug(__FILE__, __LINE__, 'No user account ' . $userid . ' found.');
} // END - if
if ((getRequestElement('do') == 'accept') && (getUserData('email') != '')) {
if (!empty($ptype)) {
// Obtain data from payout type
$result = SQL_QUERY_ESC("SELECT
- `from_account`,`from_pass`,`engine_url`,`engine_ret_ok`,`engine_ret_failed`,`pass_enc`,`allow_url`
+ `from_account`,
+ `from_pass`,
+ `engine_url`,
+ `engine_ret_ok`,
+ `engine_ret_failed`,
+ `pass_enc`,
+ `allow_url`
FROM
`{?_MYSQL_PREFIX?}_payout_types`
WHERE
} // END - switch
// Transfer variables...
- $reason = encodeString(getMessage('ADMIN_PAYOUT_REASON'), false);
+ $reason = encodeString(getMessage('ADMIN_PAYOUT_REASON'), FALSE);
// Execute transfer
$ret = sendGetRequest($data['engine_url']);
// Clear task
if ($taskId > 0) {
runFilterChain('solve_task', $taskId);
- }
+ } // END - if
// Clear payout request
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_payouts` SET `status`='ACCEPTED' WHERE `id`=%s LIMIT 1",
} else {
// Something goes wrong... :-(
$content = implode('<br />', $ret);
- loadTemplate('admin_payout_failed_transfer', false, $content);
+ loadTemplate('admin_payout_failed_transfer', FALSE, $content);
}
} else {
// Cannot load payout id
- loadTemplate('admin_settings_unsaved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_PAYOUT_ID--}');
+ loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_PAYOUT_FAILED_OBTAIN_PAYOUT_ID--}');
}
} else {
// Prepare content
);
// Load template
- loadTemplate('admin_payout_accept_form', false, $content);
+ loadTemplate('admin_payout_accept_form', FALSE, $content);
}
} elseif ((getRequestElement('do') == 'reject') && (getUserData('email') != '')) {
// Ok, now we can output the form or execute rejecting
);
// Load template
- loadTemplate('admin_payout_reject_form', false, $content);
+ loadTemplate('admin_payout_reject_form', FALSE, $content);
}
} else {
// Cannot load user data
// Banner/Textlink views/clicks request
if (!empty($content['banner'])) {
// Load template for the banner
- $content['target_account'] = loadTemplate('admin_list_payouts_banner', true, $content);
+ $content['target_account'] = loadTemplate('admin_list_payouts_banner', TRUE, $content);
} else {
// Textlink
- $content['target_account'] = loadTemplate('admin_list_payouts_txt', true, $content);
+ $content['target_account'] = loadTemplate('admin_list_payouts_txt', TRUE, $content);
}
// Admins can addionally test the URL for framekillers
$content['payout_timestamp'] = generateDateTime($content['payout_timestamp'], 2);
// Add row and switch color
- $OUT .= loadTemplate('admin_list_payouts_row', true, $content);
+ $OUT .= loadTemplate('admin_list_payouts_row', TRUE, $content);
} // END - while
// Free memory
SQL_FREERESULT($result);
// Load final template
- loadTemplate('admin_list_payouts', false, $OUT);
+ loadTemplate('admin_list_payouts', FALSE, $OUT);
} else {
// No payout requests are sent so far
displayMessage('{--ADMIN_PAYOUT_NO_REQUESTS_FOUND--}');