', $txt['smf159b'], ' '; if ($context['is_installed']) echo ' ', $txt['package_installed_warning1'], '

', $txt['package_installed_warning2'], '

'; echo ' ', $txt['package_installed_warning3'], '
'; // Do errors exist in the install? If so light them up like a christmas tree. if ($context['has_failure']) { echo '
!!
', $txt['package_will_fail_title'], '
', $txt['package_will_fail_warning'], '
'; } if (isset($context['package_readme'])) echo '
', $txt['package_install_readme'], '
', $context['package_readme'], '

'; echo '
'; } // Are we effectively ready to install? if (!$context['ftp_needed'] && !empty($context['actions'])) { echo ' '; } // If we need ftp information then demand it! elseif ($context['ftp_needed']) { echo ' '; } echo '
', $context['uninstalling'] ? $txt['package_uninstall_actions'] : $txt['package42'], '
', $context['uninstalling'] ? $txt['package_uninstall_actions'] : $txt['package_install_actions'], ' "', $context['package_name'], '":
'; if (empty($context['actions'])) echo ' ', $txt['package45'], ''; else { echo ' ', $txt['package44'], ' '; $alternate = true; foreach ($context['actions'] as $i => $packageaction) { echo ' '; $alternate = !$alternate; } echo '
', $txt['package_install_type'], ' ', $txt['package_install_action'], ' ', $txt['package_install_desc'], '
', $i + 1, '. ', $packageaction['type'], ' ', $packageaction['action'], ' ', $packageaction['description'], '
'; echo '
', $txt['package_ftp_necessary'], '
', $txt['package_ftp_why']; if (!empty($context['package_ftp']['error'])) echo '
', $context['package_ftp']['error'], '
'; echo '
'; } function template_extract_package() { global $context, $settings, $options, $txt, $scripturl; if (!empty($context['redirect_url'])) { echo ' '; } echo ' '; if (empty($context['redirect_url'])) { echo ' '; } else echo ' '; echo '
', $context['uninstalling'] ? $txt['smf198b'] : $txt['package37'], '
', $txt['package_installed_extract'], '
', $txt['package_installed_redirecting'], '
'; // If we are going to redirect we have a slightly different agenda. if (!empty($context['redirect_url'])) { echo ' ', $context['redirect_text'], '

', $txt['package_installed_redirect_go_now'], ' | ', $txt['package_installed_redirect_cancel'], ''; } elseif ($context['uninstalling']) echo ' ', $txt['package_uninstall_done']; elseif ($context['install_finished']) { if ($context['extract_type'] == 'avatar') echo ' ', $txt['package39']; elseif ($context['extract_type'] == 'language') echo ' ', $txt['package41']; else echo ' ', $txt['package_installed_done']; } else echo ' ', $txt['package45']; echo '
'; } function template_list() { global $context, $settings, $options, $txt, $scripturl; echo '
', $txt['smf180'], '
', $txt['smf181'], ' ', $context['filename'], ':
    '; foreach ($context['files'] as $fileinfo) echo '
  1. ', $fileinfo['filename'], ' (', $fileinfo['size'], ' ', $txt['package_bytes'], ')
  2. '; echo '
[ ', $txt[193], ' ]
'; } function template_examine() { global $context, $settings, $options, $txt, $scripturl; echo '
', $txt['package_examine_file'], '
', $txt['package_file_contents'], ' ', $context['filename'], ':
', $context['filedata'], '
[ ', $txt['package14'], ' ]
'; } function template_view_installed() { global $context, $settings, $options, $txt, $scripturl; echo '
' . $txt['package6'] . '
'; if (empty($context['installed_mods'])) { echo '
', $txt['smf189b'], '
'; } else { echo ' '; foreach ($context['installed_mods'] as $i => $file) echo ' '; echo '
', $txt['pacman2'], ' ', $txt['pacman3'], '
', ++$i, '. ', $file['name'], ' ', $file['version'], ' [ ', $txt['smf198b'], ' ]

