mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
475dd0cd30
commit
6d29810297
1 changed files with 27 additions and 11 deletions
|
@ -625,29 +625,44 @@ else if($HTTP_POST_VARS[submit] && $HTTP_POST_VARS['user_id'])
|
||||||
WHERE user_id = $user_id";
|
WHERE user_id = $user_id";
|
||||||
if( $result = $db->sql_query($sql) )
|
if( $result = $db->sql_query($sql) )
|
||||||
{
|
{
|
||||||
$template->set_filenames(array(
|
$sql = "DELETE FROM " . USER_GROUPS_TABLE . "
|
||||||
"body" => "admin/admin_message_body.tpl")
|
WHERE user_id = $user_id";
|
||||||
);
|
if( $result = $db->sql_query($sql) )
|
||||||
|
{
|
||||||
|
|
||||||
$template->assign_vars(array(
|
include('page_header_admin.'. $phpEx);
|
||||||
"MESSAGE_TITLE" => $lang['User'] . $lang['User_admin'],
|
$template->set_filenames(array(
|
||||||
"MESSAGE_TEXT" => $lang['User_deleted'])
|
"body" => "admin/admin_message_body.tpl")
|
||||||
);
|
);
|
||||||
$template->pparse("body");
|
|
||||||
|
$template->assign_vars(array(
|
||||||
|
"MESSAGE_TITLE" => $lang['User'] . $lang['User_admin'],
|
||||||
|
"MESSAGE_TEXT" => $lang['User_deleted'])
|
||||||
|
);
|
||||||
|
$template->pparse("body");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$error = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, "Could not update users table", "", __LINE__, __FILE__, $sql);
|
$error = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, "Could not update topics table", "", __LINE__, __FILE__, $sql);
|
$error = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, "Could not update posts table", "", __LINE__, __FILE__, $sql);
|
$error = TRUE;
|
||||||
|
}
|
||||||
|
if( $error == TRUE )
|
||||||
|
{
|
||||||
|
message_die(GENERAL_ERROR, "Could not update user table", "", __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -657,6 +672,7 @@ else if($HTTP_POST_VARS[submit] && $HTTP_POST_VARS['user_id'])
|
||||||
WHERE user_id = $user_id";
|
WHERE user_id = $user_id";
|
||||||
if($result = $db->sql_query($sql))
|
if($result = $db->sql_query($sql))
|
||||||
{
|
{
|
||||||
|
include('page_header_admin.' . $phpEx);
|
||||||
$template->set_filenames(array(
|
$template->set_filenames(array(
|
||||||
"body" => "admin/admin_message_body.tpl")
|
"body" => "admin/admin_message_body.tpl")
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue