index e0b4f093c36e8725924f99aa780f01f7771ba837..f841affd653cd372ca09f8967b4944c43d0de81d 100644 (file)
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()
{
/* Call parent execute */
plugin::execute();
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
/* 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);
}
/* Check supplied data */
function check()
{
- $message= array();
-
+ /* Call common method to give check the hook */
+ $message= plugin::check();
+
return ($message);
}