{**************************************************************************} {* *} {* Copyright (C) 2003-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} {* it under the terms of the GNU General Public License as published by *} {* the Free Software Foundation; either version 2 of the License, or *} {* (at your option) any later version. *} {* *} {* This program is distributed in the hope that it will be useful, *} {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} {* GNU General Public License for more details. *} {* *} {* You should have received a copy of the GNU General Public License *} {* along with this program; if not, write to the Free Software *} {* Foundation, Inc., *} {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} {* *} {**************************************************************************}

Gestion des IPs surveillées

{if $action eq "list"} {foreach from=$table item=ip} {/foreach}
Adresse Etat Utilisateurs
Ajouter une entrée créer{icon name=add}
{$ip.ip}/{$ip.mask}
{if $ip.host}{$ip.host}
{/if} Ajoutée le {$ip.detection|date_format}
{$ip.state} {foreach from=$ip.users item=user name=all} {if $user} {$user} {icon name=wrench title=Administrer} {icon name=information title="Logs"}{if !$smarty.foreach.all.last}
{/if} {/if} {/foreach}
{icon name=page_edit title="Editer"} {icon name=delete title="Supprimer"}
{elseif $action eq "create" || $action eq "edit"} [Retour à la liste des IPs surveillées]

{xsrf_token_field} {if $action eq "create"} {else} {foreach from=$ip.users key=i name=all item=user} {if $user} {if $i is even}{/if} {if $i is even && $smarty.foreach.all.last}{/if} {if $i is odd || $smarty.foreach.all.last}{/if} {/if} {/foreach} {/if} {if $ip.edit} {/if}
Commenter une adresse IP
Adresse IP {$ip.ip} ({$ip.host})
{$user} {icon name=wrench title="Administrer} {icon name=information title="Logs"}{if !$smarty.foreach.all.last}
{/if}
Date de détection {$ip.detection|date_format}
Masque d'influence
Danger
Description
Dernière édition par {$ip.edit} le {$ip.last|date_format}
{/if} {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}