summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ed6b5a)
raw | patch | inline | side by side (parent: 4ed6b5a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Jun 2008 08:52:59 +0000 (08:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Jun 2008 08:52:59 +0000 (08:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11344 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc
index 9385b940e387e566c6f4829685980e5fb280cca8..e67915fb91f2807bc2bf76a7a43a433de2fb98c9 100644 (file)
" "._("Component")."|"."newsystem_component|\n";
}
- $events = DaemonEvent::get_event_types(SYSTEM_EVENT);
+ if($this->parent->si_active){
+ $events = DaemonEvent::get_event_types(SYSTEM_EVENT);
- $s.= "..|<img src='images/rocket.png' alt='' border='0' class='center'>".
- " "._("Trigger action")."|\n";
- foreach($events['TRIGGERED'] as $name => $event){
- $s.= "...|".$event['MenuImage']." ".$event['s_Menu_Name']."|trigger_event_".$name."\n";
- }
+ $s.= "..|<img src='images/rocket.png' alt='' border='0' class='center'>".
+ " "._("Trigger action")."|\n";
+ foreach($events['TRIGGERED'] as $name => $event){
+ $s.= "...|".$event['MenuImage']." ".$event['s_Menu_Name']."|trigger_event_".$name."\n";
+ }
- $s.= "..|<img src='images/clock.png' alt='' border='0' class='center'>".
- " "._("Schedule action")."|\n";
- foreach($events['SCHEDULED'] as $name => $event){
- $s.= "...|".$event['MenuImage']." ".$event['s_Menu_Name']."|schedule_event_".$name."\n";
+ $s.= "..|<img src='images/clock.png' alt='' border='0' class='center'>".
+ " "._("Schedule action")."|\n";
+ foreach($events['SCHEDULED'] as $name => $event){
+ $s.= "...|".$event['MenuImage']." ".$event['s_Menu_Name']."|schedule_event_".$name."\n";
+ }
}
$s.= "..|<img src='images/lists/trash.png' alt='' border='0' class='center'>".
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index 8dee77f84b9be66e91940a18b02ff687ad5fc042..663785a5424127a0786f48cb6b89cd7a81480fd2 100644 (file)
var $system_activation_object = ""; // The object to activate (NewDevice)
var $fai_activated = FALSE;
+ var $si_active = FALSE;
var $acl_module = array("incoming","terminal","workstation","server","printer","phone","winworkstation","component");
if($this->config->search("ArpNewDevice","CLASS",array('tabs')) != ""){
$this->arp_handling_active = TRUE;
}
+
+ /* Check if we are able to communicate with the GOsa supprot daemon
+ */
+ if(class_available("gosaSupportDaemon")){
+ $o = new gosaSupportDaemon();
+ $this->si_active = $o->connect();
+ }
}
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index ec310e64ea433aeab2b2162af680136180b71147..d5249a25d1d6d6b8ef3d2ff5f2b0a3ad6dafa51d 100644 (file)
$this->DNSenabled = true;
}
}
+
+ if(!class_available("DNS")){
+ $this->DNSenabled = FALSE;
+ }
+
if(!$this->DNSenabled){
$this->DNS_is_account = false;
return;