From: cajus Date: Thu, 9 Aug 2007 08:11:02 +0000 (+0000) Subject: Removed double option X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=33a505fbb14ae7e218efb21bc8b9dc0572bbb0f7;p=gosa.git Removed double option git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7016 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_dhcpService.inc b/plugins/admin/systems/class_dhcpService.inc index 74eb7f26e..b2ed5610c 100644 --- a/plugins/admin/systems/class_dhcpService.inc +++ b/plugins/admin/systems/class_dhcpService.inc @@ -42,11 +42,10 @@ class dhcpService extends dhcpPlugin $this->statements['default-lease-time']= 600; $this->statements['max-lease-time']= 1700; $this->statements['authoritative']= TRUE; - $this->statements['get-lease-hostnames']= 'on'; $this->statements['ddns-update-style']= 'none'; } - $this->advanced->setAutoStatements(array("default-lease-time", "max-lease-time", "authoritative", "get-lease-hostnames", "server-identifier", "ddns-update-style")); + $this->advanced->setAutoStatements(array("default-lease-time", "max-lease-time", "authoritative", "server-identifier", "ddns-update-style")); $this->advanced->setAutoOptions(array("server-name")); /* Save for later action */ @@ -74,12 +73,6 @@ class dhcpService extends dhcpPlugin $smarty->assign("authoritative", ""); } - if (isset($this->statements['get-lease-hostnames']) && preg_match('/on/i', $this->statements['get-lease-hostnames'])){ - $smarty->assign("get_lease_hostnames", "checked"); - } else { - $smarty->assign("get_lease_hostnames", ""); - } - /* Show main page */ $display= $smarty->fetch(get_template_path('dhcp_service.tpl', TRUE)).$this->network->execute(); @@ -133,11 +126,6 @@ class dhcpService extends dhcpPlugin } else { unset($this->statements['authoritative']); } - if (isset($_POST['get_lease_hostnames'])){ - $this->statements['get-lease-hostnames']= "on"; - } else { - $this->statements['get-lease-hostnames']= "off"; - } dhcpPlugin::save_object(); } diff --git a/plugins/admin/systems/dhcp_service.tpl b/plugins/admin/systems/dhcp_service.tpl index 0f4731395..c4e8e4ab1 100644 --- a/plugins/admin/systems/dhcp_service.tpl +++ b/plugins/admin/systems/dhcp_service.tpl @@ -4,7 +4,6 @@ {t}Authoritative service{/t}
- {t}Assign hostnames via DNS{/t}

{t}Dynamic DNS update{/t}