\\\\){2})*)('),", "$1\\\\$2", $surcharge_surligne);
$surcharge_surligne = str_replace("\\", "\\\\", $surcharge_surligne);
if ($GLOBALS['meta']['charset'] == 'utf-8') {
include_spip('inc/charsets');
if (!is_utf8($surcharge_surligne)) {
$surcharge_surligne = utf8_encode($surcharge_surligne);
}
}
$surcharge_surligne = preg_replace(',\*$,', '', trim($surcharge_surligne)); # supprimer un * final
}
foreach ($surlignejs_engines as $engine) {
if ($surcharge_surligne || (preg_match($engine[0], $ref) && preg_match($engine[1], $ref))) {
//good referrer found or var_recherche is not null
include_spip('inc/filtres');
$script = "
";
// on l'insere juste avant , sinon tout en bas
if (is_null($l = strpos($page, ''))) {
$l = strlen($page);
}
$page = substr_replace($page, $script, $l, 0);
break;
}
}
return $page;
}