summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07d0246)
raw | patch | inline | side by side (parent: 07d0246)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Aug 2007 08:11:02 +0000 (08:11 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Aug 2007 08:11:02 +0000 (08:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7016 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_dhcpService.inc | patch | blob | history | |
plugins/admin/systems/dhcp_service.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_dhcpService.inc b/plugins/admin/systems/class_dhcpService.inc
index 74eb7f26ea64d9c60ce5a46e10464074bdbae6ad..b2ed5610c04f18d05e0d4e7b5aef9914df5ce79f 100644 (file)
$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 */
$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();
} 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();
}
index 0f4731395f0ee03bd5fc2b21cbfc33ae4c282db0..c4e8e4ab17d266fa5eedf2f2df333b450a11963a 100644 (file)
<tr>
<td width="50%">
<input type=checkbox name="authoritative" value="1" {$authoritative}> {t}Authoritative service{/t}<br>
- <input type=checkbox name="get_lease_hostnames" value="1" {$get_lease_hostnames}> {t}Assign hostnames via DNS{/t}<br>
<br>
{t}Dynamic DNS update{/t}
<select name='ddns_update_style' title='{t}Dynamic DNS update style{/t}' size="1">