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); } - ?>