clear_all_cache fixed + better MLs
authorx2000habouzit <x2000habouzit>
Sat, 9 Oct 2004 12:49:37 +0000 (12:49 +0000)
committerx2000habouzit <x2000habouzit>
Sat, 9 Oct 2004 12:49:37 +0000 (12:49 +0000)
htdocs/clear_all_cache.php
templates/listes/admin.tpl
templates/listes/check.tpl
templates/listes/index.tpl
templates/listes/listes.inc.tpl
templates/listes/members.tpl
templates/listes/moderate.tpl
templates/listes/options.tpl
templates/listes/soptions.tpl
templates/listes/trombi.tpl

index 8b1867d..61060e0 100644 (file)
@@ -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");
index bb78897..dc5880d 100644 (file)
@@ -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.
 
 <p>
 [<a href='index.php'>listes</a>] »
+[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
 [<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
 [abonnés]
 [<a href='options.php?liste={$smarty.get.liste}'>options</a>]
index e35fac4..3c5d8ab 100644 (file)
@@ -34,6 +34,8 @@
 
 <p>
 [<a href='index.php'>listes</a>] »
+[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
 [<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
 [<a href='admin.php?liste={$smarty.get.liste}'>abonnés</a>]
 [<a href='options.php?liste={$smarty.get.liste}'>options</a>]
index 2dcc9b3..7b38126 100644 (file)
@@ -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 $
  ***************************************************************************}
 
 <div class="rubrique">
@@ -61,7 +61,8 @@ La diffusion a trois niveaux de mod
 </ul>
 
 <p class='smaller'>
-NB : les gestionnaires d'une liste sont aussi ses modérateurs.  
+NB : les gestionnaires d'une liste sont aussi ses modérateurs.<br />
+les listes avec une asterisque sont les listes dont tu es le gestionnaire.
 </p>
 
 <div class='ssrubrique'>
index 13b6588..7700c81 100644 (file)
@@ -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 $
  ***************************************************************************}
 
 <table class='bicol' cellpadding='0' cellspacing='0'>
   {if $liste.priv >= $min && $liste.priv <= $max|default:$min}
   <tr class='{cycle values="impair,pair"}'>
     <td>
-      <a href='members.php?liste={$liste.list}'>{$liste.list}</a>
-      {if $liste.own}
-      [<a href='admin.php?liste={$liste.list}'>adm</a>]
-      {elseif $smarty.session.perms eq admin}
-      [<span class='erreur'><a href='admin.php?liste={$liste.list}'>adm</a></span>]
-      {/if}
+      <a href='members.php?liste={$liste.list}'>{$liste.list}{if $liste.own}&nbsp;*{/if}</a> 
     </td>
     <td>{$liste.desc}</td>
     <td class='center'>
index b5d7013..d8fd98d 100644 (file)
@@ -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}
 
 {else}
 
-[<a href='index.php'>listes</a>]
+<p>
+[<a href='index.php'>listes</a>] »
+[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
+[{$smarty.request.liste}]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>]
+{if $details.own || $smarty.session.perms eq admin}
+[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
+[<a href='admin.php?liste={$smarty.get.liste}'>abonnés</a>]
+[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
+{/if}
+{perms level=admin} »
+[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
+[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
+{/perms}
+</p>
 
 <div class="rubrique">
   Liste {$smarty.request.liste}
     <td class='titre'> Inscription </td>
     <td>{if $details.ins}modérée{else}libre{/if}</td>
   </tr>
-  <tr>
-    <td colspan='2' class='center'>
-      <a href='trombi.php?liste={$smarty.request.liste}'>trombino de la liste</a> (page longue à charger)
-    </td>
-  </tr>
 </table>
 {if $details.info}
 <br />
index 798b3c0..68929c5 100644 (file)
@@ -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 @@
 
 <p>
 [<a href='index.php'>listes</a>] »
+[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
 [modération]
 [<a href='admin.php?liste={$smarty.get.liste}'>abonnés</a>]
 [<a href='options.php?liste={$smarty.get.liste}'>options</a>]
index 0fa0300..3e31632 100644 (file)
@@ -39,6 +39,8 @@ Tu n'es pas administrateur de la liste, mais du site.
 
 <p>
 [<a href='index.php'>listes</a>] »
+[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
 [<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
 [<a href='admin.php?liste={$smarty.get.liste}'>abonnés</a>]
 [options]
index f4a2672..5e33251 100644 (file)
@@ -34,6 +34,8 @@
 
 <p>
 [<a href='index.php'>listes</a>] »
+[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
+[<a href='trombi.php?liste={$smarty.request.liste}'>trombino</a>] »
 [<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
 [<a href='admin.php?liste={$smarty.get.liste}'>abonnés</a>]
 [<a href='options.php?liste={$smarty.get.liste}'>options</a>]
index fcfd080..e78c76f 100644 (file)
@@ -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}
 
 {else}
 
+<p>
 [<a href='index.php'>listes</a>]
+ »
+[<a href='members.php?liste={$smarty.request.liste}'>{$smarty.request.liste}</a>]
+[trombino]
+{if $details.own || $smarty.session.perms eq admin}
+ »
+[<a href='moderate.php?liste={$smarty.get.liste}'>modération</a>]
+[<a href='admin.php?liste={$smarty.get.liste}'>abonnés</a>]
+[<a href='options.php?liste={$smarty.get.liste}'>options</a>]
+{/if}
+{perms level=admin} »
+[<a href='soptions.php?liste={$smarty.get.liste}'>Soptions</a>]
+[<a href='check.php?liste={$smarty.get.liste}'>check</a>]
+{/perms}
+</p>
 
 <div class="rubrique">
   Liste {$smarty.request.liste}
     <td class='titre'> Inscription </td>
     <td>{if $details.ins}modérée{else}libre{/if}</td>
   </tr>
-  <tr>
-    <td colspan='2' class='center'>
-      <a href='members.php?liste={$smarty.request.liste}'>Page de la liste</a>
-    </td>
-  </tr>    
 </table>
 
 <div class='rubrique'>