From b5fb565f4548aa7cfbc5812d9ca798d0daec4ff2 Mon Sep 17 00:00:00 2001 From: x2000palatin Date: Tue, 9 Nov 2004 13:59:19 +0000 Subject: [PATCH] display mail stats --- htdocs/stats/parselog.php | 4 ++-- templates/stats/parselog.tpl | 43 ++++++++++++++++++++++++++++++++++++++----- 2 files changed, 40 insertions(+), 7 deletions(-) diff --git a/htdocs/stats/parselog.php b/htdocs/stats/parselog.php index a780a14..059af2c 100644 --- a/htdocs/stats/parselog.php +++ b/htdocs/stats/parselog.php @@ -18,11 +18,11 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: parselog.php,v 1.3 2004-08-31 10:03:31 x2000habouzit Exp $ + $Id: parselog.php,v 1.4 2004-11-09 13:59:23 x2000palatin Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); -new_skinned_page("stats/parselog.tpl"); +new_skinned_page("stats/parselog.tpl",AUTH_COOKIE); $page->run(); ?> diff --git a/templates/stats/parselog.tpl b/templates/stats/parselog.tpl index 7a935ef..aaf5abf 100644 --- a/templates/stats/parselog.tpl +++ b/templates/stats/parselog.tpl @@ -17,19 +17,52 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: parselog.tpl,v 1.4 2004-10-24 14:41:17 x2000habouzit Exp $ + $Id: parselog.tpl,v 1.5 2004-11-09 13:59:19 x2000palatin Exp $ ***************************************************************************}

- Logs de polytechnique.org + Statistiques mail de polytechnique.org

+[Resultats classes par ordre des noms de domaines destinataires]
+[Resultats classes par nombre de mails achemines]
+[Resultats classes par nombre de mails retardes]
+{perms level=admin} + [Resultats bruts]
+{/perms} +

+ {dynamic} -{fetch file="/home/web/public/lastParselog" assign=bob} -{$bob|replace:" ":" "|nl2br} +{if $smarty.request.order} + + + + + + + + +{if $smarty.request.order eq "D"} + {include file="stats/lastParselogD.tpl"} +{elseif $smarty.request.order eq "R"} + {include file="stats/lastParselogR.tpl"} +{elseif $smarty.request.order eq "N"} + {include file="stats/lastParselogN.tpl"} +{/if} +
Domaine destinataireDelai moyenDelai maxiNombre de mailsMails retardes
+{/if} + +{perms level=admin} + {if $smarty.request.raw} +
+    {include file="stats/lastParselog.tpl" assign=content}
+    {$content|escape}
+    
+ {/if} +{/perms} + {/dynamic} -

{* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4