📄 _index__jsp.java
字号:
/*
* JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
*/
package _forum._admin;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import com.coolservlets.forum.*;
import com.coolservlets.forum.util.*;
import com.coolservlets.forum.util.tree.*;
import com.coolservlets.forum.util.admin.*;
public class _index__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
javax.servlet.http.HttpSession session = pageContext.getSession();
javax.servlet.ServletContext application = pageContext.getServletContext();
response.setContentType("text/html;charset=gb2312");
request.setCharacterEncoding("GB2312");
try {
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
/**
* $RCSfile: index.jsp,v $
* $Revision: 1.4 $
* $Date: 2000/12/18 02:06:21 $
*/
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
com.coolservlets.forum.util.admin.AdminBean adminBean;
synchronized (session) {
adminBean = (com.coolservlets.forum.util.admin.AdminBean) session.getValue("adminBean");
if (adminBean == null) {
adminBean = new com.coolservlets.forum.util.admin.AdminBean();
session.putValue("adminBean", adminBean);
}
}
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
//////////////////////////////
// Jive installation check
// Check for the existence of the property "setup" in the
// jive.properties file. This is managed by the PropertyManager class.
// This property tells us if the admin tool is being run for the first time.
boolean setupError = false;
String installed = null;
try {
installed = PropertyManager.getProperty("setup");
if( installed == null || !installed.equals("true") ) {
// the "installed" property doesn't exist or isn't set
response.sendRedirect("setup/setup.jsp");
return;
}
//else if( !installed.equals("true") ) {
// setupError = true;
//}
}
catch( Exception e ) {
// signal an error. the file jive.properties might not exist.
setupError = true;
}
// print out a setup error:
if( setupError ) {
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
// for some reason, we have to call flush.. some app servers won't
// display the above html w/o flushing the stream
out.flush();
return;
}
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
////////////////////////////////
// Jive authorization check
// check the bean for the existence of an authorization token.
// Its existence proves the user is valid. If it's not found, redirect
// to the login page
Authorization authToken = adminBean.getAuthToken();
if( authToken == null ) {
response.sendRedirect( "login.jsp" );
return;
}
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
////////////////////////
// get parameters
boolean logout = ParamUtils.getBooleanParameter(request,"logout");
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
/////////////////////////
// logout if requested:
if( logout ) {
try {
session.invalidate();
adminBean.resetAuthToken();
}
catch( IllegalStateException ignored ) { // if session is already invalid
}
finally {
response.sendRedirect( "index.jsp" );
return;
}
}
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
///////////////////////////////////////
// Get the permissions for this user:
boolean isSystemAdmin = ((Boolean)session.getValue("jiveAdmin.systemAdmin")).booleanValue();
boolean isForumAdmin = ((Boolean)session.getValue("jiveAdmin.forumAdmin")).booleanValue();
boolean isGroupAdmin = ((Boolean)session.getValue("jiveAdmin.groupAdmin")).booleanValue();
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
//////////////////////////////////////////////////////////////////
// set the menu trees in the bean based on the user's permissions
// system tree
if( isSystemAdmin || isGroupAdmin ) {
com.coolservlets.forum.util.tree.Tree systemTree
= new com.coolservlets.forum.util.tree.Tree("system");
int nodeID = 0;
TreeNode node = null;
if( isSystemAdmin ) {
node = new TreeNode( nodeID++, "系统设置" );
node.addChild( new TreeLeaf("系统缓存", "cache.jsp") );
node.addChild( new TreeLeaf("数据库信息", "dbInfo.jsp") );
node.addChild( new TreeLeaf("搜索设置", "searchSettings.jsp") );
node.addChild( new TreeLeaf("属性管理器", "propManager.jsp") );
node.setVisible(true);
systemTree.addChild(node);
}
if( isSystemAdmin ) {
node = new TreeNode( nodeID++, "用户" );
node.addChild( new TreeLeaf("用户信息", "users.jsp") );
//node.addChild( new TreeLeaf("System Admins", "systemAdmins.jsp") );
node.addChild( new TreeLeaf("修改密码", "password.jsp") );
node.addChild( new TreeLeaf("添加用户", "createUser.jsp") );
//node.addChild( new TreeLeaf("Edit User", "editUser.jsp") );
node.addChild( new TreeLeaf("删除用户", "removeUser.jsp") );
node.setVisible(true);
systemTree.addChild(node);
}
if( isSystemAdmin || isGroupAdmin ) {
node = new TreeNode( nodeID++, "组" );
node.addChild( new TreeLeaf("组信息", "groups.jsp") );
if( isSystemAdmin ) {
node.addChild( new TreeLeaf("添加组", "createGroup.jsp") );
}
node.addChild( new TreeLeaf("修改组", "editGroup.jsp") );
node.addChild( new TreeLeaf("删除组", "removeGroup.jsp") );
node.setVisible(true);
systemTree.addChild(node);
}
if( systemTree.size() > 0 ) {
adminBean.addTree( "systemTree", systemTree );
}
}
// forum tree
if( isSystemAdmin ) {
com.coolservlets.forum.util.tree.Tree forumTree
= new com.coolservlets.forum.util.tree.Tree("forum");
int nodeID = 0;
TreeNode node = null;
node = new TreeNode( nodeID++, "论坛" );
node.addChild( new TreeLeaf("概要", "forums.jsp") );
node.addChild( new TreeLeaf("添加", "createForum.jsp") );
node.addChild( new TreeLeaf("属性修改", "editForum.jsp") );
node.addChild( new TreeLeaf("删除", "removeForum.jsp") );
node.addChild( new TreeLeaf("过滤器", "forumFilters.jsp") );
node.addChild( new TreeLeaf("内容", "forumContent.jsp") );
node.setVisible(true);
forumTree.addChild(node);
adminBean.addTree( "forumTree", forumTree );
}
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
JspFactory.getDefaultFactory().releasePageContext(pageContext);
}
}
private com.caucho.java.LineMap _caucho_line_map;
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.util.CauchoSystem.getVersionId() != 2057024144)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Depend depend;
depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public com.caucho.java.LineMap _caucho_getLineMap()
{
return _caucho_line_map;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.java.LineMap lineMap,
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);
mergePath.addClassPath(getClass().getClassLoader());
_caucho_line_map = new com.caucho.java.LineMap("_index__jsp.java", "/forum/admin/index.jsp");
_caucho_line_map.add(10, 1);
_caucho_line_map.add(2, 34);
_caucho_line_map.add(9, 42);
_caucho_line_map.add(18, 44);
_caucho_line_map.add(21, 53);
_caucho_line_map.add(58, 81);
_caucho_line_map.add(66, 88);
_caucho_line_map.add(101, 122);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/e:/jnjt/forum/admin/index.jsp"), 1021625566000L, 6420L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string7;
private static byte []_jsp_string3;
private static byte []_jsp_string1;
private static byte []_jsp_string4;
private static byte []_jsp_string2;
private static byte []_jsp_string5;
private static byte []_jsp_string6;
private static byte []_jsp_string0;
static {
try {
_jsp_string7 = "\r\n <frameset cols=\"175,*\" bordercolor=\"#0099cc\" border=\"0\" frameborder=\"0\" style=\"background-color:#0099cc\">\r\n <frame src=\"sidebar.jsp\" name=\"sidebar\" scrolling=\"auto\" marginheight=\"0\" marginwidth=\"0\" noresize> \r\n <frameset rows=\"15,*\" bordercolor=\"#0099cc\" border=\"0\" frameborder=\"0\" style=\"background-color:#0099cc\">\r\n <frame src=\"shadow.html\" name=\"shadow\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" noresize> \r\n <frame src=\"main.jsp\" name=\"main\" scrolling=\"auto\" noresize>\r\n </frameset>\r\n \r\n </frameset>\r\n \r\n</frameset>\r\n\r\n</html>\r\n\r\n\r\n".getBytes("GB2312");
_jsp_string3 = "\r\n <html>\r\n <head>\r\n <title>Jive Administration - Beta</title>\r\n <link rel=\"stylesheet\" href=\"style/global.css\">\r\n </head>\r\n <body>\r\n Setup Error! Make sure your <b>jive.properties</b> file is in\r\n your app server's classpath.\r\n </body>\r\n </html>\r\n".getBytes("GB2312");
_jsp_string1 = "\r\n \r\n".getBytes("GB2312");
_jsp_string4 = "\r\n\r\n\r\n".getBytes("GB2312");
_jsp_string2 = "\r\n \r\n".getBytes("GB2312");
_jsp_string5 = "\r\n\r\n".getBytes("GB2312");
_jsp_string6 = "\r\n\r\n<html>\r\n<head>\r\n<title>Jive Administration</title>\r\n</head>\r\n\r\n<frameset rows=\"85,*\" bordercolor=\"#0099cc\" border=\"0\" frameborder=\"0\" framespacing=\"0\" style=\"background-color:#0099cc\">\r\n <frame src=\"header.jsp\" name=\"header\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" noresize>\r\n ".getBytes("GB2312");
_jsp_string0 = "\r\n".getBytes("GB2312");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -