15
15
require './common.php';
17
if( ! $ldapserver->haveAuthInfo())
18
pla_error( _('Not enough information to login to server. Please check your configuration.') );
17
if (! $ldapserver->haveAuthInfo())
18
pla_error(_('Not enough information to login to server. Please check your configuration.'));
20
20
$dn = (isset($_GET['dn']) ? $_GET['dn'] : '');
22
$encoded_dn = rawurlencode( $dn );
23
$rdn = get_rdn( $dn );
24
$container = get_container( $dn );
26
$attrs = $ldapserver->getDNAttrs($dn);
27
22
$select_server_html = server_select_list($ldapserver->server_id,true,'server_id_dst');
29
include './header.php'; ?>
33
<h3 class="title"><?php echo _('Compare another DN with'). ' ' . $rdn; ?></h3>
34
<h3 class="subtitle"><?php echo _('Server'); ?>: <b><?php echo $ldapserver->name; ?></b>
36
<?php echo _('Distinguished Name')?>: <b><?php echo $dn; ?></b>
41
<?php echo _('Compare'); ?> <b><?php echo htmlspecialchars( $rdn ); ?></b> <?php echo _('with '); ?>:<br />
44
<form action="compare.php" method="post" name="compare_form">
45
<input type="hidden" name="server_id_src" value="<?php echo $ldapserver->server_id; ?>" />
47
<table style="border-spacing: 10px">
50
<td><acronym title="<?php echo _('Compare this DN with another'); ?>"><?php echo _('Source DN'); ?></acronym>:</td>
52
<input type="text" name="dn_src" size="45" value="<?php echo htmlspecialchars( $dn ); ?>" />
53
<?php draw_chooser_link( 'compare_form.dn_src', 'true', $rdn ); ?></td>
56
<input type="hidden" name="dn_src" value="<?php echo htmlspecialchars( $dn ); ?>" />
60
<td><acronym title="<?php echo _('Compare this DN with another'); ?>"><?php echo _('Destination DN'); ?></acronym>:</td>
62
<input type="text" name="dn_dst" size="45" value="" />
63
<?php draw_chooser_link( 'compare_form.dn_dst', 'true', '' ); ?></td>
68
<td><?php echo _('Destination Server')?>:</td>
69
<td><?php echo $select_server_html; ?></td>
73
<td colspan="2" align="right"><input type="submit" value="<?php echo _('Compare'); ?>" /></td>
24
include './header.php';
28
printf('<h3 class="title">%s %s</h3>',_('Compare another DN with'),htmlspecialchars($rdn));
29
printf('<h3 class="subtitle">%s: <b>%s</b>',_('Server'),$ldapserver->name);
31
printf(' %s: <b>%s</b>',_('Distinguished Name'),htmlspecialchars($dn));
36
printf('%s <b>%s</b> %s<br />',_('Compare'),htmlspecialchars($rdn),_('with '));
38
echo '<form action="compare.php" method="post" name="compare_form">';
39
printf('<input type="hidden" name="server_id_src" value="%s" />',$ldapserver->server_id);
42
echo '<table style="border-spacing: 10px">';
47
printf('<acronym title="%s">%s</acronym>:',_('Compare this DN with another'),_('Source DN'));
49
printf('<input type="text" name="dn_src" size="45" value="%s" />',htmlspecialchars($dn));
50
draw_chooser_link('compare_form.dn_src','true',$rdn);
53
printf('<input type="hidden" name="dn_src" value="%s" />',htmlspecialchars($dn));
59
printf('<td><acronym title="%s">%s</acronym>:</td>',_('Compare this DN with another'),_('Destination DN'));
61
echo '<input type="text" name="dn_dst" size="45" value="" />';
62
draw_chooser_link('compare_form.dn_dst','true','');
67
printf('<tr><td>%s:</td><td>%s</td></tr>',_('Destination Server'),$select_server_html);
70
printf('<tr><td colspan="2" align="right"><input type="submit" value="%s" /></td></tr>',_('Compare'));