X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=surfbar.php;h=4318b54590197f28601e3495f540b27c9057aa3c;hp=f6092ad36a3d29eb08fb748ab62be17f01a169ee;hb=61b0b762e6128eca6d43cc9165571709af8af8ce;hpb=2ec9007220186d54f84846871ed1f7638c29baf7 diff --git a/surfbar.php b/surfbar.php index f6092ad36a..4318b54590 100644 --- a/surfbar.php +++ b/surfbar.php @@ -39,19 +39,24 @@ // Load security stuff here require('inc/libs/security_functions.php'); -// Init surfbar cache and start time -$GLOBALS['cache_array']['surfbar'] = array(); +// Init start time $GLOBALS['startTime'] = microtime(true); // Set module $GLOBALS['module'] = 'surfbar'; $GLOBALS['refid'] = 0; $GLOBALS['output_mode'] = 0; -$msg = null; +$GLOBALS['header_sent'] = 3; // 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! @@ -68,6 +73,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(); @@ -125,7 +133,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((REQUEST_ISSET_GET('frame')) && (in_array( // Load template for stopped surfbar LOAD_TEMPLATE('surfbar_stopped', false, $content); } -} elseif ((REQUEST_ISSET_GET(('check'))) && (REQUEST_ISSET_GET('id')) && (REQUEST_ISSET_GET(('salt')))) { +} elseif ((REQUEST_ISSET_GET('check')) && (REQUEST_ISSET_GET('id')) && (REQUEST_ISSET_GET('salt'))) { // Dummy next id get SURFBAR_DETERMINE_NEXT_ID(REQUEST_GET('id')); @@ -168,7 +176,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(), @@ -199,6 +207,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((REQUEST_ISSET_GET('frame')) && (in_array( } // Load footer +$GLOBALS['footer_sent'] = 3; loadIncludeOnce('inc/footer.php'); // [EOF]