[ Index ] |
|
Code source de e107 0.7.8 |
1 global $pref; 2 3 $parm = trim($parm); 4 $external = (($pref['links_new_window'] || strpos($parm, 'external') === 0) && substr($parm,0,1) != "#") ? " rel='external'" : ""; 5 6 if(strpos($parm,"{e_")!==FALSE){ 7 $external = ""; 8 } 9 10 if(substr($parm,0,6) == "mailto") 11 { 12 list($pre,$email) = explode(":",$parm); 13 list($p1,$p2) = explode("@",$email); 14 return "<a class='bbcode' rel='external' href='javascript:window.location=\"mai\"+\"lto:\"+\"$p1\"+\"@\"+\"$p2\";self.close();' onmouseover='window.status=\"mai\"+\"lto:\"+\"$p1\"+\"@\"+\"$p2\"; return true;' onmouseout='window.status=\"\";return true;'>".$code_text."</a>"; 15 } 16 17 if ($parm && $parm != 'external' && strpos($parm, ' ') === FALSE) 18 { 19 $parm = preg_replace('#^external.#is', '', $parm); 20 return "<a class='bbcode' href='".$tp -> toAttribute($parm)."'".$external.">".$code_text."</a>"; 21 } 22 23 else 24 { 25 return "<a class='bbcode' href='".$tp -> toAttribute($code_text)."'".$external.">".$code_text."</a>"; 26 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |