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

', $txt['attachment_manager_browse_files'], '

'; template_show_list('file_list'); } function template_maintenance() { global $context, $settings, $options, $scripturl, $txt; echo '

', $txt['attachment_stats'], '

', $txt['attachment_total'], ':
', $context['num_attachments'], '
', $txt['attachment_manager_total_avatars'], ':
', $context['num_avatars'], '
', $txt['attachmentdir_size' . ($context['attach_multiple_dirs'] ? '_current' : '')], ':
', $context['attachment_total_size'], ' ', $txt['kilobyte'], '
', $txt['attachment_space' . ($context['attach_multiple_dirs'] ? '_current' : '')], ':
', isset($context['attachment_space']) ? $context['attachment_space'] . ' ' . $txt['kilobyte'] : $txt['attachmentdir_size_not_set'], '

', $txt['attachment_integrity_check'], '

', $txt['attachment_integrity_check_desc'], '



', $txt['attachment_pruning'], '

', $txt['attachment_remove_old'], ' ', $txt['days_word'], '
', $txt['attachment_pruning_message'], ':


', $txt['attachment_remove_size'], ' ', $txt['kilobyte'], '
', $txt['attachment_pruning_message'], ':


', $txt['attachment_manager_avatars_older'], ' ', $txt['days_word'], '
'; } function template_attachment_repair() { global $context, $txt, $scripturl, $settings; // If we've completed just let them know! if ($context['completed']) { echo '

', $txt['repair_attachments_complete'], '

', $txt['repair_attachments_complete_desc'], '

'; } // What about if no errors were even found? elseif (!$context['errors_found']) { echo '

', $txt['repair_attachments_complete'], '

', $txt['repair_attachments_no_errors'], '

'; } // Otherwise, I'm sad to say, we have a problem! else { echo '

', $txt['repair_attachments'], '

', $txt['repair_attachments_error_desc'], '

'; // Loop through each error reporting the status foreach ($context['repair_errors'] as $error => $number) { if (!empty($number)) echo '
'; } echo '

'; } } function template_attachment_paths() { global $modSettings; if (!empty($modSettings['attachment_basedirectories'])) { template_show_list('base_paths'); } template_show_list('attach_paths'); }