0) { // Then prepare other content $content = array( 'id' => $nextId, 'check' => SURFBAR_GENERATE_VALIDATION_CODE($nextId), 'salt' => $SURFBAR_DATA['salt'], 'reward' => TRANSLATE_COMMA(SURFBAR_GET_REWARD($nextId)), 'url' => SURFBAR_GET_URL($nextId), 'curr_reload' => SURFBAR_GET_USER_RELOAD_LOCK(), 'max_urls' => SURFBAR_GET_TOTAL_URLS(), 'reload' => SURFBAR_GET_RELOAD_TIME($nextId) ); // Update salt (double-call lock!) SURFBAR_UPDATE_SALT(); } else { // Change template name $templateName = "surfbar_stopped"; } } else { // Load header in frameset mode $isFrameset = true; } // Load header require_once(PATH."inc/header.php"); // Load that template LOAD_TEMPLATE($templateName, false, $content); } // Load footer require_once(PATH."inc/footer.php"); } else { // You have to configure first! LOAD_URL("install.php"); } // Close any open database connection here SQL_CLOSE($link, __FILE__, __LINE__); // Really all done here... ;-) ?>