mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-25 11:58:19 +02:00
Added minimum data set support for automation
This commit is contained in:
parent
1a17fdfddc
commit
1e8ab1466d
3 changed files with 93 additions and 80 deletions
|
@ -19,6 +19,7 @@ try {
|
|||
try {
|
||||
// Auto-Renew Grace Period
|
||||
$auto_renew = 0;
|
||||
$minimum_data = $c['minimum_data'];
|
||||
|
||||
if ($auto_renew) {
|
||||
$sth_autorenewperiod = $dbh->prepare("SELECT id, name, tldid, exdate, clid FROM domain WHERE CURRENT_TIMESTAMP > exdate AND rgpstatus IS NULL");
|
||||
|
@ -194,7 +195,9 @@ try {
|
|||
$dbh->exec("DELETE FROM domain_host_map WHERE host_id = '$host_id'");
|
||||
}
|
||||
|
||||
$dbh->exec("DELETE FROM domain_contact_map WHERE domain_id = '$domain_id'");
|
||||
if (!$minimum_data) {
|
||||
$dbh->exec("DELETE FROM domain_contact_map WHERE domain_id = '$domain_id'");
|
||||
}
|
||||
$dbh->exec("DELETE FROM domain_host_map WHERE domain_id = '$domain_id'");
|
||||
$dbh->exec("DELETE FROM domain_authInfo WHERE domain_id = '$domain_id'");
|
||||
$dbh->exec("DELETE FROM domain_status WHERE domain_id = '$domain_id'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue