📄 index.jsp
字号:
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/index.jsp,v 1.30 2004/03/27 09:51:40 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.30 $
- $Date: 2004/03/27 09:51:40 $
-
- ====================================================================
-
- Copyright (C) 2002-2004 by MyVietnam.net
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or any later version.
-
- All copyright notices regarding mvnForum MUST remain intact
- in the scripts and in the outputted HTML.
- The "powered by" text/logo with a link back to
- http://www.mvnForum.com and http://www.MyVietnam.net in the
- footer of the pages MUST remain visible when the pages
- are viewed on the internet or intranet.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
- Support can be obtained from support forums at:
- http://www.mvnForum.com/mvnforum/index
-
- Correspondence and Marketing Questions can be sent to:
- info@MyVietnam.net
-
- @author: Minh Nguyen minhnn@MyVietnam.net
- @author: Mai Nguyen mai.nh@MyVietnam.net
--%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="com.mvnforum.MVNForumInfo" %>
<%@ page import="net.myvietnam.mvncore.MVNCoreInfo" %>
<%@ page import="net.myvietnam.mvncore.info.DatabaseInfo" %>
<%@ page import="net.myvietnam.mvncore.info.SystemInfo" %>
<%@ page import="net.myvietnam.mvncore.info.ServletInfo" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<html>
<head>
<title>mvnForum - Administration Zone</title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=contextPath%>/mvnplugin/mvnforum/css/style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>
<table width="95%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif"></td>
<td width="100%" nowrap>
<a class="nav" href="<%=indexUrl%>">mvnForum</a> »
Admin CP
</td>
</tr>
</table>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="pagedesc">
<td>
Thank you for choosing mvnForum as your forum solution.
This screen will give you a quick overview of all the various statistics of your board.
You can get back to this page by clicking on the Admin Index link in the top menu.
To return to the index of your board, click the mvnForum logo in the top of this page.
The other links on the top menu will allow you to control every aspect of your forum experience,
each screen will have instructions on how to use the tools.<br/>
Choose below tasks to continue:<br/>
<%if ( permission.canAdminSystem() ) {%>
<a href="testsystem" class="command">Test System Configuration</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="misctasks" class="command">Miscellaneous Tasks</a><br/>
<%}%>
<%if ( permission.canEditAnyForum() || permission.canAddForum()) {%>
<a href="forummanagement" class="command">Forum Management</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="usermanagement" class="command">User Management</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="groupmanagement" class="command">Group Management</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="sendmail" class="command">Send Mail</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="configindex" class="command">Config mvnForum</a><br/>
<%}%>
</td>
</tr>
</table>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">mvnForum Infomation:</td>
</tr>
<tr class="trow1">
<td width="30%">Product Name</td>
<td><%=MVNForumInfo.getProductName()%></td>
</tr>
<tr class="trow2">
<td>Description</td>
<td><%=MVNForumInfo.getProductDesc()%></td>
</tr>
<tr class="trow1">
<td>Version</td>
<td><%=MVNForumInfo.getProductVersion()%></td>
</tr>
<tr class="trow2">
<td>Release Date</td>
<td><%=MVNForumInfo.getProductReleaseDate()%></td>
</tr>
<tr class="trow1">
<td>Home page</td>
<td><a href="<%=MVNForumInfo.getProductHomepage()%>"><%=MVNForumInfo.getProductHomepage()%></a></td>
</tr>
<tr class="trow2">
<td><input type="submit" class="mainoption" value="Check latest version now" onClick="javascript: document.mvnforumimage.src='http://www.mvnforum.com/mvnforum/getmvnforumimage'; return false;"></td>
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/emptyspace.gif" alt="Latest mvnForum version" name="mvnforumimage" id="mvnforumimage" border="0"></td>
</tr>
</table>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">MyVietnam Framework Infomation:</td>
</tr>
<tr class="trow1">
<td width="30%">Product Name</td>
<td><%=MVNCoreInfo.getProductName()%></td>
</tr>
<tr class="trow2">
<td>Description</td>
<td><%=MVNCoreInfo.getProductDesc()%></td>
</tr>
<tr class="trow1">
<td>Version</td>
<td><%=MVNCoreInfo.getProductVersion()%></td>
</tr>
<tr class="trow2">
<td>Release Date</td>
<td><%=MVNCoreInfo.getProductReleaseDate()%></td>
</tr>
<tr class="trow1">
<td>Home page</td>
<td><a href="<%=MVNCoreInfo.getProductHomepage()%>"><%=MVNCoreInfo.getProductHomepage()%></a></td>
</tr>
<tr class="trow2">
<td><input type="submit" class="mainoption" value="Check latest version now" onClick="javascript: document.mvncoreimage.src='http://www.mvnforum.com/mvnforum/getmvncoreimage'; return false;"></td>
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/emptyspace.gif" alt="Latest mvnCore version" name="mvncoreimage" id="mvncoreimage" border="0"></td>
</tr>
</table>
<br/>
<%if ( permission.canAdminSystem() ) {%>
<% ServletInfo servletInfo = new ServletInfo(application); %>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">Application Server Infomation:</td>
</tr>
<tr class="trow1">
<td width="30%">Application Server</td>
<td><%=servletInfo.getServerInfo()%></td>
</tr>
<tr class="trow2">
<td>Servlet Version</td>
<td><%=servletInfo.getServletVersion()%></td>
</tr>
</table>
<br/>
<% DatabaseInfo databaseInfo = new DatabaseInfo();%>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">Database Information:</td>
</tr>
<tr class="trow1">
<td width="30%">Database Name</td>
<td><%=databaseInfo.getDatabaseProductName()%></td>
</tr>
<tr class="trow2">
<td>Database Version</td>
<td><%=databaseInfo.getDatabaseProductVersion()%></td>
</tr>
<tr class="trow1">
<td width="30%">Database Url</td>
<td><%=databaseInfo.getDatabaseUrl()%></td>
</tr>
<tr class="trow2">
<td>Database Username</td>
<td><%=databaseInfo.getDatabaseUsername()%></td>
</tr>
<tr class="trow1">
<td>JDBC Driver Name</td>
<td><%=databaseInfo.getDriverName()%></td>
</tr>
<tr class="trow2">
<td>JDBC Driver Version</td>
<td><%=databaseInfo.getDriverVersion()%></td>
</tr>
</table>
<br/>
<% SystemInfo systemInfo = new SystemInfo(); %>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">System Information:</td>
</tr>
<tr class="trow1">
<td width="30%">Virtual Machine Name</td>
<td><%=systemInfo.getVmName()%></td>
</tr>
<tr class="trow2">
<td>Virtual Machine Vendor</td>
<td><%=systemInfo.getVmVendor()%></td>
</tr>
<tr class="trow1">
<td>Virtual Machine Version</td>
<td><%=systemInfo.getVmVersion()%></td>
</tr>
<tr class="trow2">
<td>Virtual Machine Runtime Name</td>
<td><%=systemInfo.getRuntimeName()%></td>
</tr>
<tr class="trow1">
<td>Virtual Machine Runtime Version</td>
<td><%=systemInfo.getRuntimeVersion()%></td>
</tr>
<tr class="trow2">
<td>OS Name</td>
<td><%=systemInfo.getOsName()%></td>
</tr>
<tr class="trow1">
<td>OS Version</td>
<td><%=systemInfo.getOsVersion()%></td>
</tr>
<tr class="trow2">
<td>CPU</td>
<td><%=systemInfo.getCpu()%></td>
</tr>
<tr class="trow1">
<td>Total Memory</td>
<td><%=systemInfo.getTotalMemoryKB()%> KB</td>
</tr>
<tr class="trow2">
<td>Free Memory</td>
<td><%=systemInfo.getFreeMemoryKB()%> KB</td>
</tr>
</table>
<%}/*if can admin system*/%>
<br/>
<%@ include file="footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -