diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc
index 635e5b826fee4168ac4995f6199f742b249d2fb0..47313ac420467f4357e809df160d771ce8f86a6e 100644 (file)
// Prepare lists
$this->templateList = new sortableListing();
+ $this->templateList->setInstantDelete(false);
$this->templateList->setDeleteable(true);
$this->templateList->setEditable(true);
$this->templateList->setWidth("100%");
- $this->templateList->setHeight("120px");
- $this->templateList->setColspecs(array('200px','*'));
- $this->templateList->setHeader(array(_("Name"),_("Download")));
- $this->templateList->setDefaultSortColumn(1);
-
+ $this->templateList->setHeight("220px");
+ $this->templateList->setColspecs(array('*','18px'));
+ $this->templateList->setHeader(array(_("Name"),""));
+ $this->templateList->setDefaultSortColumn(0);
}
if(in_array_ics($attrs,$this->sub64coded)){
$var = base64_decode($var);
}
- $var = stripslashes($var);
/* check if this is a binary entry */
if(in_array_ics($attrs,$this->subBinary)){
$this->templateList->setAcl($acl,preg_match('/^freeze/', $this->FAIstate));
$tmp = $this->getList(true);
+ $data = $lData = array();
foreach($this->SubObjects as $key => $name){
/* Skip removed entries */
* If we post the escaped strings they will be escaped again
*/
foreach($this->attributes as $attrs){
- if(get_magic_quotes_gpc()){
- $smarty->assign($attrs,stripslashes($this->$attrs));
- }else{
- $smarty->assign($attrs,($this->$attrs));
- }
+ $smarty->assign($attrs,set_post($this->$attrs));
}
$dn = $this->acl_base_for_current_object($this->dn);
"name" => "faiTemplateRDN",
"type" => "rdn",
"default" => "ou=templates,",
- "description" => "The 'faiTemplateRDN' statement defines the location where new fai-templates will be created. The default is 'ou=templates,'.",
+ "description" => _("RDN for FAI template storage."),
"check" => "gosaProperty::isRdn",
- "migrate" => "",
+ "migrate" => "migrate_faiTemplateRDN",
"group" => "plugin",
- "mandatory" => FALSE)),
+ "mandatory" => TRUE)),
"plProvidedAcls" => array(
- "cn" => _("Name")." ("._("Readonly").")",
+ "cn" => _("Name")." ("._("Read-only").")",
"description" => _("Description"))
));
}
{
$vars = array("cn");
$smarty = get_smarty();
- $smarty->assign("cn", htmlentities($this->cn));
+ $smarty->assign("cn", set_post($this->cn));
$str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
$ret = array();
$ret['string'] = $str;