📄 adminopen.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: AdminOpen.java
package com.laoer.bbscs.web.action;
import com.laoer.bbscs.sys.SysInfo;
import com.laoer.bbscs.web.form.AdminOpenForm;
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 AdminOpen extends AdminBaseAction
{
public AdminOpen()
{
}
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");
}
AdminOpenForm form = (AdminOpenForm)actionForm;
if(form.getAction().equals("edit"))
{
form.setAction("editdo");
form.setClosemsg(getSysInfo().getClosemsg());
form.setOpen(getSysInfo().getOpen());
httpServletRequest.setAttribute("adminOpenForm", form);
return actionMapping.findForward("adminopen");
}
if(form.getAction().equals("editdo"))
{
getSysInfo().setClosemsg(form.getClosemsg());
getSysInfo().setOpen(form.getOpen());
getSysInfo().changeConfig();
return actionMapping.findForward("adminopen");
} else
{
return actionMapping.findForward("error");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -