From: x2000habouzit Date: Fri, 8 Oct 2004 12:04:04 +0000 (+0000) Subject: postfix new things X-Git-Tag: xorg/old~1418 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ba5e2a53ad2a3d1bc71f33e1bcc4133520f98b79;p=platal.git postfix new things --- diff --git a/htdocs/admin/postfix_delayed.php b/htdocs/admin/postfix_delayed.php new file mode 100644 index 0000000..b715fcb --- /dev/null +++ b/htdocs/admin/postfix_delayed.php @@ -0,0 +1,46 @@ +assign('res', $_REQUEST["crc"]." verra tous ses mails supprimés !"); +} else if (isset($_REQUEST["ok"])) { + mysql_query("UPDATE postfix_mailseen SET release = 'ok' WHERE crc = '".$_REQUEST["crc"]."'"); + $page->assign('res', $_REQUEST["crc"]." a le droit de passer !"); +} + +$sql = "SELECT crc, nb, update_time, create_time, + FIND_IN_SET('del', release) AS del, + FIND_IN_SET('ok', release) AS ok + FROM postfix_mailseen + WHERE nb >= 30 + ORDER BY release != ''"; + +$page->mysql_assign($sql,'mails'); + +$page->run(); +?> diff --git a/htdocs/admin/postfix_whitelist.php b/htdocs/admin/postfix_whitelist.php new file mode 100644 index 0000000..8c8373c --- /dev/null +++ b/htdocs/admin/postfix_whitelist.php @@ -0,0 +1,33 @@ +assign('title', 'Whitelist de postfix'); +$editor->hide_id(); + +$editor->describe('email','email',true); + +$editor->run(); +?> diff --git a/templates/admin/index.tpl b/templates/admin/index.tpl index 683947b..08d9f4c 100644 --- a/templates/admin/index.tpl +++ b/templates/admin/index.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.tpl,v 1.7 2004-09-25 16:30:26 x2000habouzit Exp $ + $Id: index.tpl,v 1.8 2004-10-08 12:04:05 x2000habouzit Exp $ ***************************************************************************} @@ -28,8 +28,8 @@ Postfix : Blacklist   |   - Permissions   |   - Retards + Whitelist masspam   |   + Retardés par masspam Statistiques : diff --git a/templates/admin/postfix_delayed.tpl b/templates/admin/postfix_delayed.tpl new file mode 100644 index 0000000..cdc832e --- /dev/null +++ b/templates/admin/postfix_delayed.tpl @@ -0,0 +1,57 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 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 * + *************************************************************************** + $Id: postfix_delayed.tpl,v 1.1 2004-10-08 12:04:05 x2000habouzit Exp $ + ***************************************************************************} + + +

{$res}

+ +
+ Mails en attente de décision +
+ + + + + + + + + + + {foreach from=$mails item=m} + + + + + + + + + {/foreach} +
ChecksumNb mails reçusDernier reçuPremier reçuEtatActions
{$m.crc}{$m.nb}{$m.update_time}{$m.creation_time}{if $m.del}Poubelle{elseif $m.ok}Autorisé{else}En attente{/if} +
+ + + +
+
+ +{* vim:set et sw=2 sts=2 sws=2: *}