Code

Added acls for printer glpi
[gosa.git] / plugins / admin / systems / class_servDHCP.inc
index 9f4a6e867c19a278a84431ab82d4fb4b3ad976da..f841affd653cd372ca09f8967b4944c43d0de81d 100644 (file)
@@ -12,9 +12,9 @@ class servdhcp extends plugin
   var $attributes= array();
   var $objectclasses= array("whatever");
 
-  function servdhcp ($config, $dn= NULL)
+  function servdhcp ($config, $dn= NULL, $parent= NULL)
   {
-    plugin::plugin ($config, $dn);
+    plugin::plugin ($config, $dn, $parent);
   }
 
   function execute()
@@ -33,10 +33,10 @@ class servdhcp extends plugin
 
     /* Show tab dialog headers */
     if ($this->is_account){
-      $display= $this->show_header(_("Remove DHCP service"),
+      $display= $this->show_disable_header(_("Remove DHCP service"),
           _("This server has DHCP features enabled. You can disable them by clicking below."));
     } else {
-      $display= $this->show_header(_("Add DHCP service"),
+      $display= $this->show_enable_header(_("Add DHCP service"),
           _("This server has DHCP features disabled. You can enable them by clicking below."));
       return ($display);
     }
@@ -61,8 +61,9 @@ class servdhcp extends plugin
   /* Check supplied data */
   function check()
   {
-    $message= array();
-
+    /* Call common method to give check the hook */
+    $message= plugin::check();
+    
     return ($message);
   }