isReadOnly()) pla_error(_('You cannot perform updates while server is in read-only mode')); if (! $ldapserver->haveAuthInfo()) pla_error(_('Not enough information to login to server. Please check your configuration.')); $dn = $_GET['dn'] ; $rdn = get_rdn($dn); $attrs = $ldapserver->getDNAttrs($dn); $select_server_html = server_select_list($ldapserver->server_id,true,'dest_server_id'); $children = $ldapserver->getContainerContents($dn); include './header.php'; # Draw some javaScrpt to enable/disable the filter field if this may be a recursive copy if (is_array($children) && count($children) > 0) { ?> '; printf('

%s %s

',_('Copy '),$rdn); printf('

%s: %s     %s: %s

',_('Server'),$ldapserver->name,_('Distinguished Name'),$dn); echo '
'; printf('%s %s %s:

',_('Copy '),htmlspecialchars($rdn),_('to a new object')); echo '
'; printf('',$dn); printf('',$ldapserver->server_id); echo ''; echo ''; printf('',_('The full DN of the new entry to be created when copying the source entry'),_('Destination DN')); printf(''; printf('',_('Destination Server'),$select_server_html); if (is_array($children) && count($children) > 0) { echo ''; printf('',_('Recursive copy')); echo '',_('Recursively copy all children of this object as well.')); echo ''; printf('',_('When performing a recursive copy, only copy those entries which match this filter'),_('Filter')); echo ''; printf('',_('Delete after copy (move):')); echo ''; } else { printf('',_('Delete after copy (move):')); } printf('',_('Copy ')); echo '
%s:',htmlspecialchars($dn)); draw_chooser_link('copy_form.new_dn','true',$rdn); echo '
%s%s
:'; printf('(%s)
%s:'; echo '
%s'; printf('(%s)',_('Make sure your filter (above) will select all child records.')); echo '
%s
'; echo ''; if ($config->GetValue('appearance','show_hints')) printf('%s',_('Hint: Copying between different servers only works if there are no schema violations')); echo '
'; ?>