summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c8d82c)
raw | patch | inline | side by side (parent: 8c8d82c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 8 May 2010 11:50:52 +0000 (11:50 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 8 May 2010 11:50:52 +0000 (11:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18183 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc | patch | blob | history | |
gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc | patch | blob | history |
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc
index 9204e2aa0ff0b1f5fde9afe467ae2f3cda7c182c..75154b7adfc2ba38a4fbbf3ccaa86f7ba28acfa4 100644 (file)
var $objectclasses = array("whatever");
/* Mapping array */
+ /* ajout de dhcpTsigKey et dhcpDnsZone */
var $types= array();
var $classtype= "";
- var $sectionMap= array( "dhcpService" => array("dhcpSharedNetwork", "dhcpSubnet", "dhcpGroup", "dhcpHost", "dhcpClass"),
+ var $sectionMap= array( "dhcpService" => array("dhcpSharedNetwork", "dhcpSubnet", "dhcpGroup", "dhcpHost", "dhcpClass","dhcpTSigKey","dhcpDnsZone"),
"dhcpClass" => array("dhcpSubClass"),
"dhcpSubClass" => array(),
"dhcpHost" => array(),
"dhcpGroup" => array("dhcpHost"),
"dhcpPool" => array(),
- "dhcpSubnet" => array("dhcpPool", "dhcpGroup", "dhcpHost", "dhcpClass"),
- "dhcpSharedNetwork" => array("dhcpSubnet", "dhcpPool"));
-
+ "dhcpSubnet" => array("dhcpPool", "dhcpGroup", "dhcpHost", "dhcpClass","dhcpTSigKey","dhcpDnsZone"),
+ "dhcpSharedNetwork" => array("dhcpSubnet", "dhcpPool","dhcpTsigKey","dhcpDnsZone"),
+ "dhcpTSigKey"=> array(), "dhcpDnsZone" => array());
function dhcpNewSectionDialog($type)
"dhcpGroup" => _("Group"),
"dhcpPool" => _("Pool"),
"dhcpSubnet" => _("Subnet"),
- "dhcpSharedNetwork" => _("Shared network"));
+ "dhcpSharedNetwork" => _("Shared network"),
+ "dhcpTSigKey" => _("DNS update key"),
+ "dhcpDnsZone" => _("DNS update zones"));
$this->classtype= $type;
}
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc
index a8994c1eb95a3762e97d23e9906f5050222c6dd6..d6614fd2f758ffe5045e71ecf545829448405832 100644 (file)
"dhcpPool" => _("Pool"),
"dhcpSubnet" => _("Subnet"),
"dhcpFailOverPeer" => _("Failover peer"),
- "dhcpSharedNetwork" => _("Shared network"));
+ "dhcpSharedNetwork" => _("Shared network"),
+ "dhcpTSigKey" => _("DNS update key"),
+ "dhcpDnsZone" => _("DNS update zones"));
/* Backport: PHP4 compatibility */
/* Section Creation? */
if (isset($_POST['create_section']) && isset($_POST['section'])){
$section= $_POST['section'];
+
$tmp = new dhcpNewSectionDialog(NULL);
if (isset($tmp->sectionMap[$section])){
$this->dialog= new $section($this,$this->current_object);
{
$type= "";
$types= array("dhcpService", "dhcpClass", "dhcpSubClass", "dhcpHost",
- "dhcpGroup", "dhcpPool", "dhcpSubnet", "dhcpSharedNetwork");
+ "dhcpGroup", "dhcpPool", "dhcpSubnet", "dhcpSharedNetwork", "dhcpTSigKey", "dhcpDnsZone");
foreach ($this->dhcpObjectCache[$dn]['objectClass'] as $oc){
if (in_array($oc, $types)){