_CheckConn__jsp.java
5.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/*
* JSP generated by Resin-4.0.58 (built Fri, 24 Aug 2018 01:23:14 PDT)
*/
package _jsp._systeminfo;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import weaver.hrm.*;
import weaver.general.Util;
public class _CheckConn__jsp extends com.caucho.jsp.JavaPage
{
private static final java.util.HashMap<String,java.lang.reflect.Method> _jsp_functionMap = new java.util.HashMap<String,java.lang.reflect.Method>();
private boolean _caucho_isDead;
private boolean _caucho_isNotModified;
private com.caucho.jsp.PageManager _jsp_pageManager;
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.WebApp _jsp_application = _caucho_getApplication();
com.caucho.jsp.PageContextImpl pageContext = _jsp_pageManager.allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false);
TagState _jsp_state = null;
try {
_jspService(request, response, pageContext, _jsp_application, session, _jsp_state);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
_jsp_pageManager.freePageContext(pageContext);
}
}
private void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.caucho.jsp.PageContextImpl pageContext,
javax.servlet.ServletContext application,
javax.servlet.http.HttpSession session,
TagState _jsp_state)
throws Throwable
{
javax.servlet.jsp.JspWriter out = pageContext.getOut();
final javax.el.ELContext _jsp_env = pageContext.getELContext();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
javax.servlet.jsp.tagext.JspTag _jsp_parent_tag = null;
com.caucho.jsp.PageContextImpl _jsp_parentContext = pageContext;
response.setContentType("text/html");
weaver.conn.RecordSet RecordSet;
RecordSet = (weaver.conn.RecordSet) pageContext.getAttribute("RecordSet");
if (RecordSet == null) {
RecordSet = new weaver.conn.RecordSet();
pageContext.setAttribute("RecordSet", RecordSet);
}
response.setHeader("cache-control", "no-cache");
response.setHeader("pragma", "no-cache");
response.setHeader("expires", "Mon 1 Jan 1990 00:00:00 GMT");
String flag = "0";
try{
User user = (User)request.getSession(true).getAttribute("weaver_user@bean") ;
if(user == null) flag = "1";
if(flag.equals("0")) {
RecordSet.executeSql("select count(1) from License");
if(RecordSet.getCounts()==0) {
flag = "2";
}
}
int userid = Util.getIntValue(request.getParameter("userid"), -1);
if(userid!=user.getUID()) flag = "3";
if(Util.getIntValue(request.getParameter("f_weaver_belongto_userid"), 0)>0)flag="0";
}catch(Exception e){}
out.print(flag);
}
private com.caucho.make.DependencyContainer _caucho_depends
= new com.caucho.make.DependencyContainer();
public java.util.ArrayList<com.caucho.vfs.Dependency> _caucho_getDependList()
{
return _caucho_depends.getDependencies();
}
public void _caucho_addDepend(com.caucho.vfs.PersistentDependency depend)
{
super._caucho_addDepend(depend);
_caucho_depends.add(depend);
}
protected void _caucho_setNeverModified(boolean isNotModified)
{
_caucho_isNotModified = true;
}
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (_caucho_isNotModified)
return false;
if (com.caucho.server.util.CauchoSystem.getVersionId() != 6165118203484593848L)
return true;
return _caucho_depends.isModified();
}
public long _caucho_lastModified()
{
return 0;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
TagState tagState;
}
public void init(com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.server.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("systeminfo/CheckConn.jsp"), -145039383278629956L, false);
_caucho_depends.add(depend);
loader.addDependency(depend);
}
final static class TagState {
void release()
{
}
}
public java.util.HashMap<String,java.lang.reflect.Method> _caucho_getFunctionMap()
{
return _jsp_functionMap;
}
public void caucho_init(ServletConfig config)
{
try {
com.caucho.server.webapp.WebApp webApp
= (com.caucho.server.webapp.WebApp) config.getServletContext();
init(config);
if (com.caucho.jsp.JspManager.getCheckInterval() >= 0)
_caucho_depends.setCheckInterval(com.caucho.jsp.JspManager.getCheckInterval());
_jsp_pageManager = webApp.getJspApplicationContext().getPageManager();
com.caucho.jsp.TaglibManager manager = webApp.getJspApplicationContext().getTaglibManager();
com.caucho.jsp.PageContextImpl pageContext = new com.caucho.jsp.InitPageContextImpl(webApp, this);
} catch (Exception e) {
throw com.caucho.config.ConfigException.create(e);
}
}
}