_('No entry selected'), 'body'=>_('No entry was selected to delete'), 'type'=>'warn'),'index.php'); if (! is_array($request['dn'])) $request['dn'] = array($request['dn']); $request['children'] = array(); $request['parent'] = array(); foreach ($request['dn'] as $dn) { # Check if the entry exists. if (! $dn || ! $app['server']->dnExists($dn)) system_message(array( 'title'=>_('Entry does not exist'), 'body'=>sprintf('%s (%s/%s)',_('The entry does not exist and will be ignored'),$dn), 'type'=>'error')); # We search all children, not only the visible children in the tree if (! in_array_ignore_case($dn,$request['children'])) { $request['children'] = array_merge($request['children'],$app['server']->getContainerContents($dn,null,0,'(objectClass=*)',LDAP_DEREF_NEVER)); array_push($request['parent'],$dn); } } printf('
%s | |||
%s | |||
%s: | %s | ||
%s | %s | ||
%s | |||
'; printf(_('This request also includes %s children entries.'),count($request['children'])); echo ' | |||
%s | |||
%s | |||