X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fabook_ldap_server.php;h=cff3d0993cff5abb7ab2b0cb2c98b74089b5461c;hp=8d80dee359433a581e99d0f584a4cbe85cd34f38;hb=c4faef335b2362c81b8ebf026d4066c12d70536c;hpb=b1fbb25f561e6b151f7cf72744b03253f8d395fb diff --git a/functions/abook_ldap_server.php b/functions/abook_ldap_server.php index 8d80dee3..cff3d099 100644 --- a/functions/abook_ldap_server.php +++ b/functions/abook_ldap_server.php @@ -18,7 +18,7 @@ * and inetOrgPerson (RFC2798) objects and dn, description, sn, givenname, * cn, mail attributes. Other attributes are ignored. * - * @copyright 1999-2012 The SquirrelMail Project Team + * @copyright 1999-2020 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -178,10 +178,11 @@ class abook_ldap_server extends addressbook_backend { var $starttls = false; /** - * Constructor. Connects to database + * Constructor (PHP5 style, required in some future version of PHP) + * Connects to the database * @param array connection options */ - function abook_ldap_server($param) { + function __construct($param) { if(!function_exists('ldap_connect')) { $this->set_error(_("PHP install does not have LDAP support.")); return; @@ -255,6 +256,14 @@ class abook_ldap_server extends addressbook_backend { } } + /** + * Constructor (PHP4 style, kept for compatibility reasons) + * Connects to the database + * @param array connection options + */ + function abook_ldap_server($param) { + return self::__construct($param); + } /** * Open the LDAP server.