mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -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();
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user