$dndetails) { $i++; if ($i <= $start_entry) continue; if ($i >= $end_entry) break; echo ''; echo ''; printf('',get_icon($ldapserver,$dn)); $formatted_dn = get_rdn($dn); if (!$_SESSION[APPCONFIG]->isCommandAvailable('schema')) { $formatted_dn = explode('=', $formatted_dn, 2); $formatted_dn = $formatted_dn[1]; } printf('', $ldapserver->server_id,rawurlencode(dn_unescape($dn)),htmlspecialchars($formatted_dn)); echo ''; if ($_SESSION[APPCONFIG]->isCommandAvailable('schema')) { 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)'); echo ''; echo ''; printf('',$_SESSION[APPCONFIG]->getFriendlyHTML($attr)); echo ''; echo ''; } echo '
icon%s
 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 '
'; echo '
'; } ?>