'; $GLOBALS['fin_smallcaps'] = ''; function avant_typo($texte) { $chercher_raccourcis = array( /* 1 */ "/<-->/", /* 2 */ "/-->/", /* 3 */ "/<--/"); $remplacer_raccourcis = array( /* 1 */ "↔", /* 2 */ "→", /* 3 */ "←"); return preg_remplace($chercher_raccourcis, $remplacer_raccourcis, $texte); } function avant_propre($texte) { $chercher_raccourcis = array( # /* 1 */ "/\{0\{/", # /* 2 */ "/\}0\}/", /* 3 */ "/\{1\{/", /* 4 */ "/\}1\}/", /* 5 */ "/\{2\{/", /* 6 */ "/\}2\}/", /* 7 */ "/\{3\{/", /* 8 */ "/\}3\}/", /* 9 */ "/\[\*/", /* 10 */ "/\*\]/"); $remplacer_raccourcis = array( # /* 1 */ "<@@SPIP_debut_intertitre_0@@>", # /* 2 */ "<@@SPIP_fin_intertitre_0@@>", /* 3 */ "<@@SPIP_debut_intertitre@@>", /* 4 */ "<@@SPIP_fin_intertitre@@>", /* 5 */ "<@@SPIP_debut_intertitre_2@@>", /* 6 */ "<@@SPIP_fin_intertitre_2@@>", /* 7 */ "<@@SPIP_debut_intertitre_3@@>", /* 8 */ "<@@SPIP_fin_intertitre_3@@>", /* 9 */ "__SPIP_debut_smallcaps__", /* 10 */ "__SPIP_fin_smallcaps__"); return preg_remplace($chercher_raccourcis, $remplacer_raccourcis, $texte); } function apres_propre($texte) { /* # Intertitre -1 (intertitre de niveau supérieur à l'intertitre usuel de spip) global $debut_intertitre_0, $fin_intertitre_0; if(!$debut_intertitre_0) $debut_intertitre_0 = "

"; if(!$fin_intertitre_0) $fin_intertitre_0 = "

"; $texte = ereg_replace('(

)?[[:space:]]*<@@SPIP_debut_intertitre_0@@>', $debut_intertitre_0, $texte); $texte = ereg_replace('<@@SPIP_fin_intertitre_0@@>[[:space:]]*(

)?', $fin_intertitre_0, $texte); */ # Intertitre de deuxième niveau global $debut_intertitre_2, $fin_intertitre_2; if(!$debut_intertitre_2) $debut_intertitre_2 = "

"; if(!$fin_intertitre_2) $fin_intertitre_2 = "

"; $texte = ereg_replace('(

)?[[:space:]]*<@@SPIP_debut_intertitre_2@@>', $debut_intertitre_2, $texte); $texte = ereg_replace('<@@SPIP_fin_intertitre_2@@>[[:space:]]*(

)?', $fin_intertitre_2, $texte); # Intertitre de troisième niveau global $debut_intertitre_3, $fin_intertitre_3; if(!$debut_intertitre_3) $debut_intertitre_3 = "
"; if(!$fin_intertitre_3) $fin_intertitre_3 = "
"; $texte = ereg_replace('(

)?[[:space:]]*<@@SPIP_debut_intertitre_3@@>', $debut_intertitre_3, $texte); $texte = ereg_replace('<@@SPIP_fin_intertitre_3@@>[[:space:]]*(

)?', $fin_intertitre_3, $texte); # Traitement des petites majuscules $texte = str_replace('__SPIP_debut_smallcaps__', $debut_smallcaps, $texte); $texte = str_replace('__SPIP_fin_smallcaps__', $fin_smallcaps, $texte); global $activer_antispam; if($activer_antispam && function_exists('anti_spam')) return anti_spam($texte); else return $texte; } # # Fonctions anti-spam # function crypter ($texte) { include_ecrire ("inc_acces.php3"); $masque = creer_pass_aleatoire(3); $texte = ereg_replace("@", "_(".$masque.")_", $texte); $s=""; for ($i=0;$i