remove connections domain<->ip when removing subdomains as customer
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -190,6 +190,19 @@ if ($page == 'overview') {
|
|||||||
);
|
);
|
||||||
Database::pexecute($stmt, array("customerid" => $userinfo['customerid']));
|
Database::pexecute($stmt, array("customerid" => $userinfo['customerid']));
|
||||||
|
|
||||||
|
// remove connections to ips and domainredirects
|
||||||
|
$del_stmt = Database::prepare("
|
||||||
|
DELETE FROM `" . TABLE_DOMAINTOIP . "`
|
||||||
|
WHERE `id_domain` = :domainid"
|
||||||
|
);
|
||||||
|
Database::pexecute($del_stmt, array('domainid' => $id));
|
||||||
|
|
||||||
|
$del_stmt = Database::prepare("
|
||||||
|
DELETE FROM `" . TABLE_PANEL_DOMAINREDIRECTS . "`
|
||||||
|
WHERE `did` = :domainid"
|
||||||
|
);
|
||||||
|
Database::pexecute($del_stmt, array('domainid' => $id));
|
||||||
|
|
||||||
inserttask('1');
|
inserttask('1');
|
||||||
|
|
||||||
// Using nameserver, insert a task which rebuilds the server config
|
// Using nameserver, insert a task which rebuilds the server config
|
||||||
|
|||||||
Reference in New Issue
Block a user