summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0965de)
raw | patch | inline | side by side (parent: d0965de)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Mar 2010 14:49:42 +0000 (14:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Mar 2010 14:49:42 +0000 (14:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17406 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiProfile.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/gosa-plugins/fai/admin/fai/class_faiProfile.inc
index db587ac06f055f69019b88dab17e8760664771e2..06c46533b409eb31b539b4ffa168296566acb6b7 100644 (file)
if(preg_match("/DEL_/i",$name) && $this->acl_is_writeable("FAIclass")){
$s_action = "delete";
$s_entry = preg_replace("/DEL_/","",$name);
- $s_entry = base64_decode(preg_replace("/_.*$/","",$s_entry));
+ $s_entry = postDecode($s_entry);
}elseif(preg_match("/Add_class/i",$name)&& $this->acl_is_writeable("FAIclass")){
$s_action = "add";
}elseif(preg_match("/DelClass/i",$name) && $this->acl_is_writeable("FAIclass")){
if((preg_match("/sortup_/",$name))&&(!$sort_once) && $this->acl_is_writeable("FAIclass")){
$sort_once = true;
$val = preg_replace("/sortup_/","",$name);
- $val = preg_replace("/_.*$/","",$val);
- $val = base64_decode($val);
+ $val = postDecode($val);
$this->catUp($val);
}
if((preg_match("/sortdown_/",$name))&&(!$sort_once) && $this->acl_is_writeable("FAIclass")){
$sort_once = true;
$val = preg_replace("/sortdown_/","",$name);
- $val = preg_replace("/_.*$/","",$val);
- $val = base64_decode($val);
+ $val = postDecode($val);
$this->catDown($val);
}
$divlist->SetSummary(_("This list displays all assigned class names for this profile."));
/* item images */
- $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=''>";
+ $objTypes['FAIhook'] = image('plugins/fai/images/fai_hook.png','',_("Hook bundle"));
+ $objTypes['FAItemplate'] = image('plugins/fai/images/fai_template.png','',_("Template bundle"));
+ $objTypes['FAIscript'] = image('plugins/fai/images/fai_script.png','',_("Script bundle"));
+ $objTypes['FAIvariable'] = image('plugins/fai/images/fai_variable.png','',_("Variable bundle"));
+ $objTypes['FAIpackageList'] = image('plugins/fai/images/fai_packages.png','',_("Package bundle"));
+ $objTypes['FAIpartitionTable'] = image('plugins/fai/images/fai_partitionTable.png','',_("Partition table"));
+
+ $emp = image('images/empty.png');
/* Delete button */
- $actions = "<input type='image' src='images/lists/trash.png' title='"._("Remove class from profile")."' name='DEL_%KEY%'>";
+ $actions = image('images/lists/trash.png','DEL_%KEY%',_("Remove class from profile"));
/* Up down buttons */
- $linkupdown = " <input type='image' name='sortup_%s' alt='up' title='"._("Up")."' src='images/lists/sort-up.png' align='top' >";
- $linkupdown.= "<input type='image' name='sortdown_%s' alt='down' title='"._("Down")."' src='images/lists/sort-down.png' >";
+ $linkupdown = image('images/lists/sort-up.png','sortup_%s',_("Up"), 'top');
+ $linkupdown.= image('images/lists/sort-down.png','sortdown_%s',_("Down"), 'bottom');
/* Append fai classes to divlist */
if($this->acl_is_readable("FAIclass")){
$field1 = array("string"=> $usedClass,"attach"=>"");
$field2 = array("string"=> $str,"attach"=>"");
if(!preg_match("/freeze/", $this->FAIstate) && $this->acl_is_writeable("FAIclass")){
- $field3 = array("string"=> preg_replace("/%KEY%/",base64_encode($usedClass),$actions).
- preg_replace("/%s/",base64_encode($usedClass),$linkupdown),
+ $field3 = array("string"=> preg_replace("/%KEY%/",postEncode($usedClass),$actions).
+ preg_replace("/%s/",postEncode($usedClass),$linkupdown),
"attach"=>"style='border-right:none;'");
}else{
$field3 = array("string"=>" ", "attach"=>"style='border-right:none;'");