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/enfants/plugins-dist/sites/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 saisie_url_syndic($url_syndic, $name = 'url_syndic', $id = 'url_syndic') { $res = ''; if (strlen($url_syndic) < 8) { $url_syndic = ''; } // cas d'une liste de flux detectee par feedfinder : menu if (preg_match(',^select: (.+),', $url_syndic, $regs)) { $feeds = explode(' ', $regs[1]); $res .= "<select name='$name' id='$id'>\n"; foreach ($feeds as $feed) { $res .= '<option value="' . entites_html($feed) . '">' . $feed . "</option>\n"; } $res .= "</select>\n"; } else { $res .= "<input type='text' class='text' name='$name' id='$id' placeholder='https://' value=\"$url_syndic\" size='40' />\n"; } return $res; }