📄 configindex.jsp
字号:
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/configindex.jsp,v 1.39 2006/04/14 18:02:17 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.39 $
- $Date: 2006/04/14 18:02:17 $
-
- ====================================================================
-
- Copyright (C) 2002-2006 by MyVietnam.net
-
- 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 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.
-
- 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 at MyVietnam net
-
- @author: Minh Nguyen
- @author: Mai Nguyen
- @author: Igor Manic
--%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="net.myvietnam.mvncore.db.DBUtils" %>
<%@ page import="net.myvietnam.mvncore.util.StringUtil" %>
<%@ page import="net.myvietnam.mvncore.configuration.DOM4JConfiguration" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<html>
<head>
<title><fmt:message key="mvnforum.common.forum.title_name"/> - <fmt:message key="mvnforum.admin.index.configindex"/><!--Config mvnForum--></title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>
<%
DOM4JConfiguration mvnforumConfig = (DOM4JConfiguration)request.getAttribute("mvnforumConfig");
DOM4JConfiguration mvncoreConfig = (DOM4JConfiguration)request.getAttribute("mvncoreConfig");
%>
<table width="98%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif"></td>
<td width="100%" nowrap>
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "index", URLResolver.RENDER_URL, "view")%>"><fmt:message key="mvnforum.common.nav.index"/></a> »
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "index")%>"><fmt:message key="mvnforum.admin.index.title_name"/><!--Admin CP--></a> »
<fmt:message key="mvnforum.admin.index.configindex"/><!--Config mvnForum-->
</td>
</tr>
</table>
<br/>
<table class="tborder" width="98%" cellspacing="1" cellpadding="3" align="center">
<tr class="pagedesc">
<td>
<fmt:message key="mvnforum.admin.configindex.description" />
<!--
In this page, you will see the current configuration parameter values. These parameters
can be changed by click the links in each section (step) below. You can backup the configuration file
by choose the task "Backup Configuration File" below. Normally, the changes only take effect when the Servlet Container
is restarted. However, you can choose the task "Reload all Changes" below to reload it (currently only
mvnforum.xml is reloaded, to reload mvncore.xml, you have to restart your Servlet container).
<br/>
Choose below tasks to continue:<br/>
-->
<%if ( permission.canAdminSystem() ) {%>
<a href="<%=urlResolver.encodeURL(request, response, "configbackupprocess")%>" class="command">
<fmt:message key="mvnforum.admin.configindex.backupConfigurationFile"/><!--Backup Configuration File-->
</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="<%=urlResolver.encodeURL(request, response, "commitconfigs")%>" class="command">
<fmt:message key="mvnforum.admin.configindex.reloadAllChanges"/><!--Reload all Changes-->
</a><br/>
<%}%>
</td>
</tr>
</table>
<br/>
<%-- Below is mvncore.xml --%>
<table class="tborder" width="98%" cellspacing="1" cellpadding="3" align="center">
<tr class="portlet-section-header">
<td colspan="2"><fmt:message key="mvnforum.admin.configindex.pluginOptions"/> <!--Configuration mvnCore - Plugin Options--></td>
</tr>
<tr class="portlet-section-body">
<td width="30%"><fmt:message key="mvnforum.admin.configindex.pluginOptions.enable_mvnforum"/><!--enable_mvnforum--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("plugin_options.enable_mvnforum", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.pluginOptions.enable_mvncms"/><!--enable_mvncms--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("plugin_options.enable_mvncms", "")%></td>
</tr>
<tr class="portlet-section-header">
<td colspan="2">
<fmt:message key="mvnforum.admin.configindex.databaseConfiguration"/> <!--Configuration mvnCore - Database Configuration-->
</td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.database_type"/><!--database_type--> <span class="requiredfield">*</span></td>
<%
String str_database_type = mvncoreConfig.getString("dboptions.database_type", "");
String databaseName = "Invalid value, please correct it.";
try {
int database_type = Integer.parseInt(str_database_type);
databaseName = DBUtils.getDatabaseTypeName(database_type);
} catch (Exception e) {}
%>
<td><%=mvncoreConfig.getString("dboptions.database_type", "")%> (<%=databaseName%>)</td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.use_datasource"/><!--use_datasource--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.use_datasource", "")%></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.driver_class_name"/><!--driver_class_name--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.driver_class_name", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.database_url"/><!--database_url--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.database_url", "")%></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.database_user"/><!--database_user--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.database_user", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.database_password"/><!--database_password--> <span class="requiredfield">*</span></td>
<td><%=StringUtil.getHiddenPassword(mvncoreConfig.getString("dboptions.database_password", ""))%></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.max_connection"/><!--max_connection--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.max_connection", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.max_time_to_wait"/><!--max_time_to_wait--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.max_time_to_wait", "")%></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.minutes_between_refresh"/><!--minutes_between_refresh--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.minutes_between_refresh", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.databaseConfiguration.datasource_name"/><!--datasource_name--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dboptions.datasource_name", "")%></td>
</tr>
<tr class="portlet-section-header">
<td colspan="2"><fmt:message key="mvnforum.admin.configindex.mailOptions"/><!--Configuration mvnCore - Mail Options--></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.mailOptions.default_mail_from"/><!--default_mail_from--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("mailoptions.default_mail_from", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.mailOptions.use_mailsource"/><!--use_mailsource--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("mailoptions.use_mailsource", "")%></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.mailOptions.mail_server"/><!--mail_server--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("mailoptions.mail_server", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.mailOptions.username"/><!--username--></td>
<td><%=mvncoreConfig.getString("mailoptions.username", "")%></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.mailOptions.password"/><!--password--></td>
<td><%=StringUtil.getHiddenPassword(mvncoreConfig.getString("mailoptions.password", ""))%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.mailOptions.port"/><!--port--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("mailoptions.port", "")%></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.mailOptions.mailsource_name"/><!--mailsource_name--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("mailoptions.mailsource_name", "")%></td>
</tr>
<tr class="portlet-section-header">
<td colspan="2"><fmt:message key="mvnforum.admin.configindex.paramOptions"/> <!--Configuration mvnCore - Param Options--></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.paramOptions.context_path"/><!--context_path--></td>
<td><%=mvncoreConfig.getString("paramoptions.context_path", "")%></td>
</tr>
<tr class="portlet-section-alternate">
<td><fmt:message key="mvnforum.admin.configindex.paramOptions.server_path"/><!--server_path--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("paramoptions.server_path", "")%></td>
</tr>
<tr class="portlet-section-header">
<td colspan="2"><fmt:message key="mvnforum.admin.configindex.dateOptions"/><!--Configuration mvnCore - Date Options--></td>
</tr>
<tr class="portlet-section-body">
<td><fmt:message key="mvnforum.admin.configindex.dateOptions.server_hour_offset"/><!--server_hour_offset--> <span class="requiredfield">*</span></td>
<td><%=mvncoreConfig.getString("dateoptions.server_hour_offset", "")%></td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -