From: hickert Date: Tue, 11 Sep 2007 11:46:37 +0000 (+0000) Subject: Updated dns take over X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34b3ba976ca63f82fd7b9b1642eb4fbf21c5a825;p=gosa.git Updated dns take over git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7259 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index 063303360..8248a9a72 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -17,7 +17,7 @@ class servdns extends plugin var $dns_server_list = array("ENTRIES"=> array(),"FOR_LIST"=> array()); var $take_over_id = -1; - + var $display_warning = TRUE; function servdns ($config, $dn= NULL, $parent= NULL) { @@ -76,19 +76,6 @@ class servdns extends plugin } - function get_dns_info_string($id) - { - $ret=""; - $ldap = $this->config->get_ldap_link(); - $ldap->cd($this->dns_server_list['ENTRIES'][$id]['dn']); - $ldap->search("(|(zoneName=*)(relativeDomainName=*))",array("dn")); - while($attrs = $ldap->fetch()){ - $ret .= $attrs['dn']."\n"; - } - return($ret); - } - - function execute() { /* Call parent execute @@ -131,13 +118,15 @@ class servdns extends plugin if($this->take_over_id != -1){ $this->dialog = FALSE; $id = $this->take_over_id; - $info = $this->get_dns_info_string($id); $smarty->assign("dns_take_over",TRUE); - $smarty->assign("info",$info); $warning = sprintf(_("You are going to migrate the DNS setup from server '%s'."),$this->dns_server_list['ENTRIES'][$id]['cn'][0]); - $warning2 = _("The migration will be startet when you save this system. To cancel this action, use the cancel button below."); - $smarty->assign("warning",$warning); - $smarty->assign("warning2",$warning2); + $warning.= " "._("This includes 'all' DNS zones that are located within this server. Please double check if your really want to do this."); + $warning.= " "._("The migration will be startet when you save this system. To cancel this action, use the cancel button below."); + + if($this->display_warning){ + print_red($warning); + $this->display_warning = FALSE; + } return($smarty->fetch(get_template_path('servdns.tpl', TRUE))); } diff --git a/plugins/admin/systems/servdns.tpl b/plugins/admin/systems/servdns.tpl index e5afc89ab..4bee86845 100644 --- a/plugins/admin/systems/servdns.tpl +++ b/plugins/admin/systems/servdns.tpl @@ -3,11 +3,6 @@

{t}DNS take over initiated{/t}

- {$warning} - {t}This includes 'all' DNS zones that are located within this server. Please double check if your really want to do this.{/t} -

- {$warning2} -