index 9f4a6e867c19a278a84431ab82d4fb4b3ad976da..42eaf2b9c90363f8c66bada91ba8568d5e53bf00 100644 (file)
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();
/* 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);
}
function remove_from_parent()
{
/* This cannot be removed... */
+ new log("remove","unknown/".get_class($this),$this->dn);
}
/* Check supplied data */
function check()
{
- $message= array();
-
+ /* Call common method to give check the hook */
+ $message= plugin::check();
+
return ($message);
}
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);