📄 adminuser.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: AdminUser.java
package com.laoer.bbscs.web.action;
import com.laoer.bbscs.sys.Constant;
import com.laoer.bbscs.sys.SysInfo;
import com.laoer.bbscs.web.form.AdminUserForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;
// Referenced classes of package com.laoer.bbscs.web.action:
// AdminBaseAction
public class AdminUser extends AdminBaseAction
{
public AdminUser()
{
}
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(getSysInfo().getFacehigh());
form.setFacesize(getSysInfo().getFacesize());
form.setFacewith(getSysInfo().getFacewith());
form.setForbidnickname(getSysInfo().getForbidnickname());
form.setHiddenboards(getSysInfo().getHiddenboards());
form.setLogindistance(getSysInfo().getLogindistance());
form.setNotehtml(getSysInfo().getNotehtml());
form.setNotenumpage(getSysInfo().getNotenumpage());
form.setNoteubb(getSysInfo().getNoteubb());
form.setRegopen(getSysInfo().getRegopen());
form.setSeeuserinfo(getSysInfo().getSeeuserinfo());
form.setSeeuserlist(getSysInfo().getSeeuserlist());
form.setSignhtml(getSysInfo().getSignhtml());
form.setSignmaxlength(getSysInfo().getSignmaxlength());
form.setSignubb(getSysInfo().getSignubb());
form.setSubscibenummaster(getSysInfo().getSubscibenummaster());
form.setSubscibenumsuper(getSysInfo().getSubscibenumsuper());
form.setSubscibenumuser(getSysInfo().getSubscibenumuser());
form.setUseallsearch(getSysInfo().getUseallsearch());
form.setUsesearch(getSysInfo().getUsesearch());
httpServletRequest.setAttribute("adminUserForm", form);
return actionMapping.findForward("adminuser");
}
if(form.getAction().equals("editdo"))
{
getSysInfo().setFacehigh(form.getFacehigh());
getSysInfo().setFacesize(form.getFacesize());
getSysInfo().setFacewith(form.getFacewith());
getSysInfo().setForbidnickname(form.getForbidnickname());
getSysInfo().setHiddenboards(form.getHiddenboards());
getSysInfo().setLogindistance(form.getLogindistance());
getSysInfo().setNotehtml(form.getNotehtml());
getSysInfo().setNotenumpage(form.getNotenumpage());
getSysInfo().setNoteubb(form.getNoteubb());
getSysInfo().setRegopen(form.getRegopen());
getSysInfo().setSeeuserinfo(form.getSeeuserinfo());
getSysInfo().setSeeuserlist(form.getSeeuserlist());
getSysInfo().setSignhtml(form.getSignhtml());
getSysInfo().setSignmaxlength(form.getSignmaxlength());
getSysInfo().setSignubb(form.getSignubb());
getSysInfo().setSubscibenummaster(form.getSubscibenummaster());
getSysInfo().setSubscibenumsuper(form.getSubscibenumsuper());
getSysInfo().setSubscibenumuser(form.getSubscibenumuser());
getSysInfo().setUseallsearch(form.getUseallsearch());
getSysInfo().setUsesearch(form.getUsesearch());
getSysInfo().changeConfig();
ActionForward f = new ActionForward("/adminUser" + Constant.FILEPREFIX, true);
return f;
} else
{
return actionMapping.findForward("error");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -