You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
524 B

<?php
include_spip('inc/autoriser');
if (
autoriser('voirstats')
or (
$id_auteur = intval(#ENV{id,0})
and autoriser('ecrire', '', '', $id_auteur)
and [(#ENV{id,0}|securiser_acces{#ENV{cle}, voirstats, #ENV{op}, #ENV{args}}|?{1,0})]
)
) {
?>
#CACHE{0}
#HTTP_HEADER{Content-Type: text/javascript; charset=#CHARSET}
[(#ENV{export,visites}|transmettre_statistiques_json{#ENV{unite},#ENV{duree},#ENV{objet},#ENV{id_objet}})]
<?php
} else {
include_spip('inc/minipres');
echo minipres();
}?>