summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07c909e)
raw | patch | inline | side by side (parent: 07c909e)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Apr 2006 15:22:33 +0000 (15:22 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Apr 2006 15:22:33 +0000 (15:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3095 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index 6d188a6997eb07a21a7b4a35e2c3794be66e2d3c..636683a8e90d18d7f19dbf180beb0de33d83ea6a 100644 (file)
*/
if($s_action == "SelectedSystemType") {
$sw = $s_entry;
- $dn_backup = $this->dn;
}else{
if(isset($_POST['system'])){
$sw = $_POST['system'];
}else{
$sw = $s_entry;
}
+
+ $this->dn= "new";
}
- $this->dn= "new";
$this->acl= array(":all");
switch ($sw){
$this->systab= new termtabs($this->config,
$this->config->data['TABS']['TERMTABS'], $this->dn);
$this->systab->set_acl ($this->acl);
- $this->systab->by_object['termgeneric']->cn= "default";
- $this->systab->by_object['termservice']->cn= "default";
$this->systab->by_object['termgeneric']->base = $_SESSION['CurrentMainBase'];
break;
$this->systab= new worktabs($this->config,
$this->config->data['TABS']['WORKTABS'], $this->dn);
$this->systab->set_acl ($this->acl);
- $this->systab->by_object['workgeneric']->cn= "wdefault";
- $this->systab->by_object['workservice']->cn= "default";
$this->systab->by_object['workgeneric']->base = $_SESSION['CurrentMainBase'];
break;
break;
}
- /* 09.02.2006 ; New incoming handling ; hickert.
- * We must create a NEW object of given system type (Posted from SelectDeviceType).
- * But we have to use the same attributes as used in incoming object, thats
- * what we do here.
- */
- if($s_action == "SelectedSystemType"){
-
- /* Store some informations, to be able to add this object to
- * To specified objectgroup and delete incoming object
- */
- $_SESSION['SelectedSystemType']['dn'] = $this->dn;
- $_SESSION['SelectedSystemType']['server'] = $s_entry;
- $_SESSION['SelectedSystemType']['ogroup'] = $_POST['ObjectGroup'];
-
- /* restore dn */
- $this->dn = $dn_backup;
-
- /* Get properties from incoming object */
- $ldap = $this->config->get_ldap_link();
- $ldap->cd($this->dn);
- $ldap->cat($this->dn);
- $res = $ldap->fetch();
-
- /* Unset not needed attributes */
- unset($res['dn']);
- unset($res['objectClass']);
-
- /* Walk through all tabs and set attributes if available */
- foreach($this->systab->by_object as $name => $value){
- foreach($this->systab->by_object[$name]->attributes as $atr){
- if((isset($value))&&(isset($res[$atr]))){
- $this->systab->by_object[$name]->$atr = $res[$atr][0];
- }
- }
- }
- }
-
/* set base ... of current divlist position */
$this->systab->base = $_SESSION['CurrentMainBase'];
}
********************/
/* User wants to edit data? */
-// if ($s_action == "edit"){
if (($s_action == "edit") && (!isset($this->systab->config))){
$this->dn= $this->terminals[$s_entry]['dn'];