} // END - if
// Init the content array and points
-$content = array(); $points = false;
+$content = array(); $points = FALSE;
// Is the mode set (withdraw or payout)
if ((!isGetRequestElementSet('do')) || (getRequestElement('do') == 'choose')) {
);
// Load row template
- $content['rows'] .= loadTemplate('member_wernis_mode_list_row', true, $rowContent);
+ $content['rows'] .= loadTemplate('member_wernis_mode_list_row', TRUE, $rowContent);
} // END - while
// Free result
} else {
// All is fine here so do the withdraw
$success = WERNIS_EXECUTE_WITHDRAW(postRequestElement('wernis_userid'), md5(postRequestElement('wds66_password')), postRequestElement('amount'));
- if ($success === true) {
+ if ($success === TRUE) {
// Add it to this amount
initReferralSystem();
addPointsThroughReferralSystem('wernis_withdraw', getMemberId(), bigintval(postRequestElement('amount')));
} else {
// All is fine here so do the withdraw
$success = WERNIS_EXECUTE_PAYOUT(postRequestElement('wernis_userid'), postRequestElement('amount'));
- if ($success === true) {
+ if ($success === TRUE) {
// Sub points and ignore return status
subtractPoints('wernis_payout', getMemberId(), postRequestElement('amount'));
$mode = sprintf("member_wernis_mode_%s", getRequestElement('do'));
// Load the template
-loadTemplate($mode, false, $content);
+loadTemplate($mode, FALSE, $content);
// [EOF]
?>