mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
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
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
Reference in New Issue
Block a user