var fUpdateStatus = function ()
{
document.getElementById("avatar_max_width_external").disabled = document.getElementById("avatar_download_external").checked;
document.getElementById("avatar_max_height_external").disabled = document.getElementById("avatar_download_external").checked;
document.getElementById("avatar_action_too_large").disabled = document.getElementById("avatar_download_external").checked;
}
addLoadEvent(fUpdateStatus);
';
}
/**
* The attachment maintenance page
*/
function template_maintenance()
{
global $context, $settings, $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_pruning'], '
';
if (!empty($context['results']))
echo '
', $context['results'], '
';
echo '
', $txt['attachment_transfer'], '
';
}
/**
* The file repair page
*/
function template_attachment_repair()
{
global $context, $txt, $scripturl;
// 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 '
';
}
}
/**
* The page that handles managing attachment paths.
*/
function template_attachment_paths()
{
global $modSettings;
if (!empty($modSettings['attachment_basedirectories']))
template_show_list('base_paths');
template_show_list('attach_paths');
}
?>