index a44816fe38befb3b071ccab275c7a3d3e1a3131c..0a2a6b772b81997dc2e7363e2d143232603bbc8c 100644 (file)
function tabsHook($config, $data, $dn)
{
tabs::tabs($config, $data, $dn);
+ /* Add references/acls/snapshots */
+ $this->addSpecialTabs();
}
function check()
{
$baseobject= $this->by_object['faiHook'];
- $branch = "";
+ $new_dn= 'cn='.$baseobject->cn.",ou=hooks,ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase'];
+
if($_SESSION['faifilter']['branch']!="main"){
- $branch = "ou=".$_SESSION['faifilter']['branch'].",";
+ $new_dn ='cn='.$baseobject->cn.",ou=hooks,".$_SESSION['faifilter']['branch'];
}
- $new_dn= 'cn='.$baseobject->cn.",ou=hooks,".$branch."ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['base'];
-
- print $new_dn;
-
if ($this->dn != $new_dn && $this->dn != "new"){
/* if( new_dn is subtree of this->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);
+// $baseobject->recursive_move($this->dn, $new_dn);
}
}
$this->dn= $new_dn;