📄 postdels.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: PostDels.java
package com.laoer.bbscs.web.action;
import com.laoer.bbscs.business.IForumService;
import com.laoer.bbscs.sys.Constant;
import com.laoer.bbscs.sys.SysUtil;
import com.laoer.bbscs.web.form.PostsForm;
import com.laoer.bbscs.web.servlet.UserCheck;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;
// Referenced classes of package com.laoer.bbscs.web.action:
// BaseAction
public class PostDels extends BaseAction
{
public PostDels()
{
}
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
{
ActionErrors errors = new ActionErrors();
PostsForm form = (PostsForm)actionForm;
UserCheck uc = getUserCheck(httpServletRequest, httpServletResponse, form.getBid());
if(uc.isGuest())
{
errors.add("error.pleaselogin", new ActionError("error.pleaselogin"));
saveErrors(httpServletRequest, errors);
return SysUtil.getPassLogin(actionMapping);
}
if(uc.getBs() == null)
{
errors.add("error.baordsno", new ActionError("error.baordsno"));
saveErrors(httpServletRequest, errors);
return actionMapping.findForward("error");
}
if(!uc.isCanPostNotNeedExp())
{
errors.add("error.purviewerror", new ActionError("error.purviewerror"));
saveErrors(httpServletRequest, errors);
return actionMapping.findForward("error");
}
if(form.getAction().equals("dels"))
{
getForumService().delPosts(form.getBid(), form.getIds(), form.getDelexp(), uc);
ActionForward f = new ActionForward("/manage" + Constant.FILEPREFIX + "?action=m&bid=" + form.getBid() + "&page=" + form.getPage(), true);
return f;
}
if(form.getAction().equals("delauditings"))
{
getForumService().delAuditingPosts(form.getBid(), form.getIds(), uc);
ActionForward f = new ActionForward("/manage" + Constant.FILEPREFIX + "?action=m&bid=" + form.getBid() + "&page=" + form.getPage(), true);
return f;
}
if(form.getAction().equals("delws"))
{
getForumService().realDelPosts(form.getBid(), form.getIds());
ActionForward f = new ActionForward("/manage" + Constant.FILEPREFIX + "?action=w&bid=" + form.getBid() + "&page=" + form.getPage(), true);
return f;
}
if(form.getAction().equals("auditing"))
{
getForumService().auditingPosts(form.getBid(), form.getIds());
ActionForward f = new ActionForward("/manage" + Constant.FILEPREFIX + "?action=a&bid=" + form.getBid() + "&page=" + form.getPage(), true);
return f;
}
if(form.getAction().equals("delall"))
{
getForumService().delWastePost(form.getBid());
ActionForward f = new ActionForward("/manage" + Constant.FILEPREFIX + "?action=w&bid=" + form.getBid(), true);
return f;
}
if(form.getAction().equals("resume"))
{
getForumService().resumePosts(form.getBid(), form.getIds());
ActionForward f = new ActionForward("/manage" + Constant.FILEPREFIX + "?action=w&bid=" + form.getBid() + "&page=" + form.getPage(), true);
return f;
} else
{
return actionMapping.findForward("error");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -