mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:01:58 +01:00
Improved delete_user() function
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
a9d2099262
commit
cdee6dfdc3
@ -557,6 +557,9 @@ class ModelUserUser extends Model {
|
||||
|
||||
$query = $this->db->query("DELETE FROM " . TABLE_EMAIL . " WHERE uid=?", array((int)$uid));
|
||||
$query = $this->db->query("DELETE FROM " . TABLE_USER . " WHERE uid=?", array((int)$uid));
|
||||
$query = $this->db->query("DELETE FROM " . TABLE_USER_SETTINGS . " WHERE username IN (SELECT username FROM " . TABLE_USER . " WHERE uid=?)", array((int)$uid));
|
||||
$query = $this->db->query("DELETE FROM " . TABLE_DOMAIN_USER . " WHERE uid=?", array((int)$uid));
|
||||
$query = $this->db->query("DELETE FROM " . TABLE_FOLDER_USER . " WHERE uid=?", array((int)$uid));
|
||||
|
||||
LOGGER("remove user: uid=$uid");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user