'; foreach ($context['columns'] as $column) { if ($column['selected']) echo ' ', $column['label'], '  '; elseif ($column['sortable']) echo ' ', $column['link'], ' '; else echo ' ', $column['label'], ' '; } echo ' '; while ($ban = $context['get_ban']()) { echo ' '; } echo '
', $txt[139], ': ', $context['page_index'], '
', $ban['name'], ' ', $ban['notes'], ' ', $ban['reason'], ' ', $ban['added'], ' ', $ban['expires'], ' ', $ban['num_entries'], '  ', $txt[17], '
', $txt[139], ': ', $context['page_index'], '
'; } function template_ban_edit() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; if (!$context['ban']['is_new'] && empty($context['ban_suggestions'])) { echo ' '; } echo '
', $context['ban']['is_new'] ? $txt['ban_add_new'] : $txt['ban_edit'] . ' \'' . $context['ban']['name'] . '\'', '
'; if (!empty($context['ban_suggestions'])) { echo ' '; } echo '
', $txt['ban_name'], ':
', $txt['ban_expiration'], ':   
  : ', $txt['ban_days'], '
  
', $txt['ban_reason'], ':
', $txt['ban_reason_desc'], '
', $txt['ban_notes'], ':
', $txt['ban_notes_desc'], '
', $txt['ban_restriction'], ':   
  
    (?)
   
   
', $txt['ban_triggers'], ': '; if (empty($modSettings['disableHostnameLookup'])) echo ' '; echo ' '; if (!empty($context['ban_suggestions']['message_ips'])) { echo ' '; foreach ($context['ban_suggestions']['message_ips'] as $ip) echo ' '; } if (!empty($context['ban_suggestions']['error_ips'])) { echo ' '; foreach ($context['ban_suggestions']['error_ips'] as $ip) echo ' '; } echo '
', $txt['ban_on_ip'], ':
', $txt['ban_on_hostname'], ':
', $txt['ban_on_email'], ':
', $txt['ban_on_username'], ':
'; if (empty($context['ban_suggestions']['member']['id'])) echo '  ', $txt['find_members'], ''; else echo ' ', $context['ban_suggestions']['member']['link'], ' '; echo '

', $txt['ips_in_messages'], ':
', $ip, '

', $txt['ips_in_errors'], ':
', $ip, '
', $context['ban']['is_new'] ? '
' . $txt['ban_add_notes'] : '', '
'; if (empty($context['ban_items'])) echo ' '; else { foreach ($context['ban_items'] as $ban_item) { echo ' '; } } echo '
', $txt['ban_banned_entity'], ' ', $txt['ban_hits'], ' ', $txt['ban_actions'], '
(', $txt['ban_no_triggers'], ')
'; if ($ban_item['type'] == 'ip') echo '', $txt[512], ': ', $ban_item['ip']; elseif ($ban_item['type'] == 'hostname') echo '', $txt['hostname'], ': ', $ban_item['hostname']; elseif ($ban_item['type'] == 'email') echo '', $txt[69], ': ', $ban_item['email']; elseif ($ban_item['type'] == 'user') echo '', $txt[35], ': ', $ban_item['user']['link']; echo ' ', $ban_item['hits'], ' ', $txt['ban_edit_trigger'], '
'; } 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'], '
'; if (empty($modSettings['disableHostnameLookup'])) echo ' '; echo '
', $txt['ban_on_ip'], ':
', $txt['ban_on_hostname'], ':
', $txt['ban_on_email'], ':
', $txt['ban_on_username'], ':
', $txt['find_members'], '

'; } function template_browse_triggers() { global $context, $settings, $options, $scripturl, $txt; echo '
'; if (empty($context['ban_items'])) echo ' '; else { foreach ($context['ban_items'] as $ban_item) { echo ' '; } } echo '
', $txt['ban_trigger_browse'], '
', $context['selected_entity'] == 'ip' ? '> ' : '', $txt[512], ' | ', $context['selected_entity'] == 'hostname' ? '> ' : '', $txt['hostname'], ' | ', $context['selected_entity'] == 'email' ? '> ' : '', $txt[69], ' | ', $context['selected_entity'] == 'member' ? '> ' : '', $txt[35], '
', $txt['ban_banned_entity'], ' ', $txt['ban_name'], ' ', $txt['ban_hits'], '
(', $txt['ban_no_triggers'], ')
', $ban_item['entity'], ' ', $ban_item['group']['link'], ' ', $ban_item['hits'], '
', $txt[139], ': ', $context['page_index'], '
'; } function template_ban_log() { global $context, $settings, $options, $scripturl, $txt; echo '
'; if (empty($context['log_entries'])) echo ' '; else { foreach ($context['log_entries'] as $log) echo ' '; echo ' '; } echo '
', $txt[139], ': ', $context['page_index'], '
' . $txt['ban_log_ip'], $context['sort'] == 'ip' ? ' ' : '', ' ' . $txt['ban_log_email'], $context['sort'] == 'email' ? ' ' : '', ' ' . $txt['ban_log_member'], $context['sort'] == 'name' ? ' ' : '', ' ' . $txt['ban_log_date'], $context['sort'] == 'date' ? ' ' : '', '
(', $txt['ban_log_no_entries'], ')
', $log['ip'], ' ', $log['email'], ' ', empty($log['member']['id']) ? '' . $txt[470] . '' : $log['member']['link'], ' ', $log['date'], '
'; } ?>