X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=surfbar.php;h=14e27b6559daa1e6e9d3e003eb7c16d047e753f8;hb=fbcdb4e1f8ae0591ad9165b2db18b3c354c29a5b;hp=8760cb332c89782a603ed99265ca87d2c5e5a712;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/surfbar.php b/surfbar.php index 8760cb332c..14e27b6559 100644 --- a/surfbar.php +++ b/surfbar.php @@ -44,7 +44,7 @@ $GLOBALS['startTime'] = microtime(true); // Set module $GLOBALS['module'] = 'surfbar'; -$GLOBALS['output_mode'] = 0; +$GLOBALS['output_mode'] = '0'; $GLOBALS['header_sent'] = 3; // Load the required file(s) @@ -56,7 +56,7 @@ setContentType('text/html'); // 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! @@ -122,7 +122,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestElementSet('frame')) && (in_a 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( @@ -204,7 +204,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestElementSet('frame')) && (in_a '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(),