summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8a8e7e)
raw | patch | inline | side by side (parent: f8a8e7e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Sep 2005 08:46:09 +0000 (08:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Sep 2005 08:46:09 +0000 (08:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1344 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/FAI/tabsProfile.inc | [new file with mode: 0644] | patch | blob |
diff --git a/plugins/admin/FAI/tabsProfile.inc b/plugins/admin/FAI/tabsProfile.inc
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+
+class tabsProfile extends tabs
+{
+ var $base= "";
+
+ function tabsProfile($config, $data, $dn)
+ {
+ tabs::tabs($config, $data, $dn);
+ }
+
+ function check()
+ {
+ return (tabs::check(TRUE));
+ }
+
+
+ function save()
+ {
+ $baseobject= $this->by_object['faiProfile'];
+
+ $new_dn= 'cn='.$baseobject->cn.",ou=profiles,ou=fai,ou=configs,ou=systems,".$_SESSION['config']->current['BASE'];
+
+ if ($this->dn != $new_dn && $this->dn != "new"){
+
+ /* if( new_dn is subtree of this->dn ) */
+ $cnt1 = count(split(",",$this->dn));
+ $cnt2 = count(split(",",$new_dn));
+ if((strstr($new_dn,$this->dn))&&($cnt1<$cnt2)){
+ print_red(_("Try to move tree failed. Destination tree is subtree of source tree."));
+ }else{
+ $baseobject->recursive_move($this->dn, $new_dn);
+ }
+ }
+ $this->dn= $new_dn;
+
+ tabs::save(TRUE);
+ }
+
+}
+
+?>