uawdijnntqw1x1x1
IP : 216.73.217.176
Hostname : webm005.cluster127.gra.hosting.ovh.net
Kernel : Linux webm005.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
histoio
/
www
/
f41a3
/
.
/
..
/
..
/
www
/
plugins
/
auto
/
yaml
/
.
/
..
/
spipopup
/
v2.0.2
/
spipopup_fonctions.php
/
/
<?php /** * @name JavascriptPopup_fonctions * @author Piero Wbmstr <piero.wbmstr@gmail.com> */ if (!defined("_ECRIRE_INC_VERSION")) return; /** * Fonction pour transformer les liens dans la popup pour qu'ils renvoient vers l'opener et ferment la fenetre */ function popup_liens_retour($texte,$_popup='oui'){ $popup = ($_popup=='non') ? false : true; if(!$popup) return $texte; $regs = $match = array(); // pour chaque lien include_spip('inc/lien'); if (preg_match_all(_RACCOURCI_LIEN, $texte, $regs, PREG_SET_ORDER)) { foreach ($regs as $reg) { $done = false; // si le lien est de type raccourcis "art40" if (preg_match(_RACCOURCI_URL, $reg[4], $match)) { if(in_array($match[1], array('art', 'article', 'breve', 'auteur'))){ $type = ($match[1] == 'art') ? 'article' : $match[1]; $lien_nouveau = popup_liens_retour_transformer_liens("id_$type=".$match[2], 'in'); $done = true; } } // sinon if(!$done) $lien_nouveau = popup_liens_retour_transformer_liens($reg[4]); $lien = substr_replace($reg[0], $lien_nouveau, strpos($reg[0], '->')+2, strlen($reg[4])); $texte = str_replace($reg[0], $lien, $texte); } } return $texte; } function popup_liens_retour_transformer_liens($lien, $type='out'){ if(!strlen($lien)) return; if($type == 'out') { if(!substr_count($lien, 'http')) $lien = $GLOBALS['meta']['adresse_site'].'/?'.str_replace(array('?', '/'), '', $lien); $new_lien = texte_script('javascript:_goto("'.$lien.'", true, true);'); } else $new_lien = generer_url_public(POPUP_SKEL, $lien); return $new_lien; } function popup_liens_retour_transformer_liens_ajax($url=''){ if(!strlen($url)) return; $out = true; $rester_en_popup = array('article', 'auteur', 'breve'); if(!substr_count($lien, 'http')) { foreach($rester_en_popup as $cache) { if(substr_count($lien, $cache)) $out = false; else $lien = $GLOBALS['meta']['adresse_site'].'/?'.str_replace(array('?', '/'), '', $lien); } } if($out) $new_lien = texte_script('javascript:_goto("'.$lien.'", true, true);'); else $new_lien = generer_url_public(POPUP_SKEL, $lien); return $new_lien; } ?>
/home/histoio/www/f41a3/./../../www/plugins/auto/yaml/./../spipopup/v2.0.2/spipopup_fonctions.php