"aclrole" , "NAME" => _("ACL Templates"))); tabs::tabs($config, $data, $dn,"acl"); } function save($ignore_account= FALSE) { $baseobject= $this->by_object['aclrole']; $cn = preg_replace('/,/', '\,', $baseobject->cn); $cn = preg_replace('/"/', '\"', $cn); /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ $new_dn= @LDAP::convert('cn='.$cn.",".get_ou("aclrole", "aclRoleRDN").$baseobject->base); if ($this->dn != $new_dn){ /* Write entry on new 'dn' */ if ($this->dn != "new"){ $baseobject->move($this->dn, $new_dn); $this->by_object['aclrole']= $baseobject; } /* Happen to use the new one */ $this->dn= $new_dn; } $ret= tabs::save(); return $ret; } function save_object($ignore_account= FALSE) { tabs::save_object(); } function execute() { $display= tabs::execute(); if($this->read_only){ $display.= "
"; $display.= " \n"; $display.= "
"; }elseif(!$this->by_object['aclrole']->dialog){ $display.= "

\n"; $display.= " \n"; $display.= " \n"; $display.= "

"; } return($display); } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>