', sprintf($txt['maintain_done'], $context['maintenance_finished']), '
';
echo '
', $txt['maintain_optimize'], '
';
// Show an option to convert to UTF-8 if we're not on UTF-8 yet.
if ($context['convert_utf8'])
{
echo '
', $txt['utf8_title'], '
';
}
// We might want to convert entities if we're on UTF-8.
if ($context['convert_entities'])
{
echo '
', $txt['entity_convert_title'], '
';
}
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_errors'], '
', $txt['maintain_recount'], '
', $txt['maintain_logs'], '
', $txt['maintain_cache'], '
';
}
// Template for the member maintenance tasks.
function template_maintain_members()
{
global $context, $settings, $options, $txt, $scripturl;
// BEGIN MOD PurgeMemberEnhancement
global $modSettings;
$context['show_coppa'] = !empty($modSettings['coppaAge']);
// END MOD PurgeMemberEnhancement
// 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'], '
';
}
// 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'], '
', $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 '
';
}
function template_convert_entities()
{
global $context, $txt, $settings, $scripturl;
echo '
', $txt['entity_convert_title'], '
', $txt['entity_convert_introduction'], '
';
}
?>