mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-28 07:10:00 +02:00
Added domain delete; small epp fix
This commit is contained in:
parent
4fd278faa7
commit
c970ff646d
3 changed files with 310 additions and 16 deletions
|
@ -173,7 +173,7 @@ function processDomainDelete($conn, $db, $xml, $clid, $database_type, $trans) {
|
|||
sendEppError($conn, $db, 2003, 'Please specify the domain name that will be deleted', $clTRID, $trans);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if ($database_type === 'mysql') {
|
||||
$stmt = $db->prepare("SELECT id, tldid, registrant, crdate, exdate, `update`, clid, crid, upid, trdate, trstatus, reid, redate, acid, acdate, rgpstatus, addPeriod, autoRenewPeriod, renewPeriod, renewedDate, transferPeriod FROM domain WHERE name = :name LIMIT 1");
|
||||
} elseif ($database_type === 'pgsql') {
|
||||
|
@ -285,6 +285,7 @@ function processDomainDelete($conn, $db, $xml, $clid, $database_type, $trans) {
|
|||
$db->exec("DELETE FROM domain_host_map WHERE domain_id = $domain_id");
|
||||
$db->exec("DELETE FROM domain_authInfo WHERE domain_id = $domain_id");
|
||||
$db->exec("DELETE FROM domain_status WHERE domain_id = $domain_id");
|
||||
$db->exec("DELETE FROM secdns WHERE domain_id = $domain_id");
|
||||
$db->exec("DELETE FROM host WHERE domain_id = $domain_id");
|
||||
|
||||
$stmt = $db->prepare("DELETE FROM domain WHERE id = ?");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue