aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-04-22 19:44:00 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-04-22 19:44:00 +0000
commitfb195633021967499447451ecf7a435644846ce3 (patch)
treef7d977babce282d24b8d9e36aae50f7944fad25b /phpBB/posting.php
parent5085f051bfb2ec73a7afa951126aa6448cc2d52c (diff)
downloadforums-fb195633021967499447451ecf7a435644846ce3.tar
forums-fb195633021967499447451ecf7a435644846ce3.tar.gz
forums-fb195633021967499447451ecf7a435644846ce3.tar.bz2
forums-fb195633021967499447451ecf7a435644846ce3.tar.xz
forums-fb195633021967499447451ecf7a435644846ce3.zip
first version of attachment admin panel + some fixes (i hope i do not screw someones code with this, my appologies)
git-svn-id: file:///svn/phpbb/trunk@3926 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index a472cb3f55..d74963cc07 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -701,6 +701,7 @@ if (($submit) || ($preview) || ($refresh))
// Validate username
if (($username != '' && $user->data['user_id'] == ANONYMOUS) || ($mode == 'edit' && $post_username != ''))
{
+ include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
$userdata = new userdata();
$username = strip_tags(htmlspecialchars($username));
if (($result = $userdata->validate_username($username)) != false)
@@ -1210,6 +1211,7 @@ function topic_review($topic_id, $is_inline_review = false)
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
+ AND p.post_approved = 1
ORDER BY p.post_time DESC";
$result = $db->sql_query_limit($sql, $config['posts_per_page']);