// Shall I withdraw now?
if (isPostRequestElementSet('withdraw')) {
// Okay, let's prepare...
- $curr = getMonth() - 1;
- if (strlen($curr) == 1) $curr = '0' . $curr;
+ $curr = padLeftZero(getMonth() - 1);
updateConfiguration('last_month', $curr);
displayMessage('{--ADMIN_BEG_WITHDRAW_PREPARED--}');
} // END - if
);
// Load template and add it
- $OUT .= loadTemplate('admin_list_beg_rows', true, $row);
+ $OUT .= loadTemplate('admin_list_beg_rows', TRUE, $row);
$count++;
$total += $content['beg_points'];
} // END - while
// Check if we need to display form or not with manuel withdraw
if (getLastMonth() == getMonth()) {
// Load form
- $content['withdraw_form'] = loadTemplate('admin_list_beg_form', true);
+ $content['withdraw_form'] = loadTemplate('admin_list_beg_form', TRUE);
} else {
// Display message "no manual withdraw possible"
- $content['withdraw_form'] = displayMessage('{--ADMIN_BEG_ALREADY_WITHDRAW--}', true);
+ $content['withdraw_form'] = displayMessage('{--ADMIN_BEG_ALREADY_WITHDRAW--}', TRUE);
}
// Prepare constant for timemark
if (isExtensionActive('autopurge')) {
$content['autopurge_timeout'] = generateDateTime(time() - getApInactiveSince(), 2);
} else {
- $content['autopurge_timeout'] = displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=autopurge%}', true);
+ $content['autopurge_timeout'] = displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=autopurge%}', TRUE);
}
// Load final template
- loadTemplate('admin_list_beg', false, $content);
+ loadTemplate('admin_list_beg', FALSE, $content);
} else {
// No one has joined the begging rallye...
displayMessage('{--ADMIN_BEG_NO_RALLYE--}');