isReadOnly()) error(_('You cannot perform updates while server is in read-only mode'),'error','index.php'); $entry = array(); $entry['dn'] = get_request('dn','GET'); $entry['rdn'] = get_rdn($entry['dn']); # We search all children, not only the visible children in the tree $entry['children'] = $ldapserver->getContainerContents($entry['dn']); # Draw some javaScrpt to enable/disable the filter field if this may be a recursive copy if (is_array($entry['children']) && count($entry['children']) > 0) { ?> %s %s',_('Copy'),htmlspecialchars($entry['rdn'])); printf('

%s: %s     %s: %s

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

',_('Copy'),htmlspecialchars($entry['rdn']),_('to a new object')); echo '
'; echo ''; printf('',htmlspecialchars($entry['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'),server_select_list($ldapserver->server_id,true,'dest_server_id')); echo "\n"; if (is_array($entry['children']) && count($entry['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($entry['dn'])); draw_chooser_link('copy_form.new_dn','true',htmlspecialchars($entry['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"; if ($_SESSION[APPCONFIG]->GetValue('appearance','show_hints')) printf('Light%s',IMGDIR,_('Hint: Copying between different servers only works if there are no schema violations')); echo '
'; ?>