diff --git a/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc b/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc
index 4b9ff186872b5126ffe819b633f65e7874ff3bd3..652b36052540a3590076686481e3a7fa2372c9d1 100644 (file)
"FAIhook" => "faiHook",
"FAIvariable" => "faiVariable",
"FAIpartitionTable" => "faiPartitionTable",
- "FAIpackageList" => "faiPackageList");
+ "FAIpackageList" => "faiPackage");
/* Read out all objects from fai tree */
$ldap= $this->config->get_ldap_link();
/* If no search filter is set, create one */
if (!session::is_set("SUBfaifilter")){
- $SUBfaifilter= array("base" => get_ou('faiou').session::get('CurrentMainBase'), "Sregex" => "*");
+ $SUBfaifilter= array("base" => get_ou('faiBaseRDN').session::get('CurrentMainBase'), "Sregex" => "*");
$SUBfaifilter['SShowTemplates'] = true;
$SUBfaifilter['SShowScripts'] = true;
$SUBfaifilter['SShowHooks'] = true;
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
/* Fill templating stuff */
$smarty = get_smarty();
$SUBfaifilter = session::get('SUBfaifilter');
+ /* Get alphabet selection */
+ if(isset($_GET['search'])){
+ $SUBfaifilter['Sregex'] = strtolower($_GET['search'])."*";
+ }
+
/* If someone used the apply button, update searchfilter */
if(isset($_POST['Sregex'])){
foreach($SUBfaifilter as $key => $val){
}
/* Create different picture for each object type */
- $objTypes['FAIhook'] = "<img src='images/fai_hook.png' title='"._("Hook bundle")."' alt=''> ";
- $objTypes['FAItemplate'] = "<img src='images/fai_template.png' title='"._("Template bundle")."' alt=''> ";
- $objTypes['FAIscript'] = "<img src='images/fai_script.png' title='"._("Script bundle")."' alt=''> ";
- $objTypes['FAIvariable'] = "<img src='images/fai_variable.png' title='"._("Variable bundle")."' alt=''> ";
- $objTypes['FAIpackageList'] = "<img src='images/fai_packages.png' title='"._("Package bundle")."' alt=''> ";
- $objTypes['FAIpartitionTable'] = "<img src='images/fai_partitionTable.png' title='"._("Partition table")."' alt=''> ";
+ $objTypes['FAIhook'] = "<img src='plugins/fai/images/fai_hook.png' title='"._("Hook bundle")."' alt=''> ";
+ $objTypes['FAItemplate'] = "<img src='plugins/fai/images/fai_template.png' title='"._("Template bundle")."' alt=''> ";
+ $objTypes['FAIscript'] = "<img src='plugins/fai/images/fai_script.png' title='"._("Script bundle")."' alt=''> ";
+ $objTypes['FAIvariable'] = "<img src='plugins/fai/images/fai_variable.png' title='"._("Variable bundle")."' alt=''> ";
+ $objTypes['FAIpackageList'] = "<img src='plugins/fai/images/fai_packages.png' title='"._("Package bundle")."' alt=''> ";
+ $objTypes['FAIpartitionTable'] = "<img src='plugins/fai/images/fai_partitionTable.png' title='"._("Partition table")."' alt=''> ";
/* Magic quotes GPC, escapes every ' " \, to solve some security risks
* If we post the escaped strings they will be escaped again
$fi = str_replace("*",".*",$SUBfaifilter['Sregex']);
$abort = true;
- if(!preg_match("/".$fi."/",$usedClass)){
+ if(!preg_match("/^".$fi."/i",$usedClass)){
$abort = false;
continue;
}