This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case 'bbcode_htm': | |
return array( | |
'#<!\-\- e \-\-><a href="mailto:(.*?)">.*?</a><!\-\- e \-\->#', | |
'#<!\-\- l \-\-><a (?:class="[\w-]+" )?href="(.*?)(?:(&|\?)sid=[0-9a-f]{32})?" onclick="window\.open\(this\.href\);return false;">.*?</a><!\-\- l \-\->#', | |
'#<!\-\- ([mw]) \-\-><a (?:class="[\w-]+" )?href="(.*?)" onclick="window\.open\(this\.href\);return false;">.*?</a><!\-\- \1 \-\->#', | |
'#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#', | |
'#<!\-\- .*? \-\->#s', | |
'#<.*?>#s', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$html = if ($type == MAGIC_URL_EMAIL) | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url'>$text</a><!-- $tag -->$append"; | |
} | |
else | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url' onclick='window.open(this.href);return false;'>$text</a><!-- $tag -->$append"; | |
} | |
return $html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$html = if ($type == MAGIC_URL_EMAIL) | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url'>$text</a><!-- $tag -->$append"; | |
} | |
else | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url' onclick='window.open(this.href);return false;'>$text</a><!-- $tag -->$append"; | |