aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-08-09 23:32:52 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-08-09 23:32:52 +0000
commit88570ae91923e251ce7189545ac4486b532023c4 (patch)
treec606a21647c9ceae5d9631d6c29e93d10606198d /phpBB/viewtopic.php
parent3ed35bfd6ff815a41c9365cac15ca67401f8c9fb (diff)
downloadforums-88570ae91923e251ce7189545ac4486b532023c4.tar
forums-88570ae91923e251ce7189545ac4486b532023c4.tar.gz
forums-88570ae91923e251ce7189545ac4486b532023c4.tar.bz2
forums-88570ae91923e251ce7189545ac4486b532023c4.tar.xz
forums-88570ae91923e251ce7189545ac4486b532023c4.zip
Moved smilies code into functions, would it be better in bbcode.php?
git-svn-id: file:///svn/phpbb/trunk@828 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 733840db0a..ec3c790763 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -26,43 +26,6 @@ include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
//
-// Start functions
-//
-function smilies_pass($message)
-{
- global $db, $board_config;
- static $smilies;
-
- if(empty($smilies))
- {
- $sql = "SELECT code, smile_url
- FROM " . SMILIES_TABLE;
- if($result = $db->sql_query($sql))
- {
- $smilies = $db->sql_fetchrowset($result);
- }
- }
-
- for($i = 0; $i < count($smilies); $i++)
- {
- $orig[] = "'([\s\.\>\
-])" . preg_quote($smilies[$i]['code']) . "([\s\.\
-])'si";
- $repl[] = '\1<img src="'. $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['smile_url'] . '">\2';
- }
-
- if($i > 0)
- {
- $message = preg_replace($orig, $repl, ' ' . $message . ' ');
- $message = substr($message, 1, -1);
- }
- return($message);
-}
-//
-// End functions
-//
-
-//
// Start initial var setup
//
if(isset($HTTP_GET_VARS[POST_TOPIC_URL]))