diff options
| author | the_systech <the_systech@users.sourceforge.net> | 2001-08-08 19:42:45 +0000 |
|---|---|---|
| committer | the_systech <the_systech@users.sourceforge.net> | 2001-08-08 19:42:45 +0000 |
| commit | 15f471cb5a6e3385d4f6cb9e72bcd26eb959b200 (patch) | |
| tree | 7fb88608601c337c6d0484254d3c573e5fe610c1 /phpBB/posting.php | |
| parent | eb081dcb0fbae5aa8989424937699129654ab7a1 (diff) | |
| download | forums-15f471cb5a6e3385d4f6cb9e72bcd26eb959b200.tar forums-15f471cb5a6e3385d4f6cb9e72bcd26eb959b200.tar.gz forums-15f471cb5a6e3385d4f6cb9e72bcd26eb959b200.tar.bz2 forums-15f471cb5a6e3385d4f6cb9e72bcd26eb959b200.tar.xz forums-15f471cb5a6e3385d4f6cb9e72bcd26eb959b200.zip | |
Changes encorporate smily processing...
git-svn-id: file:///svn/phpbb/trunk@818 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index f8d5e24209..e0ca2d55d9 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -445,7 +445,6 @@ if( ($mode == "newtopic" || $mode == "reply") && $topic_status == TOPIC_UNLOCKED else if($mode == "newtopic") { $topic_notify = ($HTTP_POST_VARS['notify']) ? 1 : 0; - $sql = "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_notify, topic_status, topic_type) VALUES ('$subject', " . $userdata['user_id'] . ", " . $topic_time . ", $forum_id, $topic_notify, " . TOPIC_UNLOCKED . ", $topic_type)"; @@ -461,8 +460,9 @@ if( ($mode == "newtopic" || $mode == "reply") && $topic_status == TOPIC_UNLOCKED if($mode == "reply" || ( $mode == "newtopic" && $result ) ) { - $sql = "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, bbcode_uid) - VALUES ($new_topic_id, $forum_id, " . $userdata['user_id'] . ", '$username', $topic_time, '$user_ip', '$bbcode_uid')"; + $enable_smiles = ($smile_on) ? 1 : 0; + $sql = "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, bbcode_uid, enable_smiles) + VALUES ($new_topic_id, $forum_id, " . $userdata['user_id'] . ", '$username', $topic_time, '$user_ip', '$bbcode_uid', $enable_smiles)"; if($mode == "reply") { $result = $db->sql_query($sql, BEGIN_TRANSACTION); @@ -831,9 +831,9 @@ else if( $mode == "editpost" && $topic_status == TOPIC_UNLOCKED ) { $edited_sql = ""; } - + $enable_smiles = ($smile_on) ? 1 : 0; $sql = "UPDATE " . POSTS_TABLE . " - SET bbcode_uid = '$bbcode_uid'" . $edited_sql . " + SET bbcode_uid = '$bbcode_uid', enable_smiles=$enable_smiles" . $edited_sql . " WHERE post_id = $post_id"; if($db->sql_query($sql, BEGIN_TRANSACTION)) @@ -1273,4 +1273,4 @@ $template->pparse("body"); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?>
\ No newline at end of file +?> |
