forked from extern/egroupware
Add not-for-release delete_all() and commented call to it in index.php
This commit is contained in:
parent
bf2b10178b
commit
0852eb8678
@ -638,6 +638,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
function delete_all()
|
||||
{
|
||||
global $phpgw_info;
|
||||
$sri = ldap_search($this->ldap, $phpgw_info["server"]["ldap_contact_context"], "uidnumber=*");
|
||||
$ldap_fields = ldap_get_entries($this->ldap, $sri);
|
||||
|
||||
$entry = "";
|
||||
while (list($null,$entry) = each($ldap_fields)) {
|
||||
$err = ldap_delete($this->ldap,$entry['dn']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -28,7 +28,8 @@
|
||||
"addressbook_footer" => "footer.tpl" ));
|
||||
|
||||
$this = CreateObject("phpgwapi.contacts");
|
||||
|
||||
//$this->delete_all();
|
||||
//exit;
|
||||
// Read in user custom fields, if any
|
||||
$phpgw->preferences->read_repository();
|
||||
$customfields = array();
|
||||
|
Loading…
Reference in New Issue
Block a user