', sprintf($txt['maintain_done'], $context['maintenance_finished']), ' '; echo '

', $txt['maintain_optimize'], '

', $txt['maintain_optimize_info'], '

', $txt['help'], ' ', $txt['maintain_backup'], '

', $txt['maintain_backup_info'], '

'; if ($db_type == 'sqlite') echo '

'; else echo '



'; echo '
'; // Show an option to convert to UTF-8 if we're not on UTF-8 yet. if ($context['convert_utf8']) { echo '

', $txt['utf8_title'], '

', $txt['utf8_introduction'], '

', !empty($modSettings['search_index']) && $modSettings['search_index'] == 'fulltext' ? '

' . $txt['utf8_cannot_convert_fulltext'] . '

' : '', '
'; } // We might want to convert entities if we're on UTF-8. if ($context['convert_entities']) { echo '

', $txt['entity_convert_title'], '

', $txt['entity_convert_introduction'], '

'; } echo '

'; } // Template for the routine maintenance tasks. function template_maintain_routine() { global $context, $settings, $options, $txt, $scripturl, $modSettings; // If maintenance has finished tell the user. if (!empty($context['maintenance_finished'])) echo '
', sprintf($txt['maintain_done'], $context['maintenance_finished']), '
'; // Starts off with general maintenance procedures. echo '

', $txt['maintain_version'], '

', $txt['maintain_version_info'], '

', $txt['maintain_errors'], '

', $txt['maintain_errors_info'], '

', $txt['maintain_recount'], '

', $txt['maintain_recount_info'], '

', $txt['maintain_logs'], '

', $txt['maintain_logs_info'], '

', $txt['maintain_cache'], '

', $txt['maintain_cache_info'], '


'; } // Template for the member maintenance tasks. function template_maintain_members() { global $context, $settings, $options, $txt, $scripturl; // If maintenance has finished tell the user. if (!empty($context['maintenance_finished'])) echo '
', sprintf($txt['maintain_done'], $context['maintenance_finished']), '
'; echo '

', $txt['maintain_reattribute_posts'], '

', $txt['reattribute_guest_posts'], '

', $txt['help'], ' ', $txt['maintain_members'], '

', $txt['maintain_members_since1'], ' ', $txt['maintain_members_since2'], ' ', $txt['maintain_members_since3'], '

'; echo '

+ ', $txt['maintain_members_all'], '


'; } // Template for the topic maintenance tasks. function template_maintain_topics() { global $scripturl, $txt, $context, $settings, $modSettings; // If maintenance has finished tell the user. if (!empty($context['maintenance_finished'])) echo '
', sprintf($txt['maintain_done'], $context['maintenance_finished']), '
'; // Bit of javascript for showing which boards to prune in an otherwise hidden list. echo ' '; echo '

', $txt['maintain_old'], '

'; // The otherwise hidden "choose which boards to prune". echo '

', $txt['maintain_old_since_days1'], '', $txt['maintain_old_since_days2'], '




'; if (!empty($modSettings['enableStickyTopics'])) echo '


'; echo '

+ ', $txt['maintain_old_all'], '

', $txt['move_topics_maintenance'], '


'; } // Simple template for showing results of our optimization... function template_optimize() { global $context, $settings, $options, $txt, $scripturl; echo '

', $txt['maintain_optimize'], '

', $txt['database_numb_tables'], '
', $txt['database_optimize_attempt'], '
'; // List each table being optimized... foreach ($context['optimized_tables'] as $table) echo ' ', sprintf($txt['database_optimizing'], $table['name'], $table['data_freed']), '
'; // How did we go? echo '
', $context['num_tables_optimized'] == 0 ? $txt['database_already_optimized'] : $context['num_tables_optimized'] . ' ' . $txt['database_optimized']; echo '

', $txt['maintain_return'], '


'; } function template_convert_utf8() { global $context, $txt, $settings, $scripturl; echo '

', $txt['utf8_title'], '

', $txt['utf8_introduction'], '

', $txt['utf8_warning'], '
', $txt['utf8_source_charset'], ':
', $txt['utf8_database_charset'], ':
', $context['database_charset'], '
', $txt['utf8_target_charset'], ':
', $txt['utf8_utf8'], '

'; } function template_convert_entities() { global $context, $txt, $settings, $scripturl; echo '

', $txt['entity_convert_title'], '

', $txt['entity_convert_introduction'], '


'; } ?>