From a7d51789708a84288c986325e5fbee7c7a836474 Mon Sep 17 00:00:00 2001
From: "cedric@yterium.com" <>
Date: Wed, 10 Jun 2009 21:40:38 +0000
Subject: [PATCH] mise a jour des plugins du core pour fonctionner avec la
nouvelle navigation du core introduite en
http://zone.spip.org/trac/spip/changeset/14090 Le plugin skins/ reprend a son
compte l'exemple de skins/basic/
---
plugin.xml | 41 +++++++++++++++++++++--------------------
stats_autoriser.php | 9 ++++++++-
2 files changed, 29 insertions(+), 21 deletions(-)
diff --git a/plugin.xml b/plugin.xml
index bcfb98c..7f3550b 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -46,11 +46,11 @@
-
- images/statistiques-48.png
- icone_statistiques_visites
+
+ images/statistique-16.png
+ icone_statistiques_visites
+ statistiques_visites
-
null
icone_statistiques_visites
@@ -66,22 +66,23 @@
onglet_repartition_lang
statistiques_lang
-
-
- images/referers-24.gif
- titre_liens_entrants
-
-
- null
- date_aujourdhui
- statistiques_referers
-
-
- null
- date_hier
- statistiques_referers
- jour=veille
-
+
+
+ images/referer-16.png
+ titre_liens_entrants
+ statistiques_referers
+
+
+ null
+ date_aujourdhui
+ statistiques_referers
+
+
+ null
+ date_hier
+ statistiques_referers
+ jour=veille
+
diff --git a/stats_autoriser.php b/stats_autoriser.php
index 06ed921..11dbbc7 100644
--- a/stats_autoriser.php
+++ b/stats_autoriser.php
@@ -3,6 +3,14 @@
function stats_autoriser(){}
+function autoriser_statistiques_bouton_dist($faire, $type='', $id=0, $qui = NULL, $opt = NULL){
+ return $GLOBALS['visiteur_session']['statut']=='0minirezo';
+}
+function autoriser_referers_bouton_dist($faire, $type='', $id=0, $qui = NULL, $opt = NULL){
+ return $GLOBALS['visiteur_session']['statut']=='0minirezo';
+}
+
+
// Lire les stats ?
// = tous les admins
// http://doc.spip.org/@autoriser_voirstats_dist
@@ -30,5 +38,4 @@ function autoriser_statistiques_referers_bouton_dist($faire, $type, $id, $qui, $
return autoriser('voirstats', $type, $id, $qui, $opt);
}
-
?>