diff --git a/bureau/admin/adm_dodel.php b/bureau/admin/adm_dodel.php index de8112d2..bc0af0d1 100644 --- a/bureau/admin/adm_dodel.php +++ b/bureau/admin/adm_dodel.php @@ -34,24 +34,51 @@ if (!$admin->enabled) { exit(); } - -if (!is_array($d)) { - $d[]=$d; -} - -reset($d); -while (list($key,$val)=each($d)) { - if (!$admin->checkcreator($val)) { - __("This page is restricted to authorized staff"); - exit(); +if($_POST["del_confirm"] == "y"){ + if (!is_array($d)) { + $d[]=$d; } - if (!($u=$admin->get($val)) || !$admin->del_mem($val)) { - $error.=sprintf(_("Member '%s' does not exist"),$val)."
"; - } else { - $error.=sprintf(_("Member %s successfully deleted"),$u["login"])."
"; + + reset($d); + while (list($key,$val)=each($d)) { + if (!$admin->checkcreator($val)) { + __("This page is restricted to authorized staff"); + exit(); + } + if (!($u=$admin->get($val)) || !$admin->del_mem($val)) { + $error.=sprintf(_("Member '%s' does not exist"),$val)."
"; + } else { + $error.=sprintf(_("Member %s successfully deleted"),$u["login"])."
"; + } } + include("adm_list.php"); + exit(); +}else{ + include("head.php"); + ?> + + +

:

+
+ + +

+

+ get($userid); + echo "".$membre['login']."
"; + } + ?> +

+
+ " />   + " onclick="document.location='adm_list.php';" /> +
+
+ + +