diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-31 13:41:28 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-31 13:41:28 +0000 |
commit | 2bf1c5f9b027fd70a5a37e68d6fe5b6d0d41611c (patch) | |
tree | bee192b23d6668fbcf7b90e896fd91d099c37b59 /phpBB/posting.php | |
parent | da3121c0fd93ccdf26bcd0440f8f1059c7651e34 (diff) | |
download | forums-2bf1c5f9b027fd70a5a37e68d6fe5b6d0d41611c.tar forums-2bf1c5f9b027fd70a5a37e68d6fe5b6d0d41611c.tar.gz forums-2bf1c5f9b027fd70a5a37e68d6fe5b6d0d41611c.tar.bz2 forums-2bf1c5f9b027fd70a5a37e68d6fe5b6d0d41611c.tar.xz forums-2bf1c5f9b027fd70a5a37e68d6fe5b6d0d41611c.zip |
Smilies enabled ... note this is not necessarily final ...
git-svn-id: file:///svn/phpbb/trunk@2995 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 3096d6d964..9f6ba8c689 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -427,6 +427,20 @@ if (isset($post)) WHERE user_id = ' . $user->data['user_id']; $db->sql_query($sql); } + + // post counts for index, etc. + if ($mode == 'post') + { + $sql = 'UPDATE ' . CONFIG_TABLE . " + SET config_value = '" . ($config['num_topics'] + 1) . "' + WHERE config_name = 'num_topics'"; + $db->sql_query($sql); + } + + $sql = 'UPDATE ' . CONFIG_TABLE . " + SET config_value = '" . ($config['num_posts'] + 1) . "' + WHERE config_name = 'num_posts'"; + $db->sql_query($sql); } // Topic notification @@ -485,6 +499,7 @@ $match = array( '#<!\-\- m \-\-><a href="(.*?)" target="_blank">.*?</a><!\-\- m \-\->#', '#<!\-\- w \-\-><a href="http:\/\/(.*?)" target="_blank">.*?</a><!\-\- w \-\->#', '#<!\-\- l \-\-><a href="(.*?)" target="_blank">.*?</a><!\-\- l \-\->#', + '#<!\-\- s(.*?) \-\-><img src="\{SMILE_PATH\}\/.*? \/><!\-\- s\1 \-\->#', ); $replace = array( @@ -494,6 +509,7 @@ $replace = array( '\1', '\1', $server_protocol . trim($config['server_name']) . $server_port . preg_replace('/^\/?(.*?)(\/)?$/', '\1', trim($config['script_path'])) . '/\1', + '\1', ); $post_text = preg_replace($match, $replace, $post_text); |