-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.jsp
174 lines (163 loc) · 4.67 KB
/
index.jsp
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
<%@page import="java.io.*"%>
<html>
<head>
<link rel="shortcut icon" href="include/fav.ico">
<link rel="stylesheet" type="text/css" href="include/style.css">
<link rel="stylesheet" type="text/css" href="include/menu.css">
<script type="text/javascript" src="include/menu.js"></script>
</head>
<body style="margin: 10;">
<table height="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr height="1">
<td colspan="3">
<img src="include/banner.jpg">
</td>
</tr>
<tr height="1">
<td align="left" style="padding-left: 8px; padding-right: 8px;"><img src="include/logo.jpg" border="0"></img></td>
<td align="left">
<table cellpadding="3" cellspacing="0" border="0">
<tr>
<td align="left" valign="middle">
<a href="index.jsp?page=account"><b>
<%
if(request.getParameter("page") != null && request.getParameter("page").compareTo("account") == 0)
{
out.print("<font color=\"#444444\">ACCOUNTS</font>");
}
else
{
out.print("<font color=\"#aaaaaa\">ACCOUNTS</font>");
}
%>
</b></a>
</td>
<td>
|
</td>
<td>
<a href="index.jsp?page=role"><b>
<%
if(request.getParameter("page") != null && (request.getParameter("page").compareTo("role") == 0 || request.getParameter("page").compareTo("rolexml") == 0))
{
out.print("<font color=\"#444444\">CHARACTERS</font>");
}
else
{
out.print("<font color=\"#aaaaaa\">CHARACTERS</font>");
}
%>
</b></a>
</td>
<td>
|
</td>
<td>
<a href="index.jsp?page=server"><b>
<%
if(request.getParameter("page") != null && request.getParameter("page").compareTo("server") == 0)
{
out.print("<font color=\"#444444\">SERVER CONFIGURATION</font>");
}
else
{
out.print("<font color=\"#aaaaaa\">SERVER CONFIGURATION</font>");
}
%>
</b></a>
</td>
<td>
|
</td>
<td>
<a href="index.jsp?page=serverctrl"><b>
<%
if(request.getParameter("page") != null && request.getParameter("page").compareTo("serverctrl") == 0)
{
out.print("<font color=\"#444444\">SERVER CONTROL</font>");
}
else
{
out.print("<font color=\"#aaaaaa\">SERVER CONTROL</font>");
}
%>
</b></a>
</td>
<td>
|
</td>
<td>
<ul id="menu">
<li onmouseover="javascript:show_submenu('sub_plugins');" onmouseout="javascript:hide_submenu('sub_plugins');">
<a href="index.jsp?plugin"><b><font color="#aaaaaa">▼ADDONS</font></b></a>
<ul id="sub_plugins">
<%
File f = new File(request.getRealPath("addons"));
String[] files = f.list();
java.util.Arrays.sort(files);
if (files.length > 0)
{
for (int i=0; i<files.length; i++)
{
f = new File(request.getRealPath("addons") + "/" + files[i]);
if(f.isDirectory())
{
out.print("<li><a href=\"index.jsp?plugin=" + files[i] + "\"> <b>● </b>" + files[i] + "</a></li>");
}
}
}
%><li style="border-bottom: 1px solid #cccccc;"><a href="http://pwtools.codeplex.com/discussions/264800">Search Plugins...</a></li>
</ul>
</li>
</ul>
</td>
</tr>
</table>
</td>
<td align="right" valign="middle" style="padding-right: 8px;"><%pageContext.include("login.jsp");%></td>
</tr>
<tr height="1">
<td colspan="3">
<br>
</td>
</tr>
<tr>
<td align="center" valign="top" colspan="3">
<%
if(request.getParameter("page") != null)
{
if(request.getParameter("page").compareTo("account") == 0)
{
pageContext.include("account.jsp");
}
if(request.getParameter("page").compareTo("role") == 0)
{
pageContext.include("role.jsp");
}
if(request.getParameter("page").compareTo("rolexml") == 0)
{
pageContext.include("rolexml.jsp");
}
if(request.getParameter("page").compareTo("server") == 0)
{
pageContext.include("server.jsp");
}
if(request.getParameter("page").compareTo("serverctrl") == 0)
{
pageContext.include("serverctrl.jsp");
}
if(request.getParameter("page").compareTo("login") == 0)
{
pageContext.include("login.jsp");
}
}
if(request.getParameter("plugin") != null)
{
out.print("<iframe src=\"addons/" + request.getParameter("plugin") + "/\" width=\"100%\" height=\"100%\" frameborder=\"0\"></iframe>");
}
%>
</td>
</tr>
</table>
</body>
</html>