diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-11-05 04:50:55 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-11-05 04:50:55 +0000 |
commit | bc6e36ef4f79132029f4f27f592872311724097b (patch) | |
tree | 612cf91829c5dba2d33dd2ad8bbd81cbf04d0a3b /phpBB/posting.php | |
parent | 5b73ad4cbd8c83f1fd5cc5713836e15caff8a045 (diff) | |
download | forums-bc6e36ef4f79132029f4f27f592872311724097b.tar forums-bc6e36ef4f79132029f4f27f592872311724097b.tar.gz forums-bc6e36ef4f79132029f4f27f592872311724097b.tar.bz2 forums-bc6e36ef4f79132029f4f27f592872311724097b.tar.xz forums-bc6e36ef4f79132029f4f27f592872311724097b.zip |
viewforum queries update + a couple of bugfixes.
git-svn-id: file:///svn/phpbb/trunk@3007 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 34890ee7eb..5f4f321baf 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -19,6 +19,10 @@ * ***************************************************************************/ +// Grab all data +extract($_GET); +extract($_POST); + define('IN_PHPBB', true); $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); @@ -31,10 +35,6 @@ $user->setup(); $auth->acl($user->data); // End session management -// Grab all data -extract($_GET); -extract($_POST); - // Was cancel pressed? If so then redirect to the appropriate page if ( !empty($cancel) ) { @@ -398,7 +398,7 @@ if (isset($post)) 'forum_last_post_id' => intval($post_id), 'forum_last_post_time' => $current_time, 'forum_last_poster_id' => intval($user->data['user_id']), - 'forum_last_poster_name'=> ($username != '') ? $username : '', + 'forum_last_poster_name'=> ($user->data['user_id'] == ANONYMOUS) ? $username : $user->data['username'], ); $sql = 'UPDATE ' . FORUMS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $forum_sql) . ', forum_posts = forum_posts + 1' . $forum_topics_sql . ' WHERE forum_id = ' . intval($forum_id); $db->sql_query($sql); |