2009-07-22 21:33:12 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("FirePHPCore/fb.php");
|
|
|
|
ob_start();
|
|
|
|
|
|
|
|
function ldap_fullname($ldap_entry) {
|
|
|
|
return $ldap_entry["givenname"][0] .' '. $ldap_entry["sn"][0];
|
|
|
|
}
|
|
|
|
|
|
|
|
function ldap_find($connection, $filter, $attributes) {
|
|
|
|
$search = ldap_search($connection, "o=com, dc=mozilla", $filter, $attributes);
|
|
|
|
return ldap_get_entries($connection, $search);
|
|
|
|
}
|
|
|
|
|
|
|
|
function maketime($slashed_date) {
|
|
|
|
$t = strptime($slashed_date, "%m/%d/%Y");
|
2009-07-24 07:08:47 +04:00
|
|
|
$mtime = mktime($t["tm_hour"], $t["tm_min"], $t["tm_sec"],
|
2009-07-24 07:12:12 +04:00
|
|
|
$t["tm_mon"] + 1, $t["tm_mday"], $t["tm_year"] + 1900);
|
2009-07-24 07:08:47 +04:00
|
|
|
if (DEBUG_ON) {
|
|
|
|
fb($slashed_date, $t, $mtime);
|
|
|
|
}
|
|
|
|
return $mtime;
|
2009-07-22 21:33:12 +04:00
|
|
|
}
|