diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2008-12-17 21:00:03 -0500 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2008-12-17 21:00:03 -0500 |
| commit | c895d2f41b0737f8a2799d36beca087e6b642f05 (patch) | |
| tree | f6243c7c270bbec4f5e0d01547b2c6048cea200f /includes/parsers.php | |
| parent | e3ffdb84d705dd1a1000fa91a49cc6c58fc58e05 (diff) | |
| download | fourisland-c895d2f41b0737f8a2799d36beca087e6b642f05.tar.gz fourisland-c895d2f41b0737f8a2799d36beca087e6b642f05.tar.bz2 fourisland-c895d2f41b0737f8a2799d36beca087e6b642f05.zip | |
Added an emoticon parsing system
I decided that, because I use the :) emoticon so often, I might as well replace it with an actual image. I've added a Smiley parsing system to complement the BBCode parsing one.
Diffstat (limited to 'includes/parsers.php')
| -rwxr-xr-x | includes/parsers.php | 36 |
1 files changed, 36 insertions, 0 deletions
| diff --git a/includes/parsers.php b/includes/parsers.php new file mode 100755 index 0000000..5e984c2 --- /dev/null +++ b/includes/parsers.php | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | <?php | ||
| 2 | /* | ||
| 3 | 444444444 | ||
| 4 | 4::::::::4 | ||
| 5 | 4:::::::::4 | ||
| 6 | 4::::44::::4 | ||
| 7 | 4::::4 4::::4 Four Island | ||
| 8 | 4::::4 4::::4 | ||
| 9 | 4::::4 4::::4 Written and maintained by Starla Insigna | ||
| 10 | 4::::444444::::444 | ||
| 11 | 4::::::::::::::::4 includes/parsers.php | ||
| 12 | 4444444444:::::444 | ||
| 13 | 4::::4 Please do not use, reproduce or steal the | ||
| 14 | 4::::4 contents of this file without explicit | ||
| 15 | 4::::4 permission from Hatkirby. | ||
| 16 | 44::::::44 | ||
| 17 | 4::::::::4 | ||
| 18 | 4444444444 | ||
| 19 | */ | ||
| 20 | |||
| 21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | ||
| 22 | |||
| 23 | require('headerproc.php'); | ||
| 24 | |||
| 25 | include('includes/bbcode.php'); | ||
| 26 | include('includes/smilies.php'); | ||
| 27 | |||
| 28 | function parseText($text) | ||
| 29 | { | ||
| 30 | $text = parseBBCode($text); | ||
| 31 | $text = parseSmilies($text); | ||
| 32 | |||
| 33 | return $text; | ||
| 34 | } | ||
| 35 | |||
| 36 | ?> | ||
