📄 adminuser.java
字号:
package com.laoer.bbscs.web.action;
import com.laoer.bbscs.web.form.*;
import com.laoer.bbscs.sys.*;
import org.apache.struts.action.*;
import javax.servlet.http.*;
/**
* <p>Title: TianYi BBS</p>
* <p>Description: TianYi BBS System</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: LAOER.COM/TIANYISOFT.NET</p>
* @author laoer
* @version 6.0
*/
public class AdminUser
extends AdminBaseAction {
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
ActionErrors errors = new ActionErrors();
if (!isLogin(httpServletRequest)) {
errors.add("error.pleaselogin", new ActionError("error.pleaselogin"));
saveErrors(httpServletRequest, errors);
return actionMapping.findForward("adminlogin");
}
AdminUserForm form = (AdminUserForm) actionForm;
if (form.getAction().equals("edit")) {
form.setAction("editdo");
form.setFacehigh(this.getSysInfo().getFacehigh());
form.setFacesize(this.getSysInfo().getFacesize());
form.setFacewith(this.getSysInfo().getFacewith());
form.setForbidnickname(this.getSysInfo().getForbidnickname());
form.setHiddenboards(this.getSysInfo().getHiddenboards());
form.setLogindistance(this.getSysInfo().getLogindistance());
form.setNotehtml(this.getSysInfo().getNotehtml());
form.setNotenumpage(this.getSysInfo().getNotenumpage());
form.setNoteubb(this.getSysInfo().getNoteubb());
form.setRegopen(this.getSysInfo().getRegopen());
form.setSeeuserinfo(this.getSysInfo().getSeeuserinfo());
form.setSeeuserlist(this.getSysInfo().getSeeuserlist());
form.setSignhtml(this.getSysInfo().getSignhtml());
form.setSignmaxlength(this.getSysInfo().getSignmaxlength());
form.setSignubb(this.getSysInfo().getSignubb());
form.setSubscibenummaster(this.getSysInfo().getSubscibenummaster());
form.setSubscibenumsuper(this.getSysInfo().getSubscibenumsuper());
form.setSubscibenumuser(this.getSysInfo().getSubscibenumuser());
form.setUseallsearch(this.getSysInfo().getUseallsearch());
form.setUsesearch(this.getSysInfo().getUsesearch());
httpServletRequest.setAttribute("adminUserForm", form);
return actionMapping.findForward("adminuser");
}
if (form.getAction().equals("editdo")) {
this.getSysInfo().setFacehigh(form.getFacehigh());
this.getSysInfo().setFacesize(form.getFacesize());
this.getSysInfo().setFacewith(form.getFacewith());
this.getSysInfo().setForbidnickname(form.getForbidnickname());
this.getSysInfo().setHiddenboards(form.getHiddenboards());
this.getSysInfo().setLogindistance(form.getLogindistance());
this.getSysInfo().setNotehtml(form.getNotehtml());
this.getSysInfo().setNotenumpage(form.getNotenumpage());
this.getSysInfo().setNoteubb(form.getNoteubb());
this.getSysInfo().setRegopen(form.getRegopen());
this.getSysInfo().setSeeuserinfo(form.getSeeuserinfo());
this.getSysInfo().setSeeuserlist(form.getSeeuserlist());
this.getSysInfo().setSignhtml(form.getSignhtml());
this.getSysInfo().setSignmaxlength(form.getSignmaxlength());
this.getSysInfo().setSignubb(form.getSignubb());
this.getSysInfo().setSubscibenummaster(form.getSubscibenummaster());
this.getSysInfo().setSubscibenumsuper(form.getSubscibenumsuper());
this.getSysInfo().setSubscibenumuser(form.getSubscibenumuser());
this.getSysInfo().setUseallsearch(form.getUseallsearch());
this.getSysInfo().setUsesearch(form.getUsesearch());
this.getSysInfo().changeConfig();
ActionForward f = new ActionForward("/adminUser" + Constant.FILEPREFIX, true);
return f;
}
return actionMapping.findForward("error");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -