| version 1.17, 2006/04/20 12:44:35 |
version 1.18, 2006/05/22 10:12:07 |
| Line 110 function ezin_handle_special_tags(&$str, |
|
| Line 110 function ezin_handle_special_tags(&$str, |
|
| $pattern = array(); |
$pattern = array(); |
| $replacement = array(); |
$replacement = array(); |
| if (strpos($mask, 'f') !== false) { /* {{{ */ |
if (strpos($mask, 'f') !== false) { /* {{{ */ |
| $pattern[] = '|<flash\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<flash).)*?)</flash>|si'; |
$pattern[] = '|<flash\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<flash).){0,499}?)</flash>|si'; |
| $pattern[] = '|<flash\s+([^>\s]+)([^>]*)>((?:(?!<flash).)*?)</flash>|si'; |
$pattern[] = '|<flash\s+([^>\s]+)([^>]*)>((?:(?!<flash).){0,499}?)</flash>|si'; |
| $pattern[] = '|<flash\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<flash\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
| $pattern[] = '|<flash\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<flash\s+([^>\s]+)([^>]*)>|i'; |
| $replacement[] = '<object type="application/x-shockwave-flash" data="\\1"\\2>'."\n" |
$replacement[] = '<object type="application/x-shockwave-flash" data="\\1"\\2>'."\n" |
| Line 124 function ezin_handle_special_tags(&$str, |
|
| Line 124 function ezin_handle_special_tags(&$str, |
|
| .'<param name="movie" value="'.$repository_url.'\\1"><embed src="'.$repository_url.'\\1"\\2></object>'; |
.'<param name="movie" value="'.$repository_url.'\\1"><embed src="'.$repository_url.'\\1"\\2></object>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'i') !== false) { /* {{{ */ |
if (strpos($mask, 'i') !== false) { /* {{{ */ |
| $pattern[] = '|<image\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<image).)*?)</image>|si'; |
$pattern[] = '|<image\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<image).){0,499}?)</image>|si'; |
| $pattern[] = '|<image/\s+([^>\s]+)([^>]*)>((?:(?!<image).)*?)</image>|si'; |
$pattern[] = '|<image/\s+([^>\s]+)([^>]*)>((?:(?!<image).){0,499}?)</image>|si'; |
| $pattern[] = '|<image\s+([^>\s]+)([^>]*)>((?:(?!<image).)*?)</image>|si'; |
$pattern[] = '|<image\s+([^>\s]+)([^>]*)>((?:(?!<image).){0,499}?)</image>|si'; |
| $pattern[] = '|<image\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<image\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
| $pattern[] = '|<image/\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<image/\s+([^>\s]+)([^>]*)>|i'; |
| $pattern[] = '|<image\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<image\s+([^>\s]+)([^>]*)>|i'; |
| Line 138 function ezin_handle_special_tags(&$str, |
|
| Line 138 function ezin_handle_special_tags(&$str, |
|
| $replacement[] = '<img alt="" title="" border="0" src="'.$repository_url.'\\1"\\2>'; |
$replacement[] = '<img alt="" title="" border="0" src="'.$repository_url.'\\1"\\2>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'L') !== false) { /* {{{ */ |
if (strpos($mask, 'L') !== false) { /* {{{ */ |
| $pattern[] = '|<link\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<link).)*?)</link>|si'; |
$pattern[] = '|<link\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<link).){0,499}?)</link>|si'; |
| $pattern[] = '|<link\s+/([^>\s]*)([^>]*)>((?:(?!<link).)*?)</link>|si'; |
$pattern[] = '|<link\s+/([^>\s]*)([^>]*)>((?:(?!<link).){0,499}?)</link>|si'; |
| $pattern[] = '|<link\s+([^>\s]+)([^>]*)>((?:(?!<link).)*?)</link>|si'; |
$pattern[] = '|<link\s+([^>\s]+)([^>]*)>((?:(?!<link).){0,499}?)</link>|si'; |
| $pattern[] = '|<link\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<link\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
| $pattern[] = '|<link\s+/([^>\s]*)([^>]*)>|i'; |
$pattern[] = '|<link\s+/([^>\s]*)([^>]*)>|i'; |
| $pattern[] = '|<link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<link\s+([^>\s]+)([^>]*)>|i'; |
| Line 152 function ezin_handle_special_tags(&$str, |
|
| Line 152 function ezin_handle_special_tags(&$str, |
|
| $replacement[] = '<a href="'.$repository_url.'\\1"\\2>\\1</a>'; |
$replacement[] = '<a href="'.$repository_url.'\\1"\\2>\\1</a>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'E') !== false) { /* {{{ */ |
if (strpos($mask, 'E') !== false) { /* {{{ */ |
| $pattern[] = '|<extern-link\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<extern-link).)*?)</extern-link>|si'; |
$pattern[] = '|<extern-link\s+(\w{3,6}://[^>\s]+)([^>]*)>((?:(?!<extern-link).){0,499}?)</extern-link>|si'; |
| $pattern[] = '|<extern-link\s+/([^>\s]*)([^>]*)>((?:(?!<extern-link).)*?)</extern-link>|si'; |
$pattern[] = '|<extern-link\s+/([^>\s]*)([^>]*)>((?:(?!<extern-link).){0,499}?)</extern-link>|si'; |
| $pattern[] = '|<extern-link\s+([^>\s]+)([^>]*)>((?:(?!<extern-link).)*?)</extern-link>|si'; |
$pattern[] = '|<extern-link\s+([^>\s]+)([^>]*)>((?:(?!<extern-link).){0,499}?)</extern-link>|si'; |
| $pattern[] = '|<extern-link\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<extern-link\s+(\w{3,6}://[^>\s]+)([^>]*)>|i'; |
| $pattern[] = '|<extern-link\s+/([^>\s]*)([^>]*)>|i'; |
$pattern[] = '|<extern-link\s+/([^>\s]*)([^>]*)>|i'; |
| $pattern[] = '|<extern-link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<extern-link\s+([^>\s]+)([^>]*)>|i'; |
| Line 166 function ezin_handle_special_tags(&$str, |
|
| Line 166 function ezin_handle_special_tags(&$str, |
|
| $replacement[] = '<a target="_blank" href="http://\\1"\\2>\\1</a>'; |
$replacement[] = '<a target="_blank" href="http://\\1"\\2>\\1</a>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'R') !== false) { /* {{{ */ |
if (strpos($mask, 'R') !== false) { /* {{{ */ |
| $pattern[] = '|<repository-link\s+([^>\s]+)([^>]*)>((?:(?!<repository-link).)*?)</repository-link>|si'; |
$pattern[] = '|<repository-link\s+([^>\s]+)([^>]*)>((?:(?!<repository-link).){0,499}?)</repository-link>|si'; |
| $pattern[] = '|<repository-link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<repository-link\s+([^>\s]+)([^>]*)>|i'; |
| $replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\3</a>'; |
$replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\3</a>'; |
| $replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\1</a>'; |
$replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\1</a>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'I') !== false) { /* {{{ */ |
if (strpos($mask, 'I') !== false) { /* {{{ */ |
| $pattern[] = '|<image-link\s+([^>\s]+)([^>]*)>((?:(?!<image-link).)*?)</image-link>|si'; |
$pattern[] = '|<image-link\s+([^>\s]+)([^>]*)>((?:(?!<image-link).){0,499}?)</image-link>|si'; |
| $pattern[] = '|<image-link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<image-link\s+([^>\s]+)([^>]*)>|i'; |
| $replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\3</a>'; |
$replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\3</a>'; |
| $replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\1</a>'; |
$replacement[] = '<a target="_blank" href="'.$repository_url.'\\1"\\2>\\1</a>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'M') !== false) { /* {{{ */ |
if (strpos($mask, 'M') !== false) { /* {{{ */ |
| $pattern[] = '|<mail-link\s+([^>\s]+)([^>]*)>((?:(?!<mail-link).)*?)</mail-link>|sie'; |
$pattern[] = '|<mail-link\s+([^>\s]+)([^>]*)>((?:(?!<mail-link).){0,499}?)</mail-link>|sie'; |
| $pattern[] = '|<mail-link\s+([^>\s]+)([^>]*)>|ie'; |
$pattern[] = '|<mail-link\s+([^>\s]+)([^>]*)>|ie'; |
| //$replacement[] = '<a href="mailto:\\1"\\2>\\3</a>'; |
//$replacement[] = '<a href="mailto:\\1"\\2>\\3</a>'; |
| //$replacement[] = '<a href="mailto:\\1"\\2>\\1</a>'; |
//$replacement[] = '<a href="mailto:\\1"\\2>\\1</a>'; |
| Line 187 function ezin_handle_special_tags(&$str, |
|
| Line 187 function ezin_handle_special_tags(&$str, |
|
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'S') !== false) { /* {{{ */ |
if (strpos($mask, 'S') !== false) { /* {{{ */ |
| $sub_url = $link_file_type ? 'section.php?' : '?ezin_section_id='; |
$sub_url = $link_file_type ? 'section.php?' : '?ezin_section_id='; |
| $pattern[] = '|<section-link\s+([^>\s]+)([^>]*)>((?:(?!<section-link).)*?)</section-link>|si'; |
$pattern[] = '|<section-link\s+([^>\s]+)([^>]*)>((?:(?!<section-link).){0,499}?)</section-link>|si'; |
| $pattern[] = '|<section-link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<section-link\s+([^>\s]+)([^>]*)>|i'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'A') !== false) { /* {{{ */ |
if (strpos($mask, 'A') !== false) { /* {{{ */ |
| $sub_url = $link_file_type ? 'article.php?' : '?ezin_article_id='; |
$sub_url = $link_file_type ? 'article.php?' : '?ezin_article_id='; |
| $pattern[] = '|<article-link\s+([^>\s]+)([^>]*)>((?:(?!<article-link).)*?)</article-link>|si'; |
$pattern[] = '|<article-link\s+([^>\s]+)([^>]*)>((?:(?!<article-link).){0,499}?)</article-link>|si'; |
| $pattern[] = '|<article-link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<article-link\s+([^>\s]+)([^>]*)>|i'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
| } /* }}} */ |
} /* }}} */ |
| if (strpos($mask, 'U') !== false) { /* {{{ */ |
if (strpos($mask, 'U') !== false) { /* {{{ */ |
| $sub_url = $link_file_type ? 'author.php?' : '?ezin_author_id='; |
$sub_url = $link_file_type ? 'author.php?' : '?ezin_author_id='; |
| $pattern[] = '|<author-link\s+([^>\s]+)([^>]*)>((?:(?!<author-link).)*?)</author-link>|si'; |
$pattern[] = '|<author-link\s+([^>\s]+)([^>]*)>((?:(?!<author-link).){0,499}?)</author-link>|si'; |
| $pattern[] = '|<author-link\s+([^>\s]+)([^>]*)>|i'; |
$pattern[] = '|<author-link\s+([^>\s]+)([^>]*)>|i'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\3</a>'; |
| $replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |
$replacement[] = '<a href="'.$ezin_url.$sub_url.'\\1"\\2>\\1</a>'; |