X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-payout.php;h=fd7daa875fed076e7f64bdac46f555aca6fd27c7;hb=3bc521fc37d34c66b3483cdeef37038408f95b63;hp=50fdef04ef188dabc33b88367882409397589c43;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git diff --git a/inc/modules/member/what-payout.php b/inc/modules/member/what-payout.php index 50fdef04ef..fd7daa875f 100644 --- a/inc/modules/member/what-payout.php +++ b/inc/modules/member/what-payout.php @@ -1,7 +1,7 @@ ".$content['status'].""; + $content['status'] = '
' . $content['status'] . '
'; // Nothing entered must be secured in member/what-payputs.php ! if ($content['allow'] == 'Y') { @@ -132,7 +113,7 @@ ORDER BY // Textlink $content['target_account'] = $content['alt']; } - $content['target_bank'] = "{--CLICK_HERE--}"; + $content['target_bank'] = '{--CLICK_HERE--}'; } else { // e-currency payout request if (empty($content['target_account'])) $content['target_account'] = '---'; @@ -170,7 +151,7 @@ ORDER BY } 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 @@ -182,8 +163,8 @@ ORDER BY // 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']; } @@ -192,8 +173,8 @@ ORDER BY // Ok, he can get be paid if ((isFormSent()) && ($points <= $PAY_MAX) && ($points >= $content['min_points'])) { // Remember points in array - setRequestPostElement('payout_points', translateComma($points)); - setRequestPostElement('type' , $content['type']); + setPostRequestParameter('payout_points', translateComma($points)); + setPostRequestParameter('type' , $content['type']); // Subtract points from member's account subtractPoints('payout', getMemberId(), $points); @@ -205,11 +186,11 @@ ORDER BY 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 @@ -225,11 +206,11 @@ VALUES (%s,%s,%s, UNIX_TIMESTAMP(), 'NEW','%s','%s','%s')", 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 @@ -259,7 +240,7 @@ VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')", $content = array( 'max' => $max, 'type' => $content['type'], - 'payout' => bigintval(getRequestElement('payout')) + 'payout' => bigintval(getRequestParameter('payout')) ); // Generate banner order form @@ -269,7 +250,7 @@ VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')", $content = array( 'max' => $max, 'type' => $content['type'], - 'payout' => bigintval(getRequestElement('payout')) + 'payout' => bigintval(getRequestParameter('payout')) ); // Generate normal form