// Take fees and factor
function WERNIS_TAKE_FEE ($points, $mode) {
// Payout or withdraw are allowed modes!
- //* DEBUG: */ outputHtml("mode={$mode},points={$points}<br />");
+ //* DEBUG: */ debugOutput('mode='.$mode.',points='.$points);
if (!in_array($mode, array('payout', 'withdraw'))) {
// Log error and abort
logDebugMessage(__FUNCTION__, __LINE__, "userid={getMemberId()},mode={$mode},points={$points}");
}
// Return value
- //* DEBUG: */ outputHtml("mode={$mode},points={$points}<br />");
+ //* DEBUG: */ debugOutput('mode='.$mode.',points='.$points);
return $points;
}