001: /*
002: * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/MVNForumConstant.java,v 1.18 2007/10/09 11:09:22 lexuanttkhtn Exp $
003: * $Author: lexuanttkhtn $
004: * $Revision: 1.18 $
005: * $Date: 2007/10/09 11:09:22 $
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: * @author: Igor Manic
041: */
042: package com.mvnforum;
043:
044: public final class MVNForumConstant {
045:
046: /** Cannot instantiate. */
047: private MVNForumConstant() {
048: }
049:
050: /*************************************************************************
051: * NOTE: below constants MUST NOT be changed IN ALL CASES,
052: * or it will break the compatibility
053: *************************************************************************/
054:
055: /** Guest/anonymous site visitor. */
056: public static final int MEMBER_ID_OF_GUEST = 0;
057: /** System administrator. */
058: public static final int MEMBER_ID_OF_ADMIN = 1;
059: /**
060: * The highest reserved MemberID.
061: * All IDs from 0 through this value should not be used for "regular" members.
062: */
063: public static final int LAST_RESERVED_MEMBER_ID = 1;
064:
065: /**
066: * This is a hard code constant and CANNOT be changed in any case.
067: * it could be use to store memberName in the table mvnforumPost, mvnforumThread if
068: * it is a guest's post
069: */
070: public static final String MEMBER_NAME_OF_GUEST = "guest";
071:
072: /* IMPORTANT: When we have a group without group owner, GroupOwnerID is set to 0.
073: * Similiar is for other IDs in the database - 0 means there is no reference.
074: * Also, the other reason why MemberID=0 should not be used for Guest is
075: * that DBMS could refuse to insert a record with 0 in that field, since it's
076: * marked as non-null autoincrement primary key.
077: */
078:
079: /** Unused GroupID. */
080: public static final int GROUP_ID_UNUSED0 = 0;
081: /**
082: * Unused GroupID. In the previous versions of mvnForum it was used for some
083: * special purposes, but should not be used anymore.
084: */
085: public static final int GROUP_ID_OF_GUEST = 1;
086: /** "Registered Members" virtual group. All members are listed in this group. */
087: public static final int GROUP_ID_OF_REGISTERED_MEMBERS = 2;
088: /**
089: * The highest reserved GroupID.
090: * All IDs from 0 through this value should not be used for "regular" groups.
091: */
092: public static final int LAST_RESERVED_GROUP_ID = 2;
093:
094: /** "Inbox" message folder created by default for each member. */
095: public static final String MESSAGE_FOLDER_INBOX = "Inbox";
096: /** "Sent" message folder created by default for each member. */
097: public static final String MESSAGE_FOLDER_SENT = "Sent";
098: /** "Draft" message folder created by default for each member. */
099: public static final String MESSAGE_FOLDER_DRAFT = "Draft";
100: /** "Trash" message folder created by default for each member. */
101: public static final String MESSAGE_FOLDER_TRASH = "Trash";
102:
103: public static final String dtdschemaDecl = "<!DOCTYPE mvnforum SYSTEM \"http://www.mvnforum.com/dtd/mvnforum_1_0_rc2.dtd\">";
104:
105: public static final String VN_TYPER_MODE = "mvnforum.vntypermode";
106:
107: public static final String EVENT_LOG_MAIN_MODULE = "mvnForum";
108:
109: public static final String EVENT_LOG_SUB_MODULE_USER = "User";
110:
111: public static final String EVENT_LOG_SUB_MODULE_ADMIN = "Admin";
112: }
|