From caf64254503d86dbdb81ad1aa1bc80468ed42a98 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sat, 9 Oct 2004 12:49:37 +0000 Subject: [PATCH] clear_all_cache fixed + better MLs --- htdocs/clear_all_cache.php | 6 +++--- templates/listes/admin.tpl | 4 +++- templates/listes/check.tpl | 2 ++ templates/listes/index.tpl | 5 +++-- templates/listes/listes.inc.tpl | 9 ++------- templates/listes/members.tpl | 25 ++++++++++++++++++------- templates/listes/moderate.tpl | 4 +++- templates/listes/options.tpl | 2 ++ templates/listes/soptions.tpl | 2 ++ templates/listes/trombi.tpl | 22 ++++++++++++++++------ 10 files changed, 54 insertions(+), 27 deletions(-) diff --git a/htdocs/clear_all_cache.php b/htdocs/clear_all_cache.php index 8b1867d..61060e0 100644 --- a/htdocs/clear_all_cache.php +++ b/htdocs/clear_all_cache.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: clear_all_cache.php,v 1.4 2004-10-09 10:51:49 x2000habouzit Exp $ + $Id: clear_all_cache.php,v 1.5 2004-10-09 12:49:37 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -26,8 +26,8 @@ new_admin_page('index.tpl'); $page->clear_all_cache(); $page->clear_compiled_tpl(); -$ref = $_SERVER['HTTP_REFERER']; -if(isset($ref && strpos($ref,'clear_all_cache.php')===false) { +$ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '' +if($ref && strpos($ref,'clear_all_cache.php')===false) { header("Location: {$_SERVER['HTTP_REFERER']}"); } else { header("Location: index.php"); diff --git a/templates/listes/admin.tpl b/templates/listes/admin.tpl index bb78897..dc5880d 100644 --- a/templates/listes/admin.tpl +++ b/templates/listes/admin.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: admin.tpl,v 1.7 2004-09-25 09:48:07 x2000habouzit Exp $ + $Id: admin.tpl,v 1.8 2004-10-09 12:49:38 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -39,6 +39,8 @@ Tu n'es pas administrateur de la liste, mais du site.

[listes] » +[{$smarty.request.liste}] +[trombino] » [modération] [abonnés] [options] diff --git a/templates/listes/check.tpl b/templates/listes/check.tpl index e35fac4..3c5d8ab 100644 --- a/templates/listes/check.tpl +++ b/templates/listes/check.tpl @@ -34,6 +34,8 @@

[listes] » +[{$smarty.request.liste}] +[trombino] » [modération] [abonnés] [options] diff --git a/templates/listes/index.tpl b/templates/listes/index.tpl index 2dcc9b3..7b38126 100644 --- a/templates/listes/index.tpl +++ b/templates/listes/index.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.tpl,v 1.10 2004-09-25 20:11:36 x2000habouzit Exp $ + $Id: index.tpl,v 1.11 2004-10-09 12:49:38 x2000habouzit Exp $ ***************************************************************************}

@@ -61,7 +61,8 @@ La diffusion a trois niveaux de mod

-NB : les gestionnaires d'une liste sont aussi ses modérateurs. +NB : les gestionnaires d'une liste sont aussi ses modérateurs.
+les listes avec une asterisque sont les listes dont tu es le gestionnaire.

diff --git a/templates/listes/listes.inc.tpl b/templates/listes/listes.inc.tpl index 13b6588..7700c81 100644 --- a/templates/listes/listes.inc.tpl +++ b/templates/listes/listes.inc.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: listes.inc.tpl,v 1.8 2004-09-25 16:30:26 x2000habouzit Exp $ + $Id: listes.inc.tpl,v 1.9 2004-10-09 12:49:38 x2000habouzit Exp $ ***************************************************************************} @@ -33,12 +33,7 @@ {if $liste.priv >= $min && $liste.priv <= $max|default:$min} - - -
- {$liste.list} - {if $liste.own} - [adm] - {elseif $smarty.session.perms eq admin} - [adm] - {/if} + {$liste.list}{if $liste.own} *{/if} {$liste.desc} diff --git a/templates/listes/members.tpl b/templates/listes/members.tpl index b5d7013..d8fd98d 100644 --- a/templates/listes/members.tpl +++ b/templates/listes/members.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: members.tpl,v 1.4 2004-09-25 21:04:49 x2000habouzit Exp $ + $Id: members.tpl,v 1.5 2004-10-09 12:49:38 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -28,7 +28,23 @@ {else} -[listes] +

+[listes] » +[{$smarty.request.liste}] +[trombino] » +[{$smarty.request.liste}] +[trombino] +{if $details.own || $smarty.session.perms eq admin} +» +[modération] +[abonnés] +[options] +{/if} +{perms level=admin} » +[Soptions] +[check] +{/perms} +

Liste {$smarty.request.liste} @@ -55,11 +71,6 @@
Inscription {if $details.ins}modérée{else}libre{/if}
- trombino de la liste (page longue à charger) -
{if $details.info}
diff --git a/templates/listes/moderate.tpl b/templates/listes/moderate.tpl index 798b3c0..68929c5 100644 --- a/templates/listes/moderate.tpl +++ b/templates/listes/moderate.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: moderate.tpl,v 1.9 2004-09-25 09:48:07 x2000habouzit Exp $ + $Id: moderate.tpl,v 1.10 2004-10-09 12:49:38 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -34,6 +34,8 @@

[listes] » +[{$smarty.request.liste}] +[trombino] » [modération] [abonnés] [options] diff --git a/templates/listes/options.tpl b/templates/listes/options.tpl index 0fa0300..3e31632 100644 --- a/templates/listes/options.tpl +++ b/templates/listes/options.tpl @@ -39,6 +39,8 @@ Tu n'es pas administrateur de la liste, mais du site.

[listes] » +[{$smarty.request.liste}] +[trombino] » [modération] [abonnés] [options] diff --git a/templates/listes/soptions.tpl b/templates/listes/soptions.tpl index f4a2672..5e33251 100644 --- a/templates/listes/soptions.tpl +++ b/templates/listes/soptions.tpl @@ -34,6 +34,8 @@

[listes] » +[{$smarty.request.liste}] +[trombino] » [modération] [abonnés] [options] diff --git a/templates/listes/trombi.tpl b/templates/listes/trombi.tpl index fcfd080..e78c76f 100644 --- a/templates/listes/trombi.tpl +++ b/templates/listes/trombi.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: trombi.tpl,v 1.6 2004-09-25 21:04:49 x2000habouzit Exp $ + $Id: trombi.tpl,v 1.7 2004-10-09 12:49:38 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -28,7 +28,22 @@ {else} +

[listes] + » +[{$smarty.request.liste}] +[trombino] +{if $details.own || $smarty.session.perms eq admin} + » +[modération] +[abonnés] +[options] +{/if} +{perms level=admin} » +[Soptions] +[check] +{/perms} +

Liste {$smarty.request.liste} @@ -55,11 +70,6 @@ Inscription {if $details.ins}modérée{else}libre{/if} - - - Page de la liste - -
-- 2.1.4