From: hickert Date: Fri, 12 Aug 2005 14:20:51 +0000 (+0000) Subject: Fixed layout, allow special chars in macroname X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dae1222a9ee143fe9ad387e698dd19f6131f4e40;p=gosa.git Fixed layout, allow special chars in macroname git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1128 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc index 928f3227b..ed7cf2aba 100755 --- a/plugins/gofon/macro/class_gofonMacroParameters.inc +++ b/plugins/gofon/macro/class_gofonMacroParameters.inc @@ -90,7 +90,7 @@ class macroParameter extends plugin foreach($this->goFonMacroParameter as $para){ $tmp = split("!",$para); $num = $tmp[0]; - $tmp2[$num]['name'] = $tmp[1]; + $tmp2[$num]['name'] = base64_decode($tmp[1]); $tmp2[$num]['type'] = $tmp[2]; $tmp2[$num]['default'] = $tmp[3]; $tmp2[$num]['var'] = "var".$num; @@ -356,7 +356,7 @@ class macroParameter extends plugin $this->attrs['goFonMacroParameter']=array(); foreach($this->goFonMacroParameter as $key=>$fonpara){ - $this->attrs['goFonMacroParameter'][]=$key."!".$fonpara['name']."!".$fonpara['type']."!".$fonpara['default']; + $this->attrs['goFonMacroParameter'][]=$key."!".base64_encode($fonpara['name'])."!".$fonpara['type']."!".$fonpara['default']; } if($this->para_count != count($this->attrs['goFonMacroParameter'])){ diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 2232b0983..9741b68af 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -524,7 +524,7 @@ class phoneAccount extends plugin $macrotab=""; }else{ - $macrotab =""; + $macrotab ="
"; /* for every single parameter-> display textfile,combo, or true false switch*/ @@ -586,16 +586,16 @@ class phoneAccount extends plugin }else{ $str="\nacl, "goFonMacro").">"; } - $macrotab.= ""; + $macrotab.= ""; } $macrotab.="
$str $name"; + $macrotab.= "$str ".base64_decode($name).""; break; case "string": $str="acl, "goFonMacro")." style='width:340px;'>"; - $macrotab.= "$name
$str"; + $macrotab.= "".base64_decode($name)."$str"; break; } - $macrotab.= "
 
";