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

', $txt['maintain_optimize'], '

', $txt['maintain_optimize_info'], '

'; // Show an option to convert the body column of the post table to MEDIUMTEXT or TEXT if (isset($context['convert_to'])) echo '

', $txt[$context['convert_to'] . '_title'], '

', $txt['mediumtext_introduction'], '

', $context['convert_to_suggest'] ? '

' . $txt['convert_to_suggest_text'] . '

' : '', '
'; // 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, $txt, $scripturl; // Starts off with general maintenance procedures. echo '
'; // If maintenance has finished tell the user. if (!empty($context['maintenance_finished'])) echo '
', sprintf($txt['maintain_done'], $context['maintenance_finished']), '
'; echo '

', $txt['maintain_version'], '

', $txt['maintain_version_info'], '

', $txt['maintain_errors'], '

', $txt['maintain_errors_info'], '

', $txt['maintain_recount'], '

', $txt['maintain_recount_info'], '

', $txt['maintain_rebuild_settings'], '

', $txt['maintain_rebuild_settings_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, $txt, $scripturl; echo '
'; // 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['maintain_members'], '

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

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

', $txt['maintain_recountposts'], '

', $txt['maintain_recountposts_info'], '

'; } /** * 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'], '





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

', $txt['maintain_old_drafts'], '

', $txt['maintain_old_drafts_days'], ' ', $txt['days_word'], '

', $txt['move_topics_maintenance'], '

', $txt['move_topics_older_than'], ' ', $txt['manageposts_days'], ' (', $txt['move_zero_all'], ')



'; } /** * Simple template for showing results of our optimization... */ function template_optimize() { global $context, $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'], '

'; } /** * Template for converting entities to UTF-8 characters */ function template_convert_entities() { global $context, $txt, $scripturl; echo '

', $txt['entity_convert_title'], '

', $txt['entity_convert_introduction'], '

'; } /** * Template for converting posts to UTF-8. */ function template_convert_msgbody() { global $context, $txt, $scripturl; echo '

', $txt[$context['convert_to'] . '_title'], '

', $txt['body_checking_introduction'], '

'; if (!empty($context['exceeding_messages'])) { echo '

', $txt['exceeding_messages'], '

'; if (!empty($context['exceeding_messages_morethan'])) echo '

', $context['exceeding_messages_morethan'], '

'; } else echo '

', $txt['convert_to_text'], '

'; echo '

'; } ?>