[ ', $txt['smf198d'], ' ]'; } echo '
'; } function template_browse() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
', $txt[119], ' ', $txt['packages_latest'], '
', $txt['packages_latest_fetch'], '
'; if (empty($modSettings['disable_smf_js'])) echo ' '; echo ' '; // Gotta love IE4, and its hatefulness... if ($context['browser']['is_ie4']) echo ' '; else echo ' '; echo '
'; if (!empty($context['available_mods'])) { echo ' '; } if (!empty($context['available_avatars'])) { echo ' '; } if (!empty($context['available_languages'])) { echo ' '; } if (!empty($context['available_other'])) { echo ' '; } if (empty($context['available_mods']) && empty($context['available_avatars']) && empty($context['available_languages']) && empty($context['available_other'])) echo ' '; echo '
', $txt['package3'], '
', $txt['package7'], '
'; foreach ($context['available_mods'] as $i => $package) { echo ' '; } echo '
', $txt['pacman2'], ' ', $txt['pacman3'], '
', ++$i, '. ', $package['name'], ' ', $package['version']; if ($package['is_installed'] && !$package['is_newer']) echo ' '; echo ' '; if ($package['can_uninstall']) echo ' [ ', $txt['smf198b'], ' ]'; elseif ($package['can_upgrade']) echo ' [ ', $txt['package_upgrade'], ' ]'; elseif ($package['can_install']) echo ' [ ', $txt['package11'], ' ]'; echo ' [ ', $txt['package14'], ' ] [ ', $txt['package52'], ' ]
', $txt['package8'], '
'; foreach ($context['available_avatars'] as $i => $package) { echo ' '; } echo '
', $txt['pacman2'], ' ', $txt['pacman3'], '
', ++$i, '. ', $package['name'], ' ', $package['version']; if ($package['is_installed'] && !$package['is_newer']) echo ' '; echo ' '; if ($package['can_uninstall']) echo ' [ ', $txt['smf198b'], ' ]'; elseif ($package['can_upgrade']) echo ' [ ', $txt['package_upgrade'], ' ]'; elseif ($package['can_install']) echo ' [ ', $txt['package11'], ' ]'; echo ' [ ', $txt['package14'], ' ] [ ', $txt['package52'], ' ]
' . $txt['package9'] . '
'; foreach ($context['available_languages'] as $i => $package) { echo ' '; } echo '
' . $txt['pacman2'] . ' ' . $txt['pacman3'] . '
' . ++$i . '. ' . $package['name'] . ' ' . $package['version']; if ($package['is_installed'] && !$package['is_newer']) echo ' '; echo ' '; if ($package['can_uninstall']) echo ' [ ', $txt['smf198b'], ' ]'; elseif ($package['can_upgrade']) echo ' [ ', $txt['package_upgrade'], ' ]'; elseif ($package['can_install']) echo ' [ ', $txt['package11'], ' ]'; echo ' [ ', $txt['package14'], ' ] [ ', $txt['package52'], ' ]
' . $txt['package10'] . '
'; foreach ($context['available_other'] as $i => $package) { echo ' '; } echo '
' . $txt['pacman2'] . ' ' . $txt['pacman3'] . '
' . ++$i . '. ' . $package['name'] . ' ' . $package['version']; if ($package['is_installed'] && !$package['is_newer']) echo ' '; echo ' '; if ($package['can_uninstall']) echo ' [ ', $txt['smf198b'], ' ]'; elseif ($package['can_upgrade']) echo ' [ ', $txt['package_upgrade'], ' ]'; elseif ($package['can_install']) echo ' [ ', $txt['package11'], ' ]'; echo ' [ ', $txt['package14'], ' ] [ ', $txt['package52'], ' ]
', $txt['smf189'], '
', $txt['package_installed_key'], ' ', $txt['package_installed_current'], ' ', $txt['package_installed_old'], '
'; } function template_servers() { global $context, $settings, $options, $txt, $scripturl; echo ' '; if ($context['package_download_broken']) { echo ' '; } echo '
', $txt['package5'], '
', $txt['package_ftp_necessary'], '
', $txt['package_ftp_why_download']; if (!empty($context['package_ftp']['error'])) echo '
', $context['package_ftp']['error'], '
'; echo '
' . $txt['smf183'] . '
'; foreach ($context['servers'] as $server) echo ' '; echo '
' . $server['name'] . ' [ ' . $txt['smf184'] . ' ] [ ' . $txt['smf138'] . ' ]

