Code

Added some group acls
[gosa.git] / plugins / admin / fai / class_faiPackage.inc
index 3c50c6929c87ad25781b8dd42aaf2a316e319084..a07c24240f40e50219970b4cf2a89e494eb67661 100644 (file)
@@ -294,7 +294,6 @@ class faiPackage extends plugin
           $this->usedPackages[$pkg]= $pkg;
         }
       }
-      print_a($this->usedPackages);
     }
 
     /* Save Configuration */
@@ -335,7 +334,6 @@ class faiPackage extends plugin
     $smarty->assign("section" ,$strsec);
     $smarty->assign("usedPackages",$this->printUsedPackages());
     $display.= $smarty->fetch(get_template_path('faiPackage.tpl', TRUE));
-    print_a($this->ConfiguredPackages);
     return($display);
   }
 
@@ -423,13 +421,15 @@ class faiPackage extends plugin
         $dsc= "";
         if (preg_match('/^-/', $usedName)){
           $dsc= " - "._("Package marked for removal");
-          $usedName= preg_replace('/^-/', '! ', $usedName);
+          $usedName2= preg_replace('/^-/', '! ', $usedName);
+        }else{
+          $usedName2= $usedName;
         }
 
         if(isset($this->list[$usedName][1])){
-          $a_ret[$usedName] = $usedName." [".$this->list[$usedName][1]."]".$c_str.$dsc;
+          $a_ret[$usedName] = $usedName2." [".$this->list[$usedName][1]."]".$c_str.$dsc;
         }else{
-          $a_ret[$usedName] = $usedName.$c_str.$dsc;
+          $a_ret[$usedName] = $usedName2.$c_str.$dsc;
         }
       }
     }
@@ -532,6 +532,21 @@ class faiPackage extends plugin
       }
     }
   }
+
+  /* Return plugin informations for acl handling */ 
+  function plInfo()
+  {
+    return (array(  
+          "plDescription"     => _("FAI Package list"),
+          "plSelfModify"      => FALSE,
+          "plDepends"         => array("objectClass" => "FAIclass"),
+          "cn"                => _("Name"),
+          "description"       => _("Description"),
+          "FAIpackage"        => _("Packages"),
+          "FAIdebianSection"  => _("Section"),
+          "FAIinstallMethod"  => _("Install Method"),
+          "FAIdebianRelease"  => _("Release")));
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: