enabled) {
  __("This page is restricted to authorized staff");
  exit();
}
$fields = array (
		 "d" => array ("request", "array", array()),
		 "del_confirm" => array("request", "string", ""),
);
getFields($fields);
if($del_confirm == "y"){
  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 (!($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 {
  if (!is_array($d) || count($d)==0) {
    $error=_("Please check the accounts you want to delete");
    require("adm_list.php");
    exit();
  } 
    include("head.php");
    ?>