summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d3c5a1)
raw | patch | inline | side by side (parent: 5d3c5a1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Oct 2005 08:57:25 +0000 (08:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Oct 2005 08:57:25 +0000 (08:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1670 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiProfileEntry.inc | patch | blob | history |
diff --git a/plugins/admin/fai/class_faiProfileEntry.inc b/plugins/admin/fai/class_faiProfileEntry.inc
index ef83d1c84952c19d0a2251468ba7603e674c51a2..e3216bdb616cb665f8d30053dc630f1f5e3df045 100644 (file)
/* If no search filter is set, create one */
if (!is_global("SUBfaifilter")){
$SUBfaifilter= array("base" => "ou=fai,ou=configs,ou=systems,".$base, "Sregex" => "*");
- $SUBfaifilter['SShowTemplates'] = false;
- $SUBfaifilter['SShowScripts'] = false;
- $SUBfaifilter['SShowHooks'] = false;
- $SUBfaifilter['SShowVariables'] = false;
- $SUBfaifilter['SShowPackages'] = false;
- $SUBfaifilter['SShowPartitions']= false;
+ $SUBfaifilter['SShowTemplates'] = true;
+ $SUBfaifilter['SShowScripts'] = true;
+ $SUBfaifilter['SShowHooks'] = true;
+ $SUBfaifilter['SShowVariables'] = true;
+ $SUBfaifilter['SShowPackages'] = true;
+ $SUBfaifilter['SShowPartitions']= true;
register_global("SUBfaifilter", $SUBfaifilter);
}
}
$objTypes['FAItemplate'] = "<image src='images/fai_template.png' title='"._("Template bundle")."' alt=''> ";
$objTypes['FAIscript'] = "<image src='images/fai_script.png' title='"._("Script bundle")."' alt=''> ";
$objTypes['FAIvariable'] = "<image src='images/fai_variable.png' title='"._("Variable bundle")."' alt=''> ";
- $objTypes['FAIpackages'] = "<image src='images/fai_packages.png' title='"._("Package bundle")."' alt=''> ";
+ $objTypes['FAIpackage'] = "<image src='images/fai_packages.png' title='"._("Package bundle")."' alt=''> ";
$objTypes['FAIpartitionTable'] = "<image src='images/fai_partitionTable.png' title='"._("Partition table")."' alt=''> ";
/* Magic quotes GPC, escapes every ' " \, to solve some security risks
$fi = str_replace("*",".*",$SUBfaifilter['Sregex']);
- $abort = false;
+ $abort = true;
if(!preg_match("/".$fi."/",$usedClass)){
- $abort = true;
+ $abort = false;
}
- if(($SUBfaifilter['SShowScripts'])&&(!in_array('FAIscript',$classes['objects']))){
- $abort = true;
+ if((isset($classes['objects']['FAIscript']))&&($SUBfaifilter['SShowScripts'])){
+ $abort = false;
}
- if(($SUBfaifilter['SShowTemplates'])&&(!in_array('FAItemplate',$classes['objects']))){
- $abort = true;
+ if((isset($classes['objects']['FAItemplate']))&&($SUBfaifilter['SShowTemplates'])){
+ $abort = false;
}
- if(($SUBfaifilter['SShowHooks'])&&(!in_array('FAIhook',$classes['objects']))){
- $abort = true;
+ if((isset($classes['objects']['FAIhook']))&&($SUBfaifilter['SShowHooks'])){
+ $abort = false;
}
- if(($SUBfaifilter['SShowVariables'])&&(!in_array('FAIvariable',$classes['objects']))){
- $abort = true;
+ if((isset($classes['objects']['FAIvariable']))&&($SUBfaifilter['SShowVariables'])){
+ $abort = false;
}
- if(($SUBfaifilter['SShowPartitions'])&&(!in_array('FAIpartitionTable',$classes['objects']))){
- $abort = true;
+ if((isset($classes['objects']['FAIpartitionTable']))&&($SUBfaifilter['SShowPartitions'])){
+ $abort = false;
}
- if(($SUBfaifilter['SShowPackages'])&&(!in_array('FAIpackages',$classes['objects']))){
- $abort = true;
+ if((isset($classes['objects']['FAIpackage']))&&($SUBfaifilter['SShowPackages'])){
+ $abort = false;
}
if(!$abort){