diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index 93a05695bd6c2f9f3d62b7d8b99c080b4a3bcc2b..941ec08c7151c0098de6e6ae18de5b9c6687c406 100644 (file)
class servgeneric extends plugin
{
- /* CLI vars */
- var $cli_summary= "Manage server base objects";
- var $cli_description= "Some longer text\nfor help";
- var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
/* Generic terminal attributes */
var $ignore_account= TRUE;
var $interfaces= array();
var $netConfigDNS;
var $modes = array();
- var $mapActions = array("reboot" => "",
+ var $mapActions = array("reboot" => "localboot",
+ "localboot" => "localboot",
"instant_update" => "softupdate",
- "update" => "sceduledupdate",
+ "update" => "scheduledupdate",
"reinstall" => "install",
"rescan" => "",
"memcheck" => "memcheck",
}
/* Check for action */
- if (isset($_POST['action'])){
+ if (isset($_POST['action']) && chkacl($this->acl,"FAIstate") == ""){
$cmd= search_config($this->config->data['TABS'], "workgeneric", "ACTIONCMD");
if ($cmd == ""){
print_red(_("No ACTIONCMD definition found in your gosa.conf"));
"reinstall" => _("Reinstall"),
"rescan" => _("Rescan hardware"),
"memcheck" => _("Memory test"),
+ "localboot" => _("Force localboot"),
"sysinfo" => _("System analysis")));
} else {
$smarty->assign("actions", array("wake" => _("Wake up"),
"reinstall" => _("Reinstall"),
"update" => _("Scheduled update"),
"memcheck" => _("Memory test"),
+ "localboot" => _("Force localboot"),
"sysinfo" => _("System analysis")));
}
unset($og->member[$this->dn]);
$og->save ();
}
- $this->handle_post_events("remove", array("macAddress" => $this->netConfigDNS->macAddress));
+ $this->handle_post_events("remove", array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
}
/* Optionally execute a command after we're done */
if(!$this->didAction){
- $this->handle_post_events($mode);
+ $this->handle_post_events($mode,array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
}
}