Changeset 7472893 in github for program/include/main.inc
- Timestamp:
- Dec 6, 2010 6:13:55 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 0e11940
- Parents:
- 9e81b55
- File:
-
- 1 edited
-
program/include/main.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
raf3c045e r7472893 1648 1648 1649 1649 /** 1650 * Replaces TinyMCE's emoticon images with plain-text representation 1651 * 1652 * @param string HTML content 1653 * @return string HTML content 1654 */ 1655 function rcmail_replace_emoticons($html) 1656 { 1657 $emoticons = array( 1658 '8-)' => 'smiley-cool', 1659 ':-#' => 'smiley-foot-in-mouth', 1660 ':-*' => 'smiley-kiss', 1661 ':-X' => 'smiley-sealed', 1662 ':-P' => 'smiley-tongue-out', 1663 ':-@' => 'smiley-yell', 1664 ":'(" => 'smiley-cry', 1665 ':-(' => 'smiley-frown', 1666 ':-D' => 'smiley-laughing', 1667 ':-)' => 'smiley-smile', 1668 ':-/' => 'smiley-undecided', 1669 ':-X' => 'smiley-embarassed', 1670 '0:-)' => 'smiley-innocent', 1671 ':-|' => 'smiley-money-mouth', 1672 ':-0' => 'smiley-surprised', 1673 ';-)' => 'smiley-wink', 1674 ); 1675 1676 foreach ($emoticons as $idx => $file) { 1677 // <img title="Cry" src="http://.../program/js/tiny_mce/plugins/emotions/img/smiley-cry.gif" border="0" alt="Cry" /> 1678 $search[] = '/<img title="[a-z ]+" src="https?:\/\/[a-z0-9_.\/-]+\/tiny_mce\/plugins\/emotions\/img\/'.$file.'.gif"[^>]+\/>/i'; 1679 $replace[] = $idx; 1680 } 1681 1682 return preg_replace($search, $replace, $html); 1683 } 1684 1685 1686 /** 1650 1687 * Check if working in SSL mode 1651 1688 * … … 1882 1919 } 1883 1920 } 1921
Note: See TracChangeset
for help on using the changeset viewer.
