X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_servGeneric.inc;h=941ec08c7151c0098de6e6ae18de5b9c6687c406;hb=83bf4784d9c121ae787dd9b266a24ae2f56c7b83;hp=93a05695bd6c2f9f3d62b7d8b99c080b4a3bcc2b;hpb=28a907d9f00d28cbb058ac1ac319b1b22cff33ea;p=gosa.git diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index 93a05695b..941ec08c7 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -2,11 +2,6 @@ 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(); @@ -28,9 +23,10 @@ class servgeneric extends plugin 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", @@ -79,7 +75,7 @@ class servgeneric extends plugin } /* 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")); @@ -177,12 +173,14 @@ class servgeneric extends plugin "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"))); } @@ -211,7 +209,7 @@ class servgeneric extends plugin 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)); } @@ -320,7 +318,7 @@ class servgeneric extends plugin /* 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)); } }