~ubuntu-branches/debian/sid/phpldapadmin/sid

« back to all changes in this revision

Viewing changes to htdocs/server_info.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/server_info.php,v 1.27.2.2 2008/01/13 05:37:01 wurley Exp $
 
2
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/server_info.php,v 1.27.2.4 2008/12/12 12:20:22 wurley Exp $
3
3
 
4
4
/**
5
5
 * Fetches and displays all information that it can from the specified server
13
13
 */
14
14
 
15
15
if (! $_SESSION[APPCONFIG]->isCommandAvailable('server_info'))
16
 
        pla_error(sprintf('%s%s %s',_('This operation is not permitted by the configuration'),_(':'),_('view server informations')));
 
16
        error(sprintf('%s%s %s',_('This operation is not permitted by the configuration'),_(':'),_('view server information')),'error','index.php');
17
17
 
18
18
# The attributes we'll examine when searching the LDAP server's RootDSE
19
19
$root_dse_attributes = array(
94
94
                print '<tr>';
95
95
 
96
96
                if (preg_match('/^[0-9]+\.[0-9]+/',$value)) {
97
 
                        printf('<td width=5%%><img src="images/rfc.png" title="%s" alt="%s" /></td>',
98
 
                               htmlspecialchars($value), htmlspecialchars($value));
 
97
                        printf('<td width=5%%><img src="%s/rfc.png" title="%s" alt="%s" /></td>',
 
98
                               IMGDIR,htmlspecialchars($value), htmlspecialchars($value));
99
99
 
100
100
                        if ($oidtext = support_oid_to_text($value))
101
101
                                if (isset($oidtext['ref']))