' . $txt['smf185'] . '
' . $txt['smf186'] . ':
' . $txt['smf187'] . ':

' . $txt['package_upload_title'] . '
' . $txt['package_upload_select'] . ':
'; } function template_package_confirm() { global $context, $settings, $options, $txt, $scripturl; echo '
' . $context['page_title'] . '
', $context['confirm_message'], '

[ ', $txt['package_confirm_proceed'], ' ] [ ', $txt['package_confirm_go_back'], ' ]
'; } function template_package_list() { global $context, $settings, $options, $txt, $scripturl, $func; echo '
' . $context['page_title'] . '
'; // No packages, as yet. if (empty($context['package_list'])) echo '
  • ', $txt['smf189'], '
'; // List out the packages... else { foreach ($context['package_list'] as $package) { // A title. if ($package['is_title']) echo ' ', $package['name'], '

'; // A heading. elseif ($package['is_heading']) echo ' ', $package['name'], '

'; // Textual message. Could be empty just for a blank line... elseif ($package['is_text']) echo ' ', $package['name'], '

'; // This is supposed to be a rule.. elseif ($package['is_line']) echo '
'; // A remote link. elseif ($package['is_remote']) echo ' ', $package['link'], '

'; // Otherwise, it's a package. else { // 1. Some mod [ Download ]. echo ' ', $package['count'], '. ', $package['can_install'] ? '' . $package['name'] . ' [ ' . $txt['smf190'] . ' ]': $package['name']; // Mark as installed and current? if ($package['is_installed'] && !$package['is_newer']) echo '', $package['is_current'] ? $txt['package_installed_current'] : $txt['package_installed_old'], ''; echo '
'; // Show the mod type? if ($package['type'] != '') echo ' ', $txt['package24'], ':  ', $func['ucwords']($func['strtolower']($package['type'])), '
'; // Show the version number? if ($package['version'] != '') echo ' ', $txt['pacman3'], ':  ', $package['version'], '
'; // How 'bout the author? if (!empty($package['author']) && $package['author']['name'] != '' && isset($package['author']['link'])) echo ' ', $txt['pacman4'], ':  ', $package['author']['link'], '
'; // The homepage.... if ($package['author']['website']['link'] != '') echo ' ', $txt['pacman6'], ':  ', $package['author']['website']['link'], '
'; // Desciption: bleh bleh! // Location of file: http://someplace/. echo ' ', $txt['pacman10'], ':  ', $package['href'], '
', $txt['pacman9'], ':  ', $package['description'], '

'; } } echo '
'; } echo '
', $txt['package_installed_key'], ' ', $txt['package_installed_current'], ' ', $txt['package_installed_old'], '
'; } function template_downloaded() { global $context, $settings, $options, $txt, $scripturl; echo '
' . $context['page_title'] . '
' . (!isset($context['package_server']) ? $txt['package_uploaded_successfully'] : $txt['smf193']) . '

' . $context['package']['name'] . ' ' . $context['package']['install']['link'] . ' ' . $context['package']['list_files']['link'] . '

[ ' . $txt[193] . ' ]
'; } function template_install_options() { global $context, $settings, $options, $txt, $scripturl; echo '
', $txt['package_install_options'], '
', $txt['package_install_options_ftp_why'], '


', $txt['package_cleanperms_title'], '
', $txt['package_cleanperms_desc'], '
', $txt['package_cleanperms_type'], ':




'; } function template_ftp_required() { global $context, $settings, $options, $txt, $scripturl; echo '
', $txt['package_ftp_necessary'], '
', $txt['package_ftp_why']; if (!empty($context['package_ftp']['error'])) echo '
', $context['package_ftp']['error'], '
'; echo '
'; } ?>