r1984: BIG BROTHER RELEASE // Move user deletion code into authentication module

git-svn-id: http://www.observium.org/svn/observer/trunk@1984 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-28 10:48:43 +00:00
parent ef6406d4c9
commit 2be7bfe497
5 changed files with 23 additions and 11 deletions

View File

@ -95,4 +95,10 @@ function get_userid($username)
return $row['user_id'];
}
function deluser($username)
{
mysql_query("DELETE FROM `users` WHERE `user_id` = '" . mres($_GET['user_id']) . "'");
return mysql_affected_rows();
}
?>