summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68413fb)
raw | patch | inline | side by side (parent: 68413fb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Dec 2005 11:25:27 +0000 (11:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Dec 2005 11:25:27 +0000 (11:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2380 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiProfile.inc | patch | blob | history |
index ff2b4923f42e1e9c85ecb0c02214db2739ccb513..5fe543b061f40d966576b98eb45db9062b227845 100644 (file)
$ldap=$this->config->get_ldap_link();
$tmp = split(" ",$this->FAIclass);
- $tmp3 = $tmp2 = array();
+ $tmp2 = array();
foreach($tmp as $class){
if(!empty($class)){
- if(preg_match("/|/",$class)){
- $o = split("\|",$class);
- $tmp3[$o[1]] = trim($o[0]);
- }else{
- $tmp2[trim($class)] = trim($class);
- }
- }
- }
- $this->FAIclasses = array();
- ksort($tmp3);
- if(is_array($tmp3)){
- foreach($tmp3 as $class){
- $this->FAIclasses[$class]=$class;
+ $tmp2[trim($class)] = trim($class);
}
}
if(preg_match("/DEL_/i",$name)){
$s_action = "delete";
$s_entry = preg_replace("/DEL_/","",$name);
- $s_entry = preg_replace("/_.*$/","",$s_entry);
+ $s_entry = base64_decode(preg_replace("/_.*$/","",$s_entry));
}elseif(preg_match("/Add_class/i",$name)){
$s_action = "add";
}elseif(preg_match("/DelClass/i",$name)){
$field1 = array("string"=> $usedClass,"attach"=>"");
$field2 = array("string"=> $str,"attach"=>"");
- $field3 = array("string"=> preg_replace("/%KEY%/",$usedClass,$actions).preg_replace("/%s/",base64_encode($usedClass),$linkupdown),"attach"=>"style='border-right:none;'");
+ $field3 = array("string"=> preg_replace("/%KEY%/",base64_encode($usedClass),$actions).preg_replace("/%s/",base64_encode($usedClass),$linkupdown),"attach"=>"style='border-right:none;'");
$divlist->AddEntry(array($field1,$field2,$field3));
}
$ldap = $this->config->get_ldap_link();
$this->FAIclass = "";
- $i = 0 ;
foreach($this->FAIclasses as $class){
- $i ++ ;
- $this->FAIclass.=$class."|".$i." ";
+ $this->FAIclass.=$class." ";
}
$this->attrs['FAIclass']=trim($this->FAIclass);