', $context['ban']['is_new'] ? $txt['ban_add_new'] : $txt['ban_edit'] . ' \'' . $context['ban']['name'] . '\'', '

'; if ($context['ban']['is_new']) echo '
', $txt['ban_add_notes'], '
'; echo '

', $txt['ban_reason_desc'], '

', $txt['ban_notes_desc'], '
', $txt['ban_expiration'], '
: ', $txt['ban_days'], '
', $txt['ban_restriction'], '

(?)



'; if (!empty($context['ban_suggestions'])) { echo '
', $txt['ban_triggers'], '
'; if (empty($modSettings['disableHostnameLookup'])) echo '
'; echo '
:
'; if (empty($context['ban_suggestions']['member']['id'])) echo ' '; else echo ' ', $context['ban_suggestions']['member']['link'], ' '; echo '
'; if (!empty($context['ban_suggestions']['message_ips'])) { echo '
', $txt['ips_in_messages'], ':
'; foreach ($context['ban_suggestions']['message_ips'] as $ip) echo '
', $ip, '
'; } if (!empty($context['ban_suggestions']['error_ips'])) { echo '
', $txt['ips_in_errors'], '
'; foreach ($context['ban_suggestions']['error_ips'] as $ip) echo '
', $ip, '
'; } echo '
'; } echo '
'; if (!$context['ban']['is_new'] && empty($context['ban_suggestions'])) { echo '
'; if (empty($context['ban_items'])) echo ' '; else { $alternate = true; foreach ($context['ban_items'] as $ban_item) { echo ' '; $alternate = !$alternate; } } echo '
', $txt['ban_banned_entity'], ' ', $txt['ban_hits'], ' ', $txt['ban_actions'], '
(', $txt['ban_no_triggers'], ')
'; if ($ban_item['type'] == 'ip') echo ' ', $txt['ip'], ': ', $ban_item['ip']; elseif ($ban_item['type'] == 'hostname') echo ' ', $txt['hostname'], ': ', $ban_item['hostname']; elseif ($ban_item['type'] == 'email') echo ' ', $txt['email'], ': ', $ban_item['email']; elseif ($ban_item['type'] == 'user') echo ' ', $txt['username'], ': ', $ban_item['user']['link']; echo ' ', $ban_item['hits'], ' ', $txt['ban_edit_trigger'], '

', $txt['ban_add_trigger'], '
'; } echo ' '; } function template_ban_edit_trigger() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '

', $context['ban_trigger']['is_new'] ? $txt['ban_add_trigger'] : $txt['ban_edit_trigger_title'], '

', $txt['ban_triggers'], '
', $txt['ban_on_ip'], '
'; if (empty($modSettings['disableHostnameLookup'])) echo '
', $txt['ban_on_hostname'], '
'; echo '
', $txt['ban_on_email'], '
', $txt['ban_on_username'], '
'; } ?>