3
code for both 2.0.x and 2.2:
$member_handler = xoops_gethandler('member');
$criteria = new Criteria("level", 0); //target inactive users
$users = $member_handler->getUsers($criteria);
foreach (array_keys($users) as $i) {
if ($member_handler->deleteUser($users[$i]) ) {
echo $users[$i]->getVar('uname')." Deleted
";
}
else {
echo "Could not delete ".$users[$i]->getVar('uname')."
";
}
}
Will only work with a POST request, so make a form that submits to this code with the POST method.
We will refine the administrative possibilities in the Profile module over the next iterations and welcome any ideas you may have for needed functionality and workflow.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."
Cusix Software