mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
- automatically sync topic_reported when deleting a post [Bug #2152]
- retrieve forum information in report.php - don't update deleted topics - proper permission check for "admin or moderator" - allow changing poster while ip dropdown contains a different user [Bug #2190] - fixed a typo in acp_styles [Bug #2188] - allow inserting BBCode at the first position of the textarea [Bug #2078] - allow the style name to be different than the style path git-svn-id: file:///svn/phpbb/trunk@6063 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -57,10 +57,16 @@ function mcp_post_details($id, $mode, $action)
|
||||
case 'chgposter':
|
||||
case 'chgposter_ip':
|
||||
|
||||
$username = request_var('username', '', true);
|
||||
$new_user_id = request_var('u', 0);
|
||||
|
||||
$sql_where = ($new_user_id) ? 'user_id = ' . $new_user_id : "username = '" . $db->sql_escape($username) . "'";
|
||||
if ($action == 'chgposter')
|
||||
{
|
||||
$username = request_var('username', '', true);
|
||||
$sql_where = "username = '" . $db->sql_escape($username) . "'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$new_user_id = request_var('u', 0);
|
||||
$sql_where = 'user_id = ' . $new_user_id;
|
||||
}
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . USERS_TABLE . '
|
||||
|
Reference in New Issue
Block a user