X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=surfbar.php;h=306b92190cc011d885a0b4dd523a5d05ff7028e6;hb=d6a90966963c2c4449a37f1870e5e3798c79fe00;hp=d119e1bd83ba59198cb06078d7fddaec8ff2a9fe;hpb=0fd6858b423d41e7eee9ffa3d5138d318e08cc1c;p=mailer.git diff --git a/surfbar.php b/surfbar.php index d119e1bd83..306b92190c 100644 --- a/surfbar.php +++ b/surfbar.php @@ -39,21 +39,25 @@ // Load security stuff here require('inc/libs/security_functions.php'); -// Init "action" and "what" -$GLOBALS['cache_array']['surfbar'] = array(); +// Init start time $GLOBALS['startTime'] = microtime(true); -$GLOBALS['what'] = ''; -$GLOBALS['action'] = ''; // Set module $GLOBALS['module'] = 'surfbar'; $GLOBALS['refid'] = 0; $GLOBALS['output_mode'] = 0; +$GLOBALS['header_sent'] = 3; $msg = null; // Load the required file(s) require('inc/config-global.php'); +// Is a frame active? +if (REQUEST_ISSET_GET('frame')) { + // Then we need to set header_sent to 0 + $GLOBALS['header_sent'] = 0; +} // END - if + // Is the script installed? if (!isInstalled()) { // You have to install first! @@ -70,6 +74,9 @@ if (!IS_MEMBER()) { redirectToUrl('modules.php?module=index'); } // END - if +// Initialize the surfbar +SURFBAR_INIT(); + // Handle tasks on self-maintenance SURFBAR_HANDLE_SELF_MAINTENANCE(); @@ -170,7 +177,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((REQUEST_ISSET_GET('frame')) && (in_array( 'id' => $nextId, 'check' => SURFBAR_GENERATE_VALIDATION_CODE($nextId), 'salt' => SURFBAR_GET_SALT(), - 'reward' => translateComma(SURFBAR_GET_REWARD($nextId)), + 'points' => translateComma(SURFBAR_GET_REWARD($nextId)), 'url' => SURFBAR_GET_URL($nextId), 'curr_reload' => SURFBAR_GET_USER_LOCKS(), 'max_urls' => SURFBAR_GET_TOTAL_URLS(), @@ -201,6 +208,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((REQUEST_ISSET_GET('frame')) && (in_array( } // Load footer +$GLOBALS['footer_sent'] = 3; loadIncludeOnce('inc/footer.php'); // [EOF]