mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
User delete now deletes user from groups
git-svn-id: file:///svn/phpbb/trunk@894 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -625,6 +625,12 @@ else if($HTTP_POST_VARS[submit] && $HTTP_POST_VARS['user_id'])
|
||||
WHERE user_id = $user_id";
|
||||
if( $result = $db->sql_query($sql) )
|
||||
{
|
||||
$sql = "DELETE FROM " . USER_GROUPS_TABLE . "
|
||||
WHERE user_id = $user_id";
|
||||
if( $result = $db->sql_query($sql) )
|
||||
{
|
||||
|
||||
include('page_header_admin.'. $phpEx);
|
||||
$template->set_filenames(array(
|
||||
"body" => "admin/admin_message_body.tpl")
|
||||
);
|
||||
@@ -637,17 +643,26 @@ else if($HTTP_POST_VARS[submit] && $HTTP_POST_VARS['user_id'])
|
||||
}
|
||||
else
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Could not update users table", "", __LINE__, __FILE__, $sql);
|
||||
$error = TRUE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Could not update topics table", "", __LINE__, __FILE__, $sql);
|
||||
$error = TRUE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Could not update posts table", "", __LINE__, __FILE__, $sql);
|
||||
$error = TRUE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = TRUE;
|
||||
}
|
||||
if( $error == TRUE )
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Could not update user table", "", __LINE__, __FILE__, $sql);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -657,6 +672,7 @@ else if($HTTP_POST_VARS[submit] && $HTTP_POST_VARS['user_id'])
|
||||
WHERE user_id = $user_id";
|
||||
if($result = $db->sql_query($sql))
|
||||
{
|
||||
include('page_header_admin.' . $phpEx);
|
||||
$template->set_filenames(array(
|
||||
"body" => "admin/admin_message_body.tpl")
|
||||
);
|
||||
|
Reference in New Issue
Block a user