X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_servDHCP.inc;h=42eaf2b9c90363f8c66bada91ba8568d5e53bf00;hb=6ae7a3503964fb97587cf21b9c1b4276b9db23fc;hp=9f4a6e867c19a278a84431ab82d4fb4b3ad976da;hpb=84d2c065af9ce3f287fef380606a593a0cda5a81;p=gosa.git diff --git a/plugins/admin/systems/class_servDHCP.inc b/plugins/admin/systems/class_servDHCP.inc index 9f4a6e867..42eaf2b9c 100644 --- a/plugins/admin/systems/class_servDHCP.inc +++ b/plugins/admin/systems/class_servDHCP.inc @@ -11,16 +11,22 @@ class servdhcp extends plugin var $ignore_account= TRUE; var $attributes= array(); var $objectclasses= array("whatever"); + var $view_logged = FALSE; - function servdhcp ($config, $dn= NULL) + function servdhcp ($config, $dn= NULL, $parent= NULL) { - plugin::plugin ($config, $dn); + plugin::plugin ($config, $dn, $parent); } function execute() { - /* Call parent execute */ - plugin::execute(); + /* Call parent execute */ + plugin::execute(); + + if($this->is_account && !$this->view_logged){ + $this->view_logged = TRUE; + new log("view","server/".get_class($this),$this->dn); + } /* Fill templating stuff */ $smarty= get_smarty(); @@ -33,10 +39,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); } @@ -48,6 +54,7 @@ class servdhcp extends plugin function remove_from_parent() { /* This cannot be removed... */ + new log("remove","unknown/".get_class($this),$this->dn); } @@ -61,8 +68,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); } @@ -71,6 +79,7 @@ class servdhcp extends plugin function save() { plugin::save(); + new log("modfiy","unknown/".get_class($this),$this->dn); /* Optionally execute a command after we're done */ #$this->handle_post_events($mode);