throws SystemException {
MessageResources messages = getResources(request);
ForumDAO dao = ForumDAO.getInstance();
UserDAO userdao = UserDAO.getInstance();
Configurator config=Configurator.getInstance();
ProcessModForm pmForm = (ProcessModForm) form;
try {
dao.dropMod(pmForm.getFid(),pmForm.getName());
int newStatus = 0;
if (dao.isUserMod(pmForm.getName())) {
newStatus = UserStatus.MOD;
} else {
newStatus = UserStatus.USER;
}
userdao.setUserStatus(pmForm.getName(),
newStatus);
log(request, "logs.LOG10",
newStatus + " name=" +
pmForm.getName());
setUpdatedLogin(pmForm.getName());
} catch (SQLException sqle) {
getServlet().log("Connection.process", sqle);
throw new SystemException(sqle);
}
return (new ActionForward("ShowUser.do?uid=" +
pmForm.getName(), true));
}