Add not-for-release delete_all() and commented call to it in index.php

This commit is contained in:
Miles Lott 2001-03-24 07:46:31 +00:00
parent bf2b10178b
commit 0852eb8678
2 changed files with 13 additions and 1 deletions

View File

@ -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']);
}
}
} }
?> ?>

View File

@ -28,7 +28,8 @@
"addressbook_footer" => "footer.tpl" )); "addressbook_footer" => "footer.tpl" ));
$this = CreateObject("phpgwapi.contacts"); $this = CreateObject("phpgwapi.contacts");
//$this->delete_all();
//exit;
// Read in user custom fields, if any // Read in user custom fields, if any
$phpgw->preferences->read_repository(); $phpgw->preferences->read_repository();
$customfields = array(); $customfields = array();