'; } 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, $modSettings; echo '

', $txt['attachment_stats'], '

', $txt['attachment_total'], ':
', $context['num_attachments'], '
', $txt['attachment_manager_total_avatars'], ':
', $context['num_avatars'], '
', $txt['attachmentdir_size'], ':
', $context['attachment_total_size'], ' ', $txt['kilobyte'], '
', $txt['attach_current_dir'], ':
', $modSettings['attachmentUploadDir'][$modSettings['currentAttachmentUploadDir']], '
', $txt['attachmentdir_size_current'], ':
', $context['attachment_current_size'], ' ', $txt['kilobyte'], '
', $txt['attachment_space'], ':
', isset($context['attachment_space']) ? $context['attachment_space'] . ' ' . $txt['kilobyte'] : $txt['attachmentdir_size_not_set'], '
', $txt['attachmentdir_files_current'], ':
', $context['attachment_current_files'], '
', $txt['attachment_files'], ':
', isset($context['attachment_files']) ? $context['attachment_files'] : $txt['attachmentdir_files_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'], '
'; echo '

', $txt['attachment_transfer'], '

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

', $txt['attachment_transfer_desc'], '


', $txt['attachment_transfer_from'], '
', $txt['attachment_transfer_auto'], '
', $txt['attachment_transfer_to'], '
'; if (!empty($modSettings['attachmentDirFileLimit'])) echo '
', $txt['attachment_transfer_empty'], '
'; echo '



'; } 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'); } ?>