* and inetOrgPerson (RFC2798) objects and dn, description, sn, givenname,
* cn, mail attributes. Other attributes are ignored.
*
- * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @copyright 1999-2018 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
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;
}
}
+ /**
+ * 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.