_check__jsp.java

来自「公司企业网站管理系统中文豪华版」· Java 代码 · 共 176 行

JAVA
176
字号
/*
 * JSP generated by Resin-3.0.19 (built Mon, 15 May 2006 04:50:47 PDT)
 */

package _jsp._basic._admin;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import mfkvit.login;
import mfkvit.MD5_Test;

public class _check__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;

  

   public String codeString(String s){

        String str=s;

        try {

          byte b[]=str.getBytes("ISO-8859-1");

          str=new String(b);

          return str;

        }

        catch (Exception ex) {

          return str;

        }

      }


  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    javax.servlet.http.HttpSession session = request.getSession(true);
    com.caucho.server.webapp.Application _jsp_application = _caucho_getApplication();
    javax.servlet.ServletContext application = _jsp_application;
    com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, "/basic/admin/", session, 8192, true, false);
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    response.setContentType("text/html; charset=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      mfkvit.login login;
      synchronized (session) {
        login = (mfkvit.login) session.getAttribute("login");
        if (login == null) {
          login = new mfkvit.login();
          session.setAttribute("login", login);
          out.write(_jsp_string1, 0, _jsp_string1.length);
        }
      }
      out.write(_jsp_string1, 0, _jsp_string1.length);
      MD5_Test md5=new MD5_Test();
String rand = (String)session.getAttribute("rand");
 String input = request.getParameter("rand");
   if (rand.equals(input)) {
String message="",logname="",password="";
if(!(session.isNew())){
logname=request.getParameter("logname");
if(logname==null){logname="";}
logname=codeString(logname);
password=request.getParameter("password");
//password=md5.MD5_Test(password);
if(password==null){password="";}
password=codeString(password);
}

      out.write(_jsp_string1, 0, _jsp_string1.length);
      
if(!(logname.equals(""))){
  
      out.write(_jsp_string2, 0, _jsp_string2.length);
      login.setLogname(logname);
      out.write(_jsp_string3, 0, _jsp_string3.length);
      login.setPassword(password);
      out.write(_jsp_string4, 0, _jsp_string4.length);
      
      message=login.getMessage();
      if(message==null){message="";}
    }

      out.write(_jsp_string1, 0, _jsp_string1.length);
      
if(!(session.isNew())){
  if(message.equals("ok")){
    String meb=response.encodeURL("main.jsp");
    response.sendRedirect(meb);
  }
  else{session.setAttribute("login","\u8f93\u5165\u7528\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef");response.sendRedirect("index.jsp");
}
}
}
else{session.setAttribute("rz","\u8f93\u5165\u9a8c\u8bc1\u7801\u9519\u8bef");response.sendRedirect("index.jsp");}

      out.write(_jsp_string5, 0, _jsp_string5.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      com.caucho.jsp.QJspFactory.freePageContext(pageContext);
    }
  }

  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public java.util.ArrayList _caucho_getDependList()
  {
    return _caucho_depends;
  }

  public void _caucho_addDepend(com.caucho.make.PersistentDependency depend)
  {
    super._caucho_addDepend(depend);
    com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
  }

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 7932908523769947432L)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.make.Dependency depend;
      depend = (com.caucho.make.Dependency) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    com.caucho.loader.DynamicClassLoader loader;
    loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
    String resourcePath = loader.getResourcePathSpecificFirst();
    mergePath.addClassPath(resourcePath);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(appDir.lookup("basic/admin/check.jsp"), 9151249422628942071L, false);
    com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
  }

  private final static char []_jsp_string4;
  private final static char []_jsp_string0;
  private final static char []_jsp_string5;
  private final static char []_jsp_string1;
  private final static char []_jsp_string2;
  private final static char []_jsp_string3;
  static {
    _jsp_string4 = "\r\n      ".toCharArray();
    _jsp_string0 = "\r\n\r\n\r\n<html>\r\n<head>\r\n<title>\u8ba4\u8bc1\u7801\u9a8c\u8bc1\u9875\u9762</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\r\n<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">\r\n<META HTTP-EQUIV=\"Expires\" CONTENT=\"0\">\r\n</head>\r\n\r\n<body>\r\n\r\n\r\n".toCharArray();
    _jsp_string5 = "\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n".toCharArray();
    _jsp_string1 = "\r\n".toCharArray();
    _jsp_string2 = "\r\n  ".toCharArray();
    _jsp_string3 = "\r\n    ".toCharArray();
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?