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/infant/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 auth * * @package SPIP\Core\Authentification **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Retour d'authentification pour les SSO */ function action_auth_dist() { $securiser_action = charger_fonction('securiser_action', 'inc'); $arg = $securiser_action(); if (!preg_match(',^(\w+)[/](.+)$,', $arg, $r)) { spip_log("action_auth_dist $arg pas compris"); } else { $auth_methode = $r[1]; $login = $r[2]; include_spip('inc/auth'); $res = auth_terminer_identifier_login($auth_methode, $login); if (is_string($res)) { // Erreur $redirect = _request('redirect'); $redirect = parametre_url($redirect, 'var_erreur', $res, '&'); include_spip('inc/headers'); redirige_par_entete($redirect); } // sinon on loge l'auteur identifie, et on finit (redirection automatique) auth_loger($res); } }