expresso-06.diff
class.ldap_functions.inc.php 2017-01-10 09:06:48.417093054 -0200 | ||
---|---|---|
933 | 933 | |
934 | 934 |
function getUserByEmail($params) |
935 | 935 |
{ |
936 |
$expires = 60*60*24*30; /* 30 days */ |
|
937 | ||
938 |
header("Cache-Control: maxage=".$expires); |
|
939 |
header("Pragma: public"); |
|
940 |
header("Expires: ".gmdate('D, d M Y H:i:s', time()+$expires)); |
|
941 |
|
|
942 | 936 |
$filter = "(&(phpgwAccountType=u)(mail=".$params['email']."))"; |
943 | 937 |
|
944 | 938 |
$ldap_context = $_SESSION['phpgw_info']['expressomail']['ldap_server']['dn']; |