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/histoire/plugins-dist/svp/genie/ |
<?php /** * Gestion du génie svp_actualiser_depots * * @plugin SVP pour SPIP * @license GPL * @package SPIP\SVP\Genie */ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Actualise tous les dépots * * @genie svp_actualiser_depots * * @uses svp_actualiser_depot() * @param int $last * Timestamp de la dernière exécution de cette tâche * @return int * Positif : la tâche a été effectuée */ function genie_svp_actualiser_depots_dist($last) { include_spip('inc/svp_depoter_distant'); // On recupere en base de donnees tous les depots a mettre a jour if ($resultats = sql_allfetsel('id_depot', 'spip_depots')) { foreach ($resultats as $depot) { svp_actualiser_depot($depot['id_depot']); spip_log('ACTION ACTUALISER DEPOT (automatique) : id_depot = ' . $depot['id_depot'], 'svp_actions.' . _LOG_INFO); } } return 1; }