index c6663ea20c5875974ec5068a8a9fcc0dfc7ea398..1bb4fdc72085494d789db6f63ecf8b9558374ce8 100644 (file)
$this->dialog= new $a_setup[0]($this->config,
$this->config->data['TABS'][$a_setup[2]],$this->dn);
$this->is_dialog = true;
+ $_SESSION['objectinfo'] = $this->dn;
}
$name = $this->dialog->save();
$this->dialog = new $a_setup[0]($this->config,
- $this->config->data['TABS'][$a_setup[2]],$this->dn);
+ $this->config->data['TABS'][$a_setup[2]],$this->dn,$name);
$this->dialog->by_object[$a_setup[1]]->cn = $name;
$this->is_dialog = true;
}
unset($this->dialog);
$this->dialog=NULL;
$this->is_dialog = false;
+ unset($_SESSION['objectinfo']);
}
-
/* This check if the given tab could be saved
* If it was possible to save it, remove dialog object.
* If it wasn't possible, show errors and keep dialog.
unset($this->dialog);
$this->dialog=NULL;
$this->is_dialog=false;
+ unset($_SESSION['objectinfo']);
}
}
-
/* If dialog is set, but $this->is_dialog==false, then
* only the "abort" button is shown, this are dialogs that must not be saved.
* If is_dialog == true, we are currently editing tab objects.
if(!$faifilter['ShowScripts']){
$abort = true;
}
- $img="<img src='images/fai_script' title='"._("Scripts")."' alt='S'>";
+ $img="<img src='images/fai_script.png' title='"._("Scripts")."' alt='S'>";
$info = _("Scripts");
break;
case "FAIvariable" :
$info = _("Templates");
break;
default :
- $img="<img src='images/empty.png' >";$info = "";break;
+ $img="<img src='images/empty.png' alt=''>";$info = "";break;
}
}
ksort($this->objects);
reset ($this->objects);
+
+ /* use numeric index, thats a bit more secure */
+ $tmp0 = array();
+ foreach($this->objects as $obj){
+ $tmp0[]= $obj;
+ }
+ $this->objects = array();
+ $this->objects = $tmp0;
+
}
function remove_lock()