summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15b93e8)
raw | patch | inline | side by side (parent: 15b93e8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Oct 2005 07:47:09 +0000 (07:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Oct 2005 07:47:09 +0000 (07:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1529 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiManagement.inc | patch | blob | history | |
plugins/admin/fai/class_faiProfileEntry.inc | patch | blob | history |
index c6663ea20c5875974ec5068a8a9fcc0dfc7ea398..b600298a12fdcb3c2d85d5f89640f9bed21d9c8e 100644 (file)
$info = _("Templates");
break;
default :
- $img="<img src='images/empty.png' >";$info = "";break;
+ $img="<img src='images/empty.png' alt=''>";$info = "";break;
}
diff --git a/plugins/admin/fai/class_faiProfileEntry.inc b/plugins/admin/fai/class_faiProfileEntry.inc
index 24298a312be0b5a69d463fd9cb928ea66028ab13..ef83d1c84952c19d0a2251468ba7603e674c51a2 100644 (file)
plugin::plugin ($config, $dn);
/* Search only in fai tree */
- $base = $_SESSION['faifilter']['base'];
+ $base = "ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['base'];
/* Create array with categories to be able to sort different types of objects */
$categories = array("FAIscript","FAItemplate","FAIhook","FAIvariable","FAIpartitionTable","FAIpackage");
$ldap->cd($base);
$ldap->search("(| (objectClass=FAIscript)(objectClass=FAItemplate)(objectClass=FAIhook)(objectClass=FAIvariable)
(objectClass=FAIpartitionTable)(objectClass=FAIpackage))",array("*"));
+
+ $sort=array();
while($attrs = $ldap->fetch()){
/* Only use objects which have cn set */
}
}
}
-
+ $tmp = array();
ksort($sort);
foreach($sort as $name){
$tmp[$name] =$this->FAIAllclasses[$name];