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