You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
AdminHandler.php:
- implement delete() (untested!) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1456 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@ -179,11 +179,8 @@ class AdminHandler extends PFAHandler {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->errormsg[] = '*** Admin deletion not implemented yet ***';
|
$result = db_delete('domain_admins', $this->id_field, $this->id); # TODO: check for errors?
|
||||||
return false; # XXX function aborts here until TODO below is implemented! XXX
|
|
||||||
|
|
||||||
# TODO: delete from domain_admins before deleting the admin
|
|
||||||
# TODO: move the needed code from delete.php here
|
|
||||||
$result = db_delete($this->db_table, $this->id_field, $this->id);
|
$result = db_delete($this->db_table, $this->id_field, $this->id);
|
||||||
if ( $result == 1 ) {
|
if ( $result == 1 ) {
|
||||||
list(/*NULL*/,$domain) = explode('@', $this->id);
|
list(/*NULL*/,$domain) = explode('@', $this->id);
|
||||||
|
Reference in New Issue
Block a user