Code

Replaced "mofify" in handle_post_events(mofify) with "modify".
[gosa.git] / plugins / admin / systems / class_servDHCP.inc
index dd5fffe564f648c5f58ad59357d13e1e0f57ff93..8b4e9a878f59c41dd2a5f7f8937c2206a35308f1 100644 (file)
@@ -8,6 +8,7 @@ class servdhcp extends plugin
   var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
 
   /* attribute list for save action */
+  var $ignore_account= TRUE;
   var $attributes= array();
   var $objectclasses= array("whatever");
 
@@ -18,6 +19,9 @@ class servdhcp extends plugin
 
   function execute()
   {
+       /* Call parent execute */
+       plugin::execute();
+
     /* Fill templating stuff */
     $smarty= get_smarty();
     $display= "";
@@ -29,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);
     }
@@ -57,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);
   }