{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2007 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{foreach from=$table item=ip}
<tr class="{cycle values="pair,impair"}">
<td>
- <strong>{$ip.ip}</strong><br />
- <small>{$ip.host}</small><br />
+ <strong>{$ip.ip}/{$ip.mask}</strong><br />
+ {if $ip.host}<small>{$ip.host}</small><br />{/if}
Ajoutée le {$ip.detection|date_format}
</td>
<td>
</td>
<td class="right">
<a href="admin/ipwatch/edit/{$ip.ip}">{icon name=page_edit title="Editer"}</a>
- <a href="admin/ipwatch/delete/{$ip.ip}">{icon name=delete title="Supprimer"}</a>
+ <a href="admin/ipwatch/delete/{$ip.ip}?token={xsrf_token}">{icon name=delete title="Supprimer"}</a>
</td>
</tr>
{/foreach}
{elseif $action eq "create" || $action eq "edit"}
[<a href="admin/ipwatch">Retour à la liste des IPs surveillées</a>]<br /><br />
<form method="post" action="admin/ipwatch">
+{xsrf_token_field}
<table class="tinybicol">
<tr>
<th colspan="2">Commenter une adresse IP</th>
{/if}
</tr>
<tr class="pair">
+ <td class="titre">Masque d'influence</td>
+ <td><input type="text" name="maskN" value="{$ip.mask}" /></td>
+ </tr>
+ <tr class="pair">
<td class="titre">Danger</td>
<td>
<select name="stateN">