Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/liberlog/plugins/auto/svp_stats/ |
<?php if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Insertion dans le pipeline `affiche_gauche`. * * Affiche un bloc d'infos sur les statistiques d'utilisation des plugins et leur actualisation. * * @param array $flux Flux d'entrée * * @return array Flux mis à jour */ function svpstats_affiche_gauche(array $flux) : array { if ($flux['args']['exec'] == 'depots') { if ( (sql_select('id_depot', 'spip_depots')) and ($texte = recuperer_fond('prive/squelettes/inclure/info_stats', [])) ) { if ($pos = strpos($flux['data'], '<!--affiche_gauche_milieu-->')) { $flux['data'] = substr_replace($flux['data'], $texte, $pos, 0); } else { $flux['data'] .= $texte; } } } return $flux; }