~ubuntu-branches/debian/jessie/phpldapadmin/jessie

« back to all changes in this revision

Viewing changes to htdocs/add_attr_form.php

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella
  • Date: 2009-03-16 14:54:15 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090316145415-7dsvj319dd02h83j
Tags: 1.1.0.6-1
* New upstream release. (Closes: #518578)
* debian/rules: removed "-m 644" from the dh_install call. (Closes: #518847)
* debian/postrm: remove config.php at purge time. (Closes: #519086)
* debian/patches/hungarian.dpatch: fixed a hungarian translation.
  (Closes: #505559)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/add_attr_form.php,v 1.16.2.2 2007/12/26 09:26:32 wurley Exp $
 
2
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/add_attr_form.php,v 1.16.2.4 2008/12/12 12:20:22 wurley Exp $
3
3
 
4
4
/**
5
5
 * Displays a form for adding an attribute/value to an LDAP entry.
15
15
require './common.php';
16
16
 
17
17
if ($ldapserver->isReadOnly())
18
 
        pla_error(_('You cannot perform updates while server is in read-only mode'));
 
18
        error(_('You cannot perform updates while server is in read-only mode'),'error','index.php');
19
19
 
 
20
$entry = array();
20
21
$entry['dn']['string'] = get_request('dn','GET');
21
22
$entry['rdn'] = get_rdn($entry['dn']['string']);
22
23
 
24
25
printf('<h3 class="subtitle">%s: <b>%s</b> &nbsp;&nbsp;&nbsp; %s: <b>%s</b></h3>',
25
26
        _('Server'),$ldapserver->name,_('Distinguished Name'),htmlspecialchars($entry['dn']['string']));
26
27
 
 
28
$dn = array();
27
29
$dn['attrs'] = $ldapserver->getDNAttrs($entry['dn']['string']);
28
30
$dn['oclasses'] = $ldapserver->getDNAttr($entry['dn']['string'],'objectClass');
29
31