001: /*
002: * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/MVNForumGlobal.java,v 1.42 2008/01/29 08:09:17 minhnn Exp $
003: * $Author: minhnn $
004: * $Revision: 1.42 $
005: * $Date: 2008/01/29 08:09:17 $
006: *
007: * ====================================================================
008: *
009: * Copyright (C) 2002-2007 by MyVietnam.net
010: *
011: * All copyright notices regarding mvnForum MUST remain
012: * intact in the scripts and in the outputted HTML.
013: * The "powered by" text/logo with a link back to
014: * http://www.mvnForum.com and http://www.MyVietnam.net in
015: * the footer of the pages MUST remain visible when the pages
016: * are viewed on the internet or intranet.
017: *
018: * This program is free software; you can redistribute it and/or modify
019: * it under the terms of the GNU General Public License as published by
020: * the Free Software Foundation; either version 2 of the License, or
021: * any later version.
022: *
023: * This program is distributed in the hope that it will be useful,
024: * but WITHOUT ANY WARRANTY; without even the implied warranty of
025: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
026: * GNU General Public License for more details.
027: *
028: * You should have received a copy of the GNU General Public License
029: * along with this program; if not, write to the Free Software
030: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
031: *
032: * Support can be obtained from support forums at:
033: * http://www.mvnForum.com/mvnforum/index
034: *
035: * Correspondence and Marketing Questions can be sent to:
036: * info at MyVietnam net
037: *
038: * @author: Minh Nguyen
039: * @author: Mai Nguyen
040: */
041: package com.mvnforum;
042:
043: public class MVNForumGlobal {
044:
045: private MVNForumGlobal() {
046: }
047:
048: /*************************************************************************
049: * NOTE: below constants can be changed for each build,
050: * these constant MUST NOT break the compatibility
051: *************************************************************************/
052: public final static String IMAGE_DIR = "/mvnplugin/mvnforum/images";
053:
054: public final static String EMOTION_DIR = "/mvnplugin/mvnforum/images/emotion/";
055:
056: public final static String CSS_FULLPATH = "/mvnplugin/mvnforum/css/style.css";
057:
058: public final static String CSS_PREVIEW_FULLPATH = "/mvnplugin/mvnforum/css/style_preview.css";
059:
060: public final static String CSS_BACKUP_FULLPATH = "/mvnplugin/mvnforum/css/style_backup.css";
061:
062: public final static String LOGO_FULLPATH = "/mvnplugin/mvnforum/images/logo.gif";
063:
064: // Note that we cannot put / at the end because getRealPath will remove it in Tomcat 4.1.7 :((
065: public final static String UPLOADED_AVATAR_DIR = "/mvnplugin/mvnforum/upload/memberavatars";
066:
067: public final static String RESOURCE_BUNDLE_NAME = "mvnForum_i18n";
068:
069: /** value to control the flood prevention. Note value from 0 to 999 is belong to mvnCore */
070: public final static Integer FLOOD_ID_NEW_POST_PER_IP = new Integer(
071: 1000);
072: public final static Integer FLOOD_ID_NEW_MEMBER_PER_IP = new Integer(
073: 1001);
074: public final static Integer FLOOD_ID_LOGIN_PER_IP = new Integer(
075: 1002);
076: public final static Integer FLOOD_ID_NEW_MESSAGE_PER_IP = new Integer(
077: 1003);
078: public final static Integer FLOOD_ID_NEW_POST_PER_MEMBER = new Integer(
079: 1004);
080: public final static Integer FLOOD_ID_HTTP_REQUEST_PER_IP = new Integer(
081: 1005);
082:
083: /** The maximum length of the email in database */
084: public final static int MAX_MEMBER_EMAIL_LENGTH = 60;
085:
086: /** The maximum length of the member login name in database */
087: public final static int MAX_MEMBER_LOGIN_LENGTH = 30;
088:
089: /** The type of search index: Disk */
090: public final static int SEARCH_INDEX_TYPE_DISK = 0;
091: /** The type of search index: Database */
092: public final static int SEARCH_INDEX_TYPE_DATABASE = 1;
093:
094: public static final int MIN_MINUTES_TO_RATE_ALBUM_ITEM_AGAIN = 5;
095:
096: public static final int MIN_MINUTES_TO_VOTE_POLL_AGAIN = 5;
097:
098: public final static String TEMPLATE_SENDACTIVATECODE_PREFIX = "sendactivemailtemplate";
099: public final static String TEMPLATE_SENDACTIVATECODE_SUBJECT = "sendactivemailtemplate_subject.ftl";
100: public final static String TEMPLATE_SENDACTIVATECODE_BODY = "sendactivemailtemplate_body.ftl";
101:
102: public final static String TEMPLATE_FORGOTPASSWORD_PREFIX = "forgotpasswordtemplate";
103: public final static String TEMPLATE_FORGOTPASSWORD_SUBJECT = "forgotpasswordtemplate_subject.ftl";
104: public final static String TEMPLATE_FORGOTPASSWORD_BODY = "forgotpasswordtemplate_body.ftl";
105:
106: public final static String TEMPLATE_WATCHMAIL_DIGEST_PREFIX = "watchmailtemplate_digest";
107: public final static String TEMPLATE_WATCHMAIL_DIGEST_SUBJECT = "watchmailtemplate_digest_subject.ftl";
108: public final static String TEMPLATE_WATCHMAIL_DIGEST_BODY = "watchmailtemplate_digest_body.ftl";
109:
110: public final static String TEMPLATE_WATCHMAIL_SINGLE_PREFIX = "watchmailtemplate_single";
111: public final static String TEMPLATE_WATCHMAIL_SINGLE_SUBJECT = "watchmailtemplate_single_subject.ftl";
112: public final static String TEMPLATE_WATCHMAIL_SINGLE_BODY = "watchmailtemplate_single_body.ftl";
113:
114: public final static String TEMPLATE_WATCHMAIL_GATEWAY_DIGEST_PREFIX = "watchmailtemplate_gateway_digest";
115: public final static String TEMPLATE_WATCHMAIL_GATEWAY_DIGEST_SUBJECT = "watchmailtemplate_gateway_digest_subject.ftl";
116: public final static String TEMPLATE_WATCHMAIL_GATEWAY_DIGEST_BODY = "watchmailtemplate_gateway_digest_body.ftl";
117: public final static String TEMPLATE_WATCHMAIL_GATEWAY_DIGEST_BODY_HTML = "watchmailtemplate_gateway_digest_body_html.ftl";
118:
119: public final static String TEMPLATE_WATCHMAIL_GATEWAY_SINGLE_PREFIX = "watchmailtemplate_gateway_single";
120: public final static String TEMPLATE_WATCHMAIL_GATEWAY_SINGLE_SUBJECT = "watchmailtemplate_gateway_single_subject.ftl";
121: public final static String TEMPLATE_WATCHMAIL_GATEWAY_SINGLE_BODY = "watchmailtemplate_gateway_single_body.ftl";
122:
123: public final static String TEMPLATE_SENDMAIL_BECAUSE_CENSORED_POST_PREFIX = "sendmailtemplate_postcensored";
124: public final static String TEMPLATE_SENDMAIL_BECAUSE_CENSORED_POST_SUBJECT = "sendmailtemplate_postcensored_subject.ftl";
125: public final static String TEMPLATE_SENDMAIL_BECAUSE_CENSORED_POST_BODY = "sendmailtemplate_postcensored_body.ftl";
126:
127: }
|