changed toe expected dataformat
This commit is contained in:
parent
26fb38cb0f
commit
4102d605b1
|
@ -24,6 +24,8 @@ $Id$
|
|||
*/
|
||||
include_once('../lib/ldap.inc');
|
||||
|
||||
|
||||
|
||||
echo '<html><head><title>';
|
||||
echo _('Delete Account');
|
||||
echo '</title>
|
||||
|
@ -35,9 +37,12 @@ echo '</title>
|
|||
<table rules="all" class="delete" width="100%">
|
||||
<tr><td>';
|
||||
|
||||
if ($DN && $type)
|
||||
foreach ($DN as $dn) {
|
||||
if ($type) {
|
||||
$DN = split("[\?&]", $QUERY_STRING]);
|
||||
array_shift($DN);
|
||||
foreach ($DN as $dn) {
|
||||
$dn = str_replace("\'", '',$dn);
|
||||
|
||||
switch ($type) {
|
||||
case 'user':
|
||||
$success = ldap_delete($_SESSION['ldap']->server(), $dn);
|
||||
|
@ -57,6 +62,6 @@ foreach ($DN as $dn) {
|
|||
if (!$error) echo $dn. _('deleted.');
|
||||
echo '</td></tr><tr><td>';
|
||||
}
|
||||
|
||||
}
|
||||
echo '</form></body></html>';
|
||||
?>
|
Loading…
Reference in New Issue