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