isReadOnly())
pla_error(_('You cannot perform updates while server is in read-only mode'));
if (! $ldapserver->haveAuthInfo())
pla_error(_('Not enough information to login to server. Please check your configuration.'));
$dn = $_GET['dn'];
$children = $ldapserver->getContainerContents($dn,0,'(objectClass=*)',LDAP_DEREF_NEVER);
$has_children = count($children) > 0 ? true : false;
include './header.php';
echo '
';
printf('
'._('Delete %s').'
',htmlspecialchars(get_rdn($dn)));
printf('
%s: %s %s: %s
',
_('Server'),$ldapserver->name,_('Distinguished Name'),htmlspecialchars(($dn)));
if ($has_children) {
echo '
';
printf('%s
',_('Permanently delete all children also?'));
flush();
# get the total number of child objects (whole sub-tree)
$s = $ldapserver->search(null,dn_escape($dn),'objectClass=*',array('dn'));
$sub_tree_count = count($s);
?>