亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? configurationwebhandler.java

?? java servlet著名論壇源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/admin/ConfigurationWebHandler.java,v 1.7 2004/02/03 19:07:22 minhnn Exp $
 * $Author: minhnn $
 * $Revision: 1.7 $
 * $Date: 2004/02/03 19:07:22 $
 *
 * ====================================================================
 *
 * 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
 */

package com.mvnforum.admin;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Calendar;
import java.util.Iterator;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.dom4j.*;
import org.dom4j.io.SAXReader;
import org.dom4j.io.XMLWriter;
import net.myvietnam.mvncore.exception.BadInputException;
import net.myvietnam.mvncore.util.FileUtil;
import net.myvietnam.mvncore.util.ParamUtil;

public class ConfigurationWebHandler
{
    private static Log log = LogFactory.getLog(ConfigurationWebHandler.class);

    public ConfigurationWebHandler() {
    }

    public void updateConfigStepOne(HttpServletRequest request)
        throws BadInputException, DocumentException, IOException {

        String MvnforumHome, WebmasterEmail, LogoUrl, SupportedLocales, DefaultLocaleName, DefaultGuestName, DisablePasswordlessAuth,
            RequireActivation, EnableLoginInfoInCookie, EnableLoginInfoInSession, EnableLoginInfoInRealm, EnableLoginInfoInCustomization,
            EnableNewMember, EnableRss, EnableWatch, EnableNewPost, EnableAttachment, EnableAvatar, EnableEmoticon, EnableModeration;

        MvnforumHome = ParamUtil.getParameter(request, "MvnforumHome");
        WebmasterEmail = ParamUtil.getParameter(request, "WebmasterEmail");
        LogoUrl = ParamUtil.getParameter(request, "LogoUrl");
        SupportedLocales = ParamUtil.getParameter(request, "SupportedLocales");
        DefaultLocaleName = ParamUtil.getParameter(request, "DefaultLocaleName");
        DefaultGuestName = ParamUtil.getParameter(request, "DefaultGuestName");
        DisablePasswordlessAuth = ParamUtil.getParameter(request, "DisablePasswordlessAuth");
        RequireActivation = ParamUtil.getParameter(request, "RequireActivation");
        EnableLoginInfoInCookie = ParamUtil.getParameter(request, "EnableLoginInfoInCookie");
        EnableLoginInfoInSession = ParamUtil.getParameter(request, "EnableLoginInfoInSession");
        EnableLoginInfoInRealm = ParamUtil.getParameter(request, "EnableLoginInfoInRealm");
        EnableLoginInfoInCustomization = ParamUtil.getParameter(request, "EnableLoginInfoInCustomization");
        EnableNewMember = ParamUtil.getParameter(request, "EnableNewMember");
        EnableNewPost = ParamUtil.getParameter(request, "EnableNewPost");
        EnableAttachment = ParamUtil.getParameter(request, "EnableAttachment");
        EnableAvatar = ParamUtil.getParameter(request, "EnableAvatar");
        EnableEmoticon = ParamUtil.getParameter(request, "EnableModeration");
        EnableModeration = ParamUtil.getParameter(request, "EnableModeration");
        EnableRss = ParamUtil.getParameter(request, "EnableRss");
        EnableWatch = ParamUtil.getParameter(request, "EnableWatch");

        String strPathName = FileUtil.getServletClassesPath();
        SAXReader reader = new SAXReader();
        Document document = reader.read(strPathName + "mvnforum.xml");

        Element root = document.getRootElement();
        // iterate through child elements of root
        for (Iterator i = root.elementIterator("mvnforumconfig"); i.hasNext(); ) {
            Element element = (Element) i.next();
            for (int j = 0, size = element.nodeCount(); j < size; j++) {
                Node node = element.node(j);
                if (node.getNodeTypeName().equals("Element")) {
                    //System.out.println(node.getName() +"=" + node.getText());
                    if (node.getName().equals("mvnforum_home")) {
                        node.setText(MvnforumHome);
                    } else if (node.getName().equals("webmaster_email")) {
                        node.setText(WebmasterEmail);
                    } else if (node.getName().equals("logo_url")) {
                        node.setText(LogoUrl);
                    } else if (node.getName().equals("supported_locales")) {
                        node.setText(SupportedLocales);
                    } else if (node.getName().equals("default_locale_name")) {
                        node.setText(DefaultLocaleName);
                    } else if (node.getName().equals("default_guest_name")) {
                        node.setText(DefaultGuestName);
                    } else if (node.getName().equals("disable_passwordless_auth")) {
                        node.setText(DisablePasswordlessAuth);
                    } else if (node.getName().equals("enable_login_info_in_cookie")) {
                        node.setText(EnableLoginInfoInCookie);
                    } else if (node.getName().equals("enable_login_info_in_session")) {
                        node.setText(EnableLoginInfoInSession);
                    } else if (node.getName().equals("enable_login_info_in_realm")) {
                        node.setText(EnableLoginInfoInRealm);
                    } else if (node.getName().equals("enable_login_info_in_customization")) {
                        node.setText(EnableLoginInfoInCustomization);
                    } else if (node.getName().equals("require_activation")) {
                        node.setText(RequireActivation);
                    } else if (node.getName().equals("enable_new_member")) {
                        node.setText(EnableNewMember);
                    } else if (node.getName().equals("enable_new_post")) {
                        node.setText(EnableNewPost);
                    } else if (node.getName().equals("enable_rss")) {
                        node.setText(EnableRss);
                    } else if (node.getName().equals("enable_watch")) {
                        node.setText(EnableWatch);
                    } else if (node.getName().equals("enable_attachment")) {
                        node.setText(EnableAttachment);
                    } else if (node.getName().equals("enable_avatar")) {
                        node.setText(EnableAvatar);
                    } else if (node.getName().equals("enable_emoticon")) {
                        node.setText(EnableEmoticon);
                    } else if (node.getName().equals("enable_moderation")) {
                        node.setText(EnableModeration);
                    }
                }
            }
        }
        saveDocument(document, strPathName + "mvnforum.xml");
    }

