• 大小: 4.88MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-14
  • 语言: 数据库
  • 标签: SSH  论坛  Java  

资源简介

1、申请版主(可以发贴直接申请) 2、查看版主 3、举报 4、KE的多媒体插入 5、互相发送消息 6、收藏帖子 7、版主增删帖子增删回复禁言锁定帖子加精华(status 1 2 3)置顶帖子(搜索置顶的,先显示,然后再搜索其他) 8、登录积分+1 发贴积分+2 回复资源分+1 vip通行 帖子管理员, 个人资料,消息列表,我的帖子,我的回复,我的收藏 vip 拦截器 版块访问权限 消息状态 vip 板块权限 导出sql ps:自己需要导入ssh的包,可以参看下buildpath需要哪些

资源截图

代码片段和文件信息

package com.shellar.action;

import com.shellar.bean.Admin;
import com.shellar.bo.impl.AdminBOImpl;
import com.shellar.util.Page;
import com.shellar.util.StringUtil;

public class AdminAction extends baseActionSupport
{
private Admin admin;
private AdminBOImpl adminBOImpl;
private Integer pageSize;
private Integer currentPage;
private Page adminPage;


public Page getAdminPage()
{
return adminPage;
}

public void setAdminPage(Page adminPage)
{
this.adminPage = adminPage;
}

public Integer getPageSize()
{
return pageSize;
}

public void setPageSize(Integer pageSize)
{
this.pageSize = pageSize;
}

public Integer getCurrentPage()
{
return currentPage;
}

public void setCurrentPage(Integer currentPage)
{
this.currentPage = currentPage;
}

public AdminBOImpl getAdminBOImpl()
{
return adminBOImpl;
}

public void setAdminBOImpl(AdminBOImpl adminBOImpl)
{
this.adminBOImpl = adminBOImpl;
}

public Admin getAdmin()
{
return admin;
}

public void setAdmin(Admin admin)
{
this.admin = admin;
}

public void checkAdmin()
{
System.out.println(“check logn admin“);
if (checkRandomCode())
{
Admin tmpAdmin = adminBOImpl.getAdminByName(admin.getAdminname());
if (tmpAdmin != null)
{
if (tmpAdmin.getAdminname().equals(admin.getAdminname())
&& tmpAdmin.getAdminpassword().equals(
admin.getAdminpassword()))
{
session.setAttribute(“admin“ tmpAdmin);
admin = tmpAdmin;
admin.setAdminlogtime(StringUtil.getLocalFormatTime());
admin.setAdminlogip(request.getRemoteHost());
adminBOImpl.updateAdmin(admin);
write(“{success:truemsg:‘‘}“);
return;
}
}

}
write(“{success:falsemsg:‘‘}“);
return;
}
public void checkAdminName()
{
Admin tmpAdmin = adminBOImpl.getAdminByName(admin.getAdminname());
boolean b = (tmpAdmin==null);
writeSimpleResult(b);
}
public void addAdmin()
{
    admin.setAdminlogtime(StringUtil.getLocalFormatTime());
admin.setAdminregtime(StringUtil.getLocalFormatTime());
boolean b = adminBOImpl.addAdmin(admin);
writeSimpleResult(b);

}
public void adminLogout()
{
System.out.println(“admin logout“);
session.removeAttribute(“admin“);
writeSimpleResult(true);
}
public String viewAdmin()
{
if(pageSize == null||pageSize==0)
pageSize = 5;
if(currentPage == null || currentPage ==0)
currentPage = 1;
adminPage = adminBOImpl.getAdminPage(pageSize currentPage);
return “success“;
}
public void deleteAdmin()
{
boolean b = adminBOImpl.deleteAdmin(admin.getAdminid());
if(pageSize == null||pageSize==0)
pageSize = 5;
if(currentPage == null || currentPage ==0)
currentPage = 1;
adminPage = adminBOImpl.getAdminPage(pageSize currentPage);
session.setAttribute(“adminPage“ adminPage);
writeSimpleResult(b);
}
public String vie

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-04-08 18:54  bishe\
     目录           0  2014-05-09 11:28  bishe\bishe\
     文件        2464  2013-04-08 18:40  bishe\bishe\.classpath
     目录           0  2014-05-09 11:30  bishe\bishe\.myeclipse\
     文件         570  2013-04-08 18:40  bishe\bishe\.myhibernatedata
     文件         288  2013-04-08 18:40  bishe\bishe\.mymetadata
     文件         240  2013-04-08 18:40  bishe\bishe\.mystrutsdata
     文件        1771  2013-04-08 18:40  bishe\bishe\.project
     目录           0  2014-05-09 11:28  bishe\bishe\.settings\
     文件          88  2013-04-08 18:40  bishe\bishe\.settings\org.eclipse.core.resources.prefs
     文件         330  2013-04-08 18:40  bishe\bishe\.settings\org.eclipse.jdt.core.prefs
     文件         415  2013-04-08 18:40  bishe\bishe\.springBeans
     文件        5577  2013-02-02 14:31  bishe\bishe\BisheTables.pdc
     目录           0  2013-04-08 18:55  bishe\bishe\WebRoot\
     目录           0  2013-04-08 18:55  bishe\bishe\WebRoot\meta-INF\
     文件          36  2013-04-08 18:40  bishe\bishe\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2014-05-09 11:29  bishe\bishe\WebRoot\WEB-INF\
     目录           0  2014-05-09 11:29  bishe\bishe\WebRoot\WEB-INF\classes\
     文件         156  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\.struts.mex
     文件        1005  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\Spring.xml
     目录           0  2013-04-08 18:55  bishe\bishe\WebRoot\WEB-INF\classes\com\
     目录           0  2013-04-08 18:55  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\
     目录           0  2014-05-09 11:28  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\
     文件        1471  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\.MessageAction.mex
     文件        1394  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\.PageInitAction.mex
     文件         247  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\.SubsectionAction.mex
     文件        1576  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\.TopicstoreAction.mex
     文件         338  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\.UserAction.mex
     文件        4456  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\AdminAction.class
     文件        2484  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\AdminAction.xml
     文件        4713  2013-04-08 18:40  bishe\bishe\WebRoot\WEB-INF\classes\com\shellar\action\baseActionSupport.class
............此处省略1943个文件信息

评论

共有 条评论