91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.35M
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-11
  • 語言: 其他
  • 標簽: 其他??

資源簡介

期刊在線投稿系統.rar

資源截圖

代碼片段和文件信息

package?com.qktgxt.action;

import?java.io.IOException;
import?java.sql.ResultSet;

import?javax.servlet.RequestDispatcher;
import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;

import?com.qktgxt.dao.DB;
import?com.qktgxt.orm.Yonghu;
import?com.qktgxt.util.Yhqx;

public?class?login_servlet?extends?HttpServlet{
public?void?service(HttpServletRequest?reqHttpServletResponse?res)throws?ServletException?IOException?
{
String?type=req.getParameter(“type“);

if(type.endsWith(“login“))
{
int?loginType?=?Integer.parseInt(req.getParameter(“loginType“));
switch(loginType){
case?Yhqx.ZB: //主編登錄
zbLogin(req?res);
break;
case?Yhqx.ZJ: //專家登錄
zjLogin(req?res);
break;
case?Yhqx.YH: //普通用戶登錄
yhLogin(req?res);
break;
default:break;
}
}
if(type.endsWith(“userpw“))
{
userpw(req?res);
}

}

public?void?userpw(HttpServletRequest?reqHttpServletResponse?res){
String?oldPass?=?req.getParameter(“userPw“);
String?newpass?=?req.getParameter(“userPw1“);

Yonghu?yonghu?=?(Yonghu)?req.getSession().getAttribute(“userinfo“);

if(oldPass.equals(yonghu.getLoginPw())){
int?id?=?yonghu.getId();
int?qx?=?yonghu.getQx();
String?sql=““;
if(Yhqx.YH==qx){
//普通用戶密碼修改
sql?=?“update?t_yonghu?set?loginPw=‘“+newpass+“‘?where?id=“+id;
}else?if(Yhqx.ZJ==qx){
//家用密碼修改
sql?=?“update?t_zjxx?set?loginPass=‘“+newpass+“‘?where?id=“+id;
}else?if(Yhqx.ZB==qx){
//主編密碼修改
sql?=?“update?t_zbxx?set?loginPass=‘“+newpass+“‘?where?id=“+id;
}

object[]?params={};
DB?mydb=new?DB();
mydb.doUpdate(sql?params);
mydb.closed();

req.setAttribute(“message“?“操作成功!“);
req.setAttribute(“path“?“userPw.jsp“);
yonghu.setLoginPw(newpass);
req.getSession().setAttribute(“userinfo“?yonghu);
????????String?targetURL?=?“/success.jsp“;
dispatch(targetURL?req?res);
}else{
req.setAttribute(“message“?“舊密碼錯誤!“);
req.setAttribute(“path“?“userPw.jsp“);

????????String?targetURL?=?“/success.jsp“;
dispatch(targetURL?req?res);
}
}
public?void?zbLogin(HttpServletRequest?reqHttpServletResponse?res){
String?loginName?=?req.getParameter(“loginName“);
String?loginPw?=?req.getParameter(“loginPw“);
String?sql?=?“select?idxingming?from?t_zbxx?where?loginName=??and?loginPass=??and?del=?“;

object[]?params={loginNameloginPw0};
DB?mydb=new?DB();
try
{
mydb.doPstm(sql?params);
ResultSet?rs=mydb.getRs();
if(rs.next())
{
Yonghu?yonghu=new?Yonghu();
yonghu.setId(rs.getInt(“id“));
yonghu.setName(rs.getString(“xingming“));
yonghu.setLoginName(loginName);
yonghu.setLoginPw(loginPw);
yonghu.setQx(Yhqx.ZB);

rs.close();
mydb.closed();

req.getSession().setAttr

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????4055??2018-06-01?16:45??期刊在線投稿系統\db_qktg.sql

?????文件????????580??2018-06-02?13:44??期刊在線投稿系統\qktgxt\.classpath

?????文件????????291??2018-06-09?09:04??期刊在線投稿系統\qktgxt\.mymetadata

?????文件???????1224??2018-06-10?10:29??期刊在線投稿系統\qktgxt\.project

?????文件????2380784??2018-06-05?18:43??期刊在線投稿系統\qktgxt\JSP期刊在線投稿系統錄像.exe

?????文件???????6010??2018-06-08?03:13??期刊在線投稿系統\qktgxt\src\com\qktgxt\action\login_servlet.java

?????文件???????3920??2018-06-11?07:02??期刊在線投稿系統\qktgxt\src\com\qktgxt\action\zhuce_servlet.java

?????文件???????4540??2018-06-07?01:23??期刊在線投稿系統\qktgxt\src\com\qktgxt\dao\DB.java

?????文件????????731??2018-06-02?23:05??期刊在線投稿系統\qktgxt\src\com\qktgxt\orm\Tgfj.java

?????文件???????1423??2018-06-07?01:33??期刊在線投稿系統\qktgxt\src\com\qktgxt\orm\Zjps.java

?????文件???????1665??2018-06-05?03:20??期刊在線投稿系統\qktgxt\src\com\qktgxt\util\DateUtils.java

?????文件?????????70??2018-06-06?03:56??期刊在線投稿系統\qktgxt\src\dbConfig.properties

?????文件???????1352??2018-06-08?13:57??期刊在線投稿系統\qktgxt\WebRoot\center.jsp

?????文件????????126??2018-06-06?05:35??期刊在線投稿系統\qktgxt\WebRoot\commutil.js

?????文件???????5008??2018-06-10?19:44??期刊在線投稿系統\qktgxt\WebRoot\css\base.css

?????文件????????795??2018-06-08?06:40??期刊在線投稿系統\qktgxt\WebRoot\css\dtree.css

?????文件???????1669??2018-06-08?18:05??期刊在線投稿系統\qktgxt\WebRoot\css\front1.css

?????文件???????6520??2018-06-07?10:34??期刊在線投稿系統\qktgxt\WebRoot\css\layout.css

?????文件???????1168??2018-06-07?10:04??期刊在線投稿系統\qktgxt\WebRoot\css\main.css

?????文件????????638??2018-06-05?16:58??期刊在線投稿系統\qktgxt\WebRoot\css\whole.css

?????文件???????2684??2018-06-03?15:57??期刊在線投稿系統\qktgxt\WebRoot\css\woncore.css

?????文件???????1554??2018-06-08?02:09??期刊在線投稿系統\qktgxt\WebRoot\down.jsp

?????文件????????848??2018-06-06?14:06??期刊在線投稿系統\qktgxt\WebRoot\err\err.jsp

?????文件?????????59??2018-06-05?19:23??期刊在線投稿系統\qktgxt\WebRoot\img\1.gif

?????文件?????????63??2018-06-03?01:19??期刊在線投稿系統\qktgxt\WebRoot\img\10.gif

?????文件?????????63??2018-06-03?19:40??期刊在線投稿系統\qktgxt\WebRoot\img\10_1.gif

?????文件?????????59??2018-06-10?05:21??期刊在線投稿系統\qktgxt\WebRoot\img\1_1.gif

?????文件?????????60??2018-06-01?15:53??期刊在線投稿系統\qktgxt\WebRoot\img\2.gif

?????文件?????????60??2018-06-10?16:19??期刊在線投稿系統\qktgxt\WebRoot\img\2_1.gif

?????文件?????????60??2018-06-03?01:57??期刊在線投稿系統\qktgxt\WebRoot\img\3.gif

............此處省略179個文件信息

評論

共有 條評論