    public void updateConfigStepTwo(HttpServletRequest request)
        throws BadInputException, DocumentException, IOException {

        String maxAttachmentSize, maxFavoriteThread, maxEditDays, maxAttachDays, maxDeleteDays, rowsPerPage, rowsPerRSS,
            hotTopicThreshold, maxPostsPerHour, maxMembersPerHour, enableBackupOnServer, maxImportSize;

        maxAttachmentSize = ParamUtil.getParameter(request, "MaxAttachmentSize");
        maxFavoriteThread = ParamUtil.getParameter(request, "MaxFavoriteThread");
        maxEditDays = ParamUtil.getParameter(request, "MaxEditDays");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图丝袜美腿| 久久久精品免费免费| 一区二区三区成人| 色播五月激情综合网| 亚洲一区二区三区国产| 欧美性猛交xxxx乱大交退制版| 亚洲女爱视频在线| 欧美精品粉嫩高潮一区二区| 日韩国产欧美在线播放| 久久毛片高清国产| 91免费国产在线观看| 亚洲综合区在线| 日韩一区二区免费在线观看| 精品一二三四区| 国产精品国产精品国产专区不片| 91在线视频播放| 日韩在线一区二区三区| ww亚洲ww在线观看国产| 99热精品国产| 日本一区中文字幕| 国产欧美一区二区三区沐欲 | 国产精品久久久爽爽爽麻豆色哟哟| www.成人在线| 视频精品一区二区| 国产日韩高清在线| 欧美日韩亚洲综合在线| 国产乱码精品一区二区三区五月婷| 国产精品乱码人人做人人爱| 欧美喷水一区二区| 成人激情电影免费在线观看| 午夜私人影院久久久久| 久久精品一区八戒影视| 欧美日韩第一区日日骚| 国产成a人无v码亚洲福利| 午夜a成v人精品| 国产精品免费看片| 精品欧美一区二区在线观看| 99re热视频精品| 久久99精品国产.久久久久久| 亚洲女性喷水在线观看一区| 2020国产精品久久精品美国| 欧美综合在线视频| 国产精品99久久久久久久女警| 亚洲一区二区精品久久av| 国产亚洲人成网站| 欧美一级夜夜爽| 在线亚洲一区观看| 99久久免费国产| 国产精品亚洲第一区在线暖暖韩国| 亚洲成人三级小说| 亚洲同性gay激情无套| 久久在线观看免费| 欧美一区二区日韩| 欧美无乱码久久久免费午夜一区| 岛国一区二区三区| 国产精品77777竹菊影视小说| 人人超碰91尤物精品国产| 亚洲精品国产精华液| 国产精品白丝在线| 国产欧美综合在线| 国产喂奶挤奶一区二区三区| 久久综合色鬼综合色| 9191国产精品| 4438成人网| 欧美区一区二区三区| 欧美日韩亚洲综合| 欧美日韩国产综合久久| 欧美私模裸体表演在线观看| 欧洲视频一区二区| 欧美亚洲日本国产| 欧美在线观看视频一区二区三区| 色国产综合视频| 在线观看av一区二区| 在线视频一区二区三| 日本福利一区二区| 在线精品视频小说1| 精品视频在线免费看| 欧美午夜精品电影| 欧美一区午夜视频在线观看| 日韩一区二区免费高清| 日韩美女天天操| 精品国产伦一区二区三区免费| 日韩免费高清av| 久久综合精品国产一区二区三区 | 国模大尺度一区二区三区| 激情综合色播激情啊| 国产传媒日韩欧美成人| 成人av资源站| 色成人在线视频| 欧美浪妇xxxx高跟鞋交| 日韩一级二级三级| 久久久av毛片精品| 国产精品妹子av| 一区二区三区精品| 日韩高清不卡在线| 国产一区二区三区香蕉| 成人精品视频.| 在线国产亚洲欧美| 欧美一区二区三区播放老司机| 久久女同互慰一区二区三区| 亚洲欧洲韩国日本视频| 亚洲一区二区在线观看视频| 蜜臀精品一区二区三区在线观看 | 日本欧美大码aⅴ在线播放| 捆绑紧缚一区二区三区视频 | 理论片日本一区| 国产精品1区二区.| 在线视频国内一区二区| 日韩欧美国产1| 中文字幕成人av| 亚洲第一福利一区| 国产一区二区伦理| 色综合久久88色综合天天6| 欧美一区二区福利在线| 亚洲国产高清aⅴ视频| 亚洲影院久久精品| 国产精品中文字幕一区二区三区| 91免费国产视频网站| 日韩一级高清毛片| 亚洲精品日韩一| 久国产精品韩国三级视频| 91麻豆精品在线观看| 精品福利在线导航| 一区二区三区小说| 国产一区二区毛片| 在线播放中文一区| 亚洲天堂精品在线观看| 激情六月婷婷久久| 欧美精品日日鲁夜夜添| 日韩毛片一二三区| 国产在线精品一区在线观看麻豆| 欧美图区在线视频| 中文字幕久久午夜不卡| 久久爱www久久做| 精品视频在线视频| 亚洲欧美日韩国产综合| 国产一区在线看| 欧美一区二区在线观看| 亚洲精品亚洲人成人网| 成人爱爱电影网址| 久久综合狠狠综合久久综合88 | 制服视频三区第一页精品| 亚洲视频一区二区在线观看| 国产一区二区在线影院| 91精品免费在线| 亚洲影院在线观看| 色天使久久综合网天天| 国产精品乱子久久久久| 国产成人丝袜美腿| 欧美不卡一二三| 日本一不卡视频| 欧美人伦禁忌dvd放荡欲情| 一区二区三区日韩在线观看| 成人avav在线| 国产精品色在线| 国产成人在线视频播放| 久久久久国产精品麻豆| 韩国av一区二区三区四区| 日韩免费一区二区| 久热成人在线视频| 欧美精品一区二区三区蜜臀| 久久99精品国产91久久来源| 日韩一级片在线播放| 亚洲国产成人精品视频| 欧美精品成人一区二区三区四区| 一区二区三区成人| 欧美伊人精品成人久久综合97| 有码一区二区三区| 欧美日韩久久一区二区| 手机精品视频在线观看| 制服丝袜中文字幕一区| 秋霞午夜av一区二区三区| 337p亚洲精品色噜噜狠狠| 麻豆传媒一区二区三区| 欧美一区二区三区视频在线观看| 欧美bbbbb| 2022国产精品视频| a亚洲天堂av| 伊人开心综合网| 欧美精品在线观看一区二区| 乱一区二区av| 日本一区二区三区国色天香| 福利一区二区在线观看| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 成人av资源站| 亚洲高清不卡在线观看| 欧美片在线播放| 国产露脸91国语对白| 国产精品国产三级国产三级人妇| 日本韩国欧美在线| 日韩av不卡一区二区| 2023国产精品| 91久久精品一区二区| 亚洲r级在线视频| 日韩免费视频线观看| eeuss鲁一区二区三区| 午夜久久电影网| 久久久美女毛片| 色偷偷久久人人79超碰人人澡 | 一区二区三区精品视频|