summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae8fc28)
raw | patch | inline | side by side (parent: ae8fc28)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 6 Sep 2010 07:05:38 +0000 (07:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 6 Sep 2010 07:05:38 +0000 (07:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19512 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
index 9d17bb50b32cec25715e85f86870bea59d86b2a8..e26287a52dea5ac0665590366f32324b427f6983 100644 (file)
$action = $_POST['saction'];
/* Check if we have an DaemonEvent for this action */
- if(class_available("DaemonEvent_".$action)){
+ if(class_available("gosaSupportDaemon") && class_available("DaemonEvent_".$action)){
$events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
if(isset($events['TRIGGERED']["DaemonEvent_".$action])){
$evt = $events['TRIGGERED']["DaemonEvent_".$action];
$smarty->assign("inheritTimeServer",$this->inheritTimeServer);
/* Check if terminal is online */
- if (gosaSupportDaemon::ping($this->netConfigDNS->macAddress)){
+ if (class_available("gosaSupportDaemon") && gosaSupportDaemon::ping($this->netConfigDNS->macAddress)){
$smarty->assign("actions", array( "halt" => _("Switch off"),
"reboot" => _("Reboot"),
#"memcheck" => _("Memory test"),