// Set module
$GLOBALS['module'] = 'surfbar';
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = '0';
$GLOBALS['header_sent'] = 3;
// Load the required file(s)
// Is a frame active?
if (isGetRequestElementSet('frame')) {
// Then we need to set header_sent to 0
- $GLOBALS['header_sent'] = 0;
+ $GLOBALS['header_sent'] = '0';
} // END - if
// Only logged in users may use this surfbar!
unsetGetRequestElement('frame');
} elseif ((isGetRequestElementSet('frame')) && (getRequestElement('frame') == 'stats')) {
// Get total points amount
- $points = countSumTotalData(getUserId(), 'user_points', 'points') - countSumTotalData(getUserId(), 'user_data', 'used_points');
+ $points = countSumTotalData(getMemberId(), 'user_points', 'points') - countSumTotalData(getMemberId(), 'user_data', 'used_points');
// Prepare content
$content = array(
'id' => $nextId,
'check' => SURFBAR_GENERATE_VALIDATION_CODE($nextId),
'salt' => SURFBAR_GET_SALT(),
- 'points' => translateComma(SURFBAR_GET_REWARD($nextId)),
+ 'reward' => translateComma(SURFBAR_GET_REWARD($nextId)),
'url' => SURFBAR_GET_URL($nextId),
'curr_reload' => SURFBAR_GET_USER_LOCKS(),
'max_urls' => SURFBAR_GET_TOTAL_URLS(),