{* if the $_get['do'] is empty we are dealing with
the display of all banned IP addresses with links to unban *}
{if !$smarty.get.do}
<div class="admin_content">
<table width="100%" cellspacing="2px">
<tr class="admin_title"><td>{$lang.ban_ip}</td><td>{$lang.ban_unban}</td></tr>
{section name=ips loop=$ips}
<tr class="{cycle values="admin_row1, admin_row2"}">
<td>{$ips[ips].ip}</td>
<td><a href="{$smarty.server.SCRIPT_NAME}?do=unban&id={$ips[ips].id}">
{$lang.ban_unban}</a></td>
{/section}
</table>
</div>
{/if}
{* if the $_get['do'] == "ban" we are dealing with
an addition of a new banned ip *}
{if $smarty.get.do == "ban"}
<div class="admin_confirm">
{$confirm_message}
</div>
{/if}
{* if the $_get['do'] == "unban" we are dealing with
a removal of a banned ip *}
{if $smarty.get.do == "unban"}
<div class="admin_confirm">
{$confirm_message}
</div>
{/if}