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'),htmlspecialchars($rdn)); printf('

%s: %s     %s: %s

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

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