Changeset 1155 in ExiteCMS for trunk/includes/core_functions.php
- Timestamp:
- 12/02/07 14:54:55 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/core_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core_functions.php
r1154 r1155 527 527 $text = preg_replace('#\[center\](.*?)\[/center\]#si', '<center>\1</center>', $text); 528 528 529 $text = preg_replace('#\[youtube\](.*?)\[/youtube\]#si', '<object width="425" height="355"><param name="movie" value="\1"></param><param name="wmode" value="transparent"></param><embed src="\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>', $text);529 $text = preg_replace('#\[youtube\](.*?)\[/youtube\]#si', '<object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/\1"><param name="movie" value="http://www.youtube.com/v/\1"></param><param name="wmode" value="transparent"></param></object>', $text); 530 530 531 531 // correct illegal [url=] BBcode
Note: See TracChangeset
for help on using the changeset viewer.
