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/univers/ecrire/action/ |
<?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. * \***************************************************************************/ /** * Gestion de l'action ajouter_lien * * @package SPIP\Core\Liens **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Action pour lier 2 objets entre eux * * L'argument attendu est `objet1-id1-objet2-id2` (type d'objet, identifiant) * tel que `mot-7-rubrique-3`. * * @uses objet_associer() * * @param null|string $arg * Clé des arguments. En absence utilise l'argument * de l'action sécurisée. * @return void */ function action_ajouter_lien_dist($arg = null) { if (is_null($arg)) { $securiser_action = charger_fonction('securiser_action', 'inc'); $arg = $securiser_action(); } $arg = explode('-', $arg); [$objet_source, $ids, $objet_lie, $idl] = $arg; include_spip('action/editer_liens'); objet_associer([$objet_source => $ids], [$objet_lie => $idl]); }