aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_users.php
diff options
context:
space:
mode:
authordougk_ff7 <dougk_ff7@users.sourceforge.net>2001-08-16 20:38:49 +0000
committerdougk_ff7 <dougk_ff7@users.sourceforge.net>2001-08-16 20:38:49 +0000
commit6d2981029757c99c6c25658960bc3625794802d3 (patch)
treeaf9d7b70b7f43bef9488288f1882e62cc52cb451 /phpBB/admin/admin_users.php
parent475dd0cd30917eda4cb0d058664d70893ed893d1 (diff)
downloadforums-6d2981029757c99c6c25658960bc3625794802d3.tar
forums-6d2981029757c99c6c25658960bc3625794802d3.tar.gz
forums-6d2981029757c99c6c25658960bc3625794802d3.tar.bz2
forums-6d2981029757c99c6c25658960bc3625794802d3.tar.xz
forums-6d2981029757c99c6c25658960bc3625794802d3.zip
User delete now deletes user from groups
git-svn-id: file:///svn/phpbb/trunk@894 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_users.php')
-rw-r--r--phpBB/admin/admin_users.php38
1 files changed, 27 insertions, 11 deletions
diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php
index 7cb24cee54..91f8f53a05 100644
--- a/phpBB/admin/admin_users.php
+++ b/phpBB/admin/admin_users.php
@@ -625,29 +625,44 @@ else if($HTTP_POST_VARS[submit] && $HTTP_POST_VARS['user_id'])
WHERE user_id = $user_id";
if( $result = $db->sql_query($sql) )
{
- $template->set_filenames(array(
- "body" => "admin/admin_message_body.tpl")
- );
+ $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")
+ );
- $template->assign_vars(array(
- "MESSAGE_TITLE" => $lang['User'] . $lang['User_admin'],
- "MESSAGE_TEXT" => $lang['User_deleted'])
- );
- $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
{
- 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;
+ }
+ 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")
);