| | |
| | | if(!$app->tform->checkResellerLimit('limit_dns_zone')) { |
| | | $app->error('Reseller: '.$app->tform->wordbook["limit_dns_zone_txt"]); |
| | | } |
| | | } else { |
| | | $settings = $app->getconf->get_global_config('dns'); |
| | | $app->tform->formDef['tabs']['dns_soa']['fields']['server_id']['default'] = intval($settings['default_dnsserver']); |
| | | } |
| | | |
| | | parent::onShowNew(); |
| | |
| | | /* |
| | | * The domain-module is in use. |
| | | */ |
| | | $domains = $app->tools_sites->getDomainModuleDomains(); |
| | | $domains = $app->tools_sites->getDomainModuleDomains("dns_soa", $this->dataRecord["origin"]); |
| | | $domain_select = ''; |
| | | if(is_array($domains) && sizeof($domains) > 0) { |
| | | /* We have domains in the list, so create the drop-down-list */ |