{ $errmsg = _("Domain status prohibits operation"); CoreUtils::Redirect("domains_view.php"); } if ($_POST) { if ($post_task == "mdns") { if ($post_enable_managed_dns == 1 && $Domain->IsManagedDNSEnabled == 0) { $list = $Domain->GetNameserverList(); $chlist = new Changelist($list); // Set new Nameserver $chlist->Add(new Nameserver(CONFIG::$NS1)); $chlist->Add(new Nameserver(CONFIG::$NS2)); $deletens = array(); foreach ($list as $ns) if ($ns->HostName != CONFIG::$NS1 && $ns->HostName != CONFIG::$NS2) $chlist->Remove($ns); if (!$chlist->GetAdded() && !$chlist->GetRemoved()) $upd = true; else { try { $upd = $Registry->UpdateDomainNameservers($Domain, $chlist); }
function updateDomainStatus() { $Domain = $this->Registry->NewDomainInstance(); $Domain->Name = 'eppinfodomain'; $Changes = new Changelist(array()); $Changes->Add('clientUpdateProhibited'); $Resp = $this->Module->UpdateDomainFlags($Domain, $Changes); $this->assertTrue($Resp->Code == RFC3730_RESULT_CODE::OK, "Change Domain Status"); }