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/france/plugins-dist/compagnon/ |
<?php /** * Fonctions pour les squelettes * * @package SPIP\Compagnon\Fonctions **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Retourne un court texte de compréhension * aléatoirement parmi une liste. * * @example * [(#VAL|ok_aleatoire)] * * @return string * Le texte traduit. **/ function filtre_ok_aleatoire_dist() { $alea = [ 'compagnon:ok', 'compagnon:ok_jai_compris', 'compagnon:ok_bien', 'compagnon:ok_merci', 'compagnon:ok_parfait', ]; return _T($alea[array_rand($alea)]); }