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/godchild/plugins-dist/revisions/formulaires/ |
<?php /***************************************************************************\ * SPIP, Système de publication pour l'internet * * * * Copyright © avec tendresse depuis 2001 * * Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribué sous licence GNU/GPL. * \***************************************************************************/ if (!defined('_ECRIRE_INC_VERSION')) { return; } function formulaires_configurer_revisions_objets_charger_dist() { include_spip('inc/config'); $objets = lire_config('objets_versions/', []); $valeurs = [ 'objets_versions' => $objets, ]; return $valeurs; } function formulaires_configurer_revisions_objets_traiter_dist() { include_spip('inc/config'); ecrire_config('objets_versions/', _request('objets_versions') ?? []); return ['message_ok' => _T('config_info_enregistree')]; } function test_objet_versionable($desc) { if ( !$desc['editable'] or !isset($desc['champs_versionnes']) or !(is_countable($desc['champs_versionnes']) ? count($desc['champs_versionnes']) : 0) ) { return ''; } // regarder si il y a un vrai champ versionne, pas seulement une jointure foreach ($desc['champs_versionnes'] as $c) { if (strncmp($c, 'jointure_', 9) != 0) { return ' '; } } return ''; }