mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
I hope i did not break too much. ldap-support should now be mostly
complette. Some things are still to do.
This commit is contained in:
parent
0e967d2b64
commit
7a855bfd7e
@ -273,8 +273,18 @@
|
|||||||
{
|
{
|
||||||
global $phpgw_info, $phpgw, $ldap;
|
global $phpgw_info, $phpgw, $ldap;
|
||||||
|
|
||||||
#ldap_delete($ldap,"appl=email, ou=phpgwpreferences,".$account_id);
|
|
||||||
#ldap_delete($ldap,"ou=phpgwpreferences,".$account_id);
|
#ldap_delete($ldap,"ou=phpgwpreferences,".$account_id);
|
||||||
|
|
||||||
|
//delete sub dn's
|
||||||
|
$sri = ldap_search($ldap, $phpgw_info["server"]["ldap_context"], "objectclass=phpgw_*");
|
||||||
|
$allValues = ldap_get_entries($ldap, $sri);
|
||||||
|
|
||||||
|
for ($i=0; $i < $allValues["count"]; $i++)
|
||||||
|
{
|
||||||
|
#print "<br> delete".$allValues[$i]["dn"];
|
||||||
|
ldap_delete($ldap,$allValues[$i]["dn"]);
|
||||||
|
#print ldap_error($ldap);
|
||||||
|
}
|
||||||
ldap_delete($ldap,$account_id);
|
ldap_delete($ldap,$account_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,24 +155,24 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
$phpgw->common->preferences_delete("byappnotheme",$phpgw_info["user"]["account_id"],"common");
|
$phpgw->preferences->preferences_delete("byappnotheme",$phpgw_info["user"]["account_id"],"common");
|
||||||
|
|
||||||
$phpgw->db->lock("preferences");
|
$phpgw->db->lock("preferences");
|
||||||
|
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"maxmatchs","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"maxmatchs","common");
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"tz_offset","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"tz_offset","common");
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"dateformat","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"dateformat","common");
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"timeformat","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"timeformat","common");
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"lang","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"lang","common");
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"default_app","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"default_app","common");
|
||||||
|
|
||||||
if ($navbar_text) {
|
if ($navbar_text) {
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"navbar_text","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"navbar_text","common");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($phpgw_info["user"]["apps"]["admin"]) {
|
if ($phpgw_info["user"]["apps"]["admin"]) {
|
||||||
if ($show_currentusers) {
|
if ($show_currentusers) {
|
||||||
$phpgw->common->preferences_add($phpgw_info["user"]["account_id"],"show_currentusers","common");
|
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"show_currentusers","common");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user