|
";
else
if( 0 == strcasecmp( $attr, 'userPassword' )
&& ( $config->GetValue('appearance','obfuscate_password_display') || is_null( get_enc_type( $old_values[ $attr ] ) ) ) )
echo preg_replace( '/./', '*', $old_values[ $attr ] ) . " ";
else
echo nl2br( htmlspecialchars( $old_values[ $attr ] ) ) . " ";
echo " | ";
// is this a multi-valued attribute?
if( is_array( $new_val ) ) {
foreach( $new_val as $i => $v ) {
if( $v == '' ) {
// remove it from the update array if it's empty
unset( $update_array[ $attr ][ $i ] );
$update_array[ $attr ] = array_values( $update_array[ $attr ] );
} else {
echo nl2br( htmlspecialchars( $v ) ) . " ";
}
}
// was this a multi-valued attribute deletion? If so,
// fix the $update_array to reflect that per update_confirm.php's
// expectations
if( $update_array[ $attr ] == array( 0 => '' ) || $update_array[ $attr ] == array() ) {
$update_array[ $attr ] = '';
echo '' . $lang['attr_deleted'] . '';
}
}
elseif( $new_val != '' )
if( 0 == strcasecmp( $attr, 'userPassword' ) &&
( $config->GetValue('appearance','obfuscate_password_display') || is_null( get_enc_type( $new_values[ $attr ] ) ) ) )
echo preg_replace( '/./', '*', $new_val ) . " ";
else
echo htmlspecialchars( $new_val ) . " ";
else
echo '' . $lang['attr_deleted'] . '';
echo " |
\n\n";
}
run_hook ( 'post_display_update_array', array ( 'server_id' => $ldapserver->server_id, 'dn' => $dn,
'update_array' => $update_array, 'index' => $counter ) );
?>