diff --git a/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/gosa-plugins/fai/admin/fai/class_faiProfile.inc
index 5f97b2574956bfb4cb0c3ec975c7ed46da181c55..9608e6a2fc36cd5d5324c6f54c1b42e4aa463409 100644 (file)
/* Sort by categorie */
foreach($categories as $cat){
- if(in_array($cat,$attrs['objectClass'])){
+ if(in_array_strict($cat,$attrs['objectClass'])){
/* Append entry */
$this->FAIAllclasses[$attrs['cn'][0]][$cat]=$attrs;
// Prepare lists
$this->classList = new sortableListing(array(),array(), TRUE);
$this->classList->setDeleteable(true);
+ $this->classList->setInstantDelete(false);
$this->classList->setEditable(false);
$this->classList->setWidth("100%");
$this->classList->setHeight("200px");
$sort_once = false;
if(!preg_match("/freeze/",$this->FAIstate)){
- if(isset($_POST['AddClass']) && $this->acl_is_writeable("FAIclass")){
+ if(isset($_POST['AddClass']) && $this->acl_is_writeable("FAIclass")){
$this->classSelect = new classSelect($this->config, get_userinfo());
$this->dialog =true;
- }
+ }
/* Save Dialog */
* 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));
}
"name" => "faiProfileRDN",
"type" => "rdn",
"default" => "ou=profiles,",
- "description" => "The 'faiProfileRDN' statement defines the location where new fai-profiles will be created. The default is 'ou=profiles,'.",
+ "description" => _("RDN for FAI profile storage."),
"check" => "gosaProperty::isRdn",
"migrate" => "migrate_faiProfileRDN",
"group" => "plugin",
- "mandatory" => FALSE)),
+ "mandatory" => TRUE)),
"plProvidedAcls" => array(
{
$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;