// Sanity check...
if (empty($totalPoints)) $totalPoints = '0.00000';
-if (!isGetRequestElementSet('payout')) {
+if (!isGetRequestParameterSet('payout')) {
// Load payout types
$result = SQL_QUERY_ESC("SELECT
`id`, `type`, `rate`, `min_points`, `allow_url`
} else {
// Chedk if he can get paid by selected type
$result = SQL_QUERY_ESC("SELECT type, rate, min_points, allow_url AS allow FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
- array(bigintval(getRequestElement('payout'))), __FILE__, __LINE__);
+ array(bigintval(getRequestParameter('payout'))), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// id is valid so load the data
// Calulcate points from submitted amount
$points = '0';
- if (isPostRequestElementSet('payout')) {
- $points = bigintval(postRequestElement('payout')) / $content['rate'];
+ if (isPostRequestParameterSet('payout')) {
+ $points = bigintval(postRequestParameter('payout')) / $content['rate'];
$PAY_MAX = $max / $content['rate'];
}
// Ok, he can get be paid
if ((isFormSent()) && ($points <= $PAY_MAX) && ($points >= $content['min_points'])) {
// Remember points in array
- setPostRequestElement('payout_points', translateComma($points));
- setPostRequestElement('type' , $content['type']);
+ setPostRequestParameter('payout_points', translateComma($points));
+ setPostRequestParameter('type' , $content['type']);
// Subtract points from member's account
subtractPoints('payout', getMemberId(), $points);
VALUES (%s,%s,%s, UNIX_TIMESTAMP(), 'NEW','%s','%s','%s')",
array(
getMemberId(),
- bigintval(postRequestElement('payout')),
- bigintval(getRequestElement('payout')),
- postRequestElement('turl'),
- postRequestElement('alt'),
- postRequestElement('banner')
+ bigintval(postRequestParameter('payout')),
+ bigintval(getRequestParameter('payout')),
+ postRequestParameter('turl'),
+ postRequestParameter('alt'),
+ postRequestParameter('banner')
), __FILE__, __LINE__);
// Load templates
VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')",
array(
getMemberId(),
- bigintval(postRequestElement('payout')),
- bigintval(postRequestElement('account')),
- postRequestElement('bank'),
- bigintval(getRequestElement('payout')),
- postRequestElement('pass')
+ bigintval(postRequestParameter('payout')),
+ bigintval(postRequestParameter('account')),
+ postRequestParameter('bank'),
+ bigintval(getRequestParameter('payout')),
+ postRequestParameter('pass')
), __FILE__, __LINE__);
// Load templates
$content = array(
'max' => $max,
'type' => $content['type'],
- 'payout' => bigintval(getRequestElement('payout'))
+ 'payout' => bigintval(getRequestParameter('payout'))
);
// Generate banner order form
$content = array(
'max' => $max,
'type' => $content['type'],
- 'payout' => bigintval(getRequestElement('payout'))
+ 'payout' => bigintval(getRequestParameter('payout'))
);
// Generate normal form