projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow caller to get message object before sending
[squirrelmail.git]
/
functions
/
abook_ldap_server.php
diff --git
a/functions/abook_ldap_server.php
b/functions/abook_ldap_server.php
index b62076b1444f272d02830329b0518926b2e6a1ab..72abcc7861ef74534ff0d0eceb62acb19cb660eb 100644
(file)
--- 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.
*
* and inetOrgPerson (RFC2798) objects and dn, description, sn, givenname,
* cn, mail attributes. Other attributes are ignored.
*
- * @copyright 1999-201
0
The SquirrelMail Project Team
+ * @copyright 1999-201
8
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @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;
/**
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
*/
* @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;
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.
/**
* Open the LDAP server.