⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumconfig.java

📁 javaBB,一套很不錯的JSP源碼,特共享給大家
💻 JAVA
字号:
package org.javabb.vh;

import org.javabb.infra.ConfigurationFactory;

/*
 * Copyright 2004 JavaFree.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Class utilized to Helper the Velocity to see to configurations
 * $Id: ForumConfig.java,v 1.11.6.1.2.3 2006/09/14 00:09:32 daltoncamargo Exp $
 * @author Dalton Camargo - <a href="mailto:dalton@javabb.org">dalton@javabb.org </a> <br>
 */
public class ForumConfig {
	
	/**
	 * @return Returns the domain.
	 */
	public String getDomain() {
		return ConfigurationFactory.getConf().domain;
	}
	/**
	 * @return Returns the forumName.
	 */
	public String getForumName() {
		return ConfigurationFactory.getConf().forumName;
	}
	/**
	 * @return Returns the lang.
	 */
	public String getLang() {
		return ConfigurationFactory.getConf().lang;
	}
	/**
	 * @return Returns the theme.
	 */
	public String getTheme() {
		return ConfigurationFactory.getConf().theme;
	}
	/**
	 * @return Returns the dateFormat.
	 */
	public String getDateFormat() {
		return ConfigurationFactory.getConf().dateFormat;
	}
	/**
	 * @return Returns the postsPage.
	 */
	public String getPostsPage() {
		return ConfigurationFactory.getConf().postsPage.toString();
	}
	/**
	 * @return Returns the timeFormat.
	 */
	public String getTimeFormat() {
		return ConfigurationFactory.getConf().timeFormat;
	}
	/**
	 * @return Returns the topicsPage.
	 */
	public String getTopicsPage() {
		return ConfigurationFactory.getConf().topicsPage.toString();
	}
	/**
	 * @return Returns the buttonLang.
	 */
	public String getButtonLang() {
		return ConfigurationFactory.getConf().buttonLang.toString();
	}
    /**
     * @return Returns the notifyTopic.
     */
    public String getNotifyTopic() {
        return ConfigurationFactory.getConf().emailNofityTopic.toString();
    }
    /**
     * @return Returns the smtpHost.
     */
    public String getSmtpHost() {
        return ConfigurationFactory.getConf().smtpServerHost;
    }
    /**
     * @return Returns the smtpPassword.
     */
    public String getSmtpPassword() {
        return ConfigurationFactory.getConf().smtpServerUserPassword;
    }
    /**
     * @return Returns the smtpUser.
     */
    public String getSmtpUser() {
        return ConfigurationFactory.getConf().smtpServerUserName;
    }
    /**
     * @return Returns the adminMail.
     */
    public String getAdminMail() {
        return ConfigurationFactory.getConf().adminMail;
    }
    /**
     * @return Returns the floodControl.
     */
    public String getFloodControl() {
        return ConfigurationFactory.getConf().floodControl;
    }
    
	public String getForumAnnounceText() {
		return ConfigurationFactory.getConf().forumAnnounceText;
	}
	
	public String getActiveCaptcha() {
		return ConfigurationFactory.getConf().activeCaptcha;
	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -