summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 88a52a7)
raw | patch | inline | side by side (parent: 88a52a7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 9 Nov 2009 14:38:41 +0000 (14:38 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 9 Nov 2009 14:38:41 +0000 (14:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14804 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc | patch | blob | history |
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 9d7fa002156a91d41d51040051b1ffb498a1a5a2..8fd87ac96202ba5c924168b36cfc9aeda1310741 100644 (file)
$values = "<a href='?plug=".$_GET['plug']."&act=edit&id=".$id."'>".$values."</a>";
- if (count($tmp->sectionMap[$this->objectType($section)])){
- if ($this->objectType($section) == "dhcpService"){
+ $objtype = $this->objectType($section);
+ $dhcpObject = new $objtype($this,$this->dhcpObjectCache[$section]);
+ if (count($tmp->sectionMap[$objtype])){
+ if ($objtype == "dhcpService"){
$DhcpList->AddEntry(array(
array("string" => $values),
+ array("string" => ''),
+ array("string" => ''),
array("string" => str_replace("%s",$id,$editImgInsNoDel), "attach" => "style='text-align:right;'")
));
} else {
$DhcpList->AddEntry(array(
array("string" => $values),
+ array("string" => $dhcpObject->options->get('routers')),
+ array("string" => ''),
array("string" => str_replace("%s",$id,$editImgIns), "attach" => "style='text-align:right;'")
));
}
} else {
$DhcpList->AddEntry(array(
array("string" => $values),
+ array("string" => $dhcpObject->statements->get('fixed-address')),
+ array("string" => preg_replace('/^[^ ]+ /', '', $dhcpObject->dhcpHWAddress)),
array("string" => str_replace("%s",$id,$editImg), "attach" => "style='text-align:right;'")
));
}