$dndetails) { $i++; if ($i <= $start_entry) continue; if ($i >= $end_entry) break; echo '
'; echo ''; printf('',get_icon($ldapserver,$dn)); printf('', $ldapserver->server_id,rawurlencode(dn_unescape($dn)),htmlspecialchars(get_rdn($dn))); echo '
%s
'; echo '
'; echo ''; printf('',htmlspecialchars(dn_unescape($dn))); # Iterate over each attribute for this entry foreach ($dndetails as $attr => $values) { # Ignore DN, we've already displayed it. if ($attr == 'dn') continue; if ($ldapserver->isAttrBinary($attr)) $values = array('(binary)'); if (isset($friendly_attrs[strtolower($attr)])) $attr = sprintf('%s', htmlspecialchars($friendly_attrs[strtolower($attr)])); else $attr = htmlspecialchars($attr); echo ''; printf('',$attr); echo ''; echo ''; } echo '
dn%s
%s'; if ($ldapserver->isJpegPhoto($attr)) draw_jpeg_photos($ldapserver,$dn,$attr,false,false,'align="left"'); else if (is_array($values)) foreach ($values as $value) echo str_replace(' ',' ',htmlspecialchars($value)).'
'; else echo str_replace(' ',' ',htmlspecialchars($values)).'
'; echo '
'; # Flush every 5th entry (speeds things up a bit) if ($i % 5 == 0) flush(); } ?>