', 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 { if ($context['safe_mode_enable']) echo '
', $txt['safe_mode_enabled'], '
'; else echo '
', $txt[$context['suggested_method']], $context['use_maintenance'] != 0 ? '
' . $txt['enable_maintenance' . $context['use_maintenance']] : '', '
'; echo '



'; } echo '
'; // 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'] . '

' : '', '
'; } // 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; // 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_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; 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['help'], ' ', $txt['maintain_members'], '

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

'; echo '

+ ', $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'], '




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


'; echo '

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

', $txt['maintain_old_drafts'], '

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

', $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'], '

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

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

', $txt['body_checking_introduction'], '

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

', $txt['exceeding_messages'], '

  • ', implode('
  • ', $context['exceeding_messages']), '
'; if (!empty($context['exceeding_messages_morethan'])) echo '

', $context['exceeding_messages_morethan'], '

'; } else echo '

', $txt['convert_to_text'], '

'; echo '

'; } ?>