getTotalPoints(getMemberId()), 'reload' => (getSurfbarStatsReload() * 1000) ); // Load template for "stats" page loadTemplate('surfbar_frame_stats', FALSE, $content); } elseif ((!isFullPage()) && (getRequestElement('frame') == 'textlinks')) { // Prepare content $content = array( 'reload' => (getSurfbarStatsReload() * 1000) ); // Load template for "stats" page loadTemplate('surfbar_frame_textlinks', FALSE, $content); } else { // Prepare content $content = array( 'start' => str_repeat('X', strlen(getSurfbarRestartTime())), 'autostart' => (isSurfbarAutoStartEnabled()) ? 'true' : 'false' ); // Load template for stopped surfbar loadTemplate('surfbar_stopped', FALSE, $content); } } elseif ((isGetRequestElementSet('check')) && (isGetRequestElementSet('id')) && (isGetRequestElementSet('salt'))) { // Dummy next id get determineSurfbarNextId(getRequestElement('id')); // Check reload lock and validation code if ((!ifSurfbarReloadLock(getRequestElement('id'))) && (isSurfbarValidationCodeValid(getRequestElement('id'), getRequestElement('check'), getRequestElement('salt')))) { // Lock the URL (id) down addSurfbarReloadLockById(getRequestElement('id')); // Code is valid so pay points here doSurfbarPayPoints(); // Check if reload is full if (isSurfbarReloadFull()) { // Then load waiting page redirectToSurfbarStopPage(); } // END - if // Load header to avoid a bug loadPageHeader(); } else { // Reload to stop frame! redirectToSurfbarStopPage(); } // All done, so fix notice for loadTemplateFooter() $GLOBALS['__footer_sent'] = 1; } else { // Prepare content $content = ''; // Frame "top" set? if ((!isFullPage()) && (getRequestElement('frame') == 'top')) { // Determine next id $nextId = determineSurfbarNextId(); //* DEBUG: */ exit('nextId='.$nextId); // Is there a valid id? if (isValidId($nextId)) { // Then prepare other content $content = array( 'url_id' => $nextId, 'xxx' => str_repeat('X', strlen(getSurfbarWaitingTime($nextId))), ); // Update salt (double-call lock!) and statistics updateSurfbarSaltStatistics(); } else { // Load new URL redirectToSurfbarStopPage('stop'); } } elseif ((!isFullPage()) && (getRequestElement('frame') == 'start')) { // Starter frame found so let the footer display unsetGetRequestElement('frame'); } // Load header loadPageHeader(); // Determine template name $templateName = determineSurfbarTemplateName(); // Load that template //* DEBUG: */ exit('templateName=' . $templateName . '
content=
' . print_r($content, TRUE) . '
'); loadTemplate($templateName, FALSE, $content); } // Load footer $GLOBALS['__footer_sent'] = 3; loadPageFooter(); // [EOF] ?>