Code

Allo opsi host creation.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Aug 2008 11:12:18 +0000 (11:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Aug 2008 11:12:18 +0000 (11:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12259 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_divListSystem.inc
gosa-plugins/systems/admin/systems/class_systemManagement.inc

index 54529f658b0c16160d3427f605c56b4669ae1fad..6c8d7337289c219bfcab426bd1a6722e5922f2c2 100644 (file)
@@ -199,6 +199,10 @@ class divListSystem extends MultiSelectWindow
       $s.= "...|<img src='plugins/systems/images/select_component.png' alt='' border='0' class='center'>".
         "&nbsp;"._("Component")."|"."newsystem_component|\n";
     }
+    if(class_available("opsigeneric") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"opsi/opsigeneric"))){
+      $s.= "...|<img src='plugins/systems/images/select_component.png' alt='' border='0' class='center'>".
+        "&nbsp;"._("Opsi")."|"."newsystem_opsi_client|\n";
+    }
 
     if($this->parent->si_active){
       $events  = DaemonEvent::get_event_types(SYSTEM_EVENT);
index 4372472751fb112fdce25d64b324099391d6322c..a271bdedfc429cd70e719ace050bc36692f44ab8 100644 (file)
@@ -447,7 +447,7 @@ class systems extends plugin
       $this->dn= "new";
 
       $tabs = $this->get_tab_defs();
-
+  
       if(isset($tabs[$sw])){
         $class    = $tabs[$sw]["CLASS"];
         $tabname  = $tabs[$sw]["TABNAME"];
@@ -474,7 +474,6 @@ class systems extends plugin
       }
     }
 
-
     /********************
       System activation
      ********************/
@@ -1669,10 +1668,10 @@ class systems extends plugin
     if($this->opsi != NULL){
       $tabs["opsi_client"] = array(
           "CLASS"   => "OPSITABS",
-          "TABNAME" => "opsi_generic" ,
+          "TABNAME" => "opsigeneric" ,
           "TABCLASS"=> "opsi_tabs",
           "ACLC"    => "opsi" ,
-          "ACL"     => "opsi/opsi_generic");
+          "ACL"     => "opsi/opsigeneric");
     }
 
     return($tabs);