KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > forums > ForumsConstants


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under GPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

11 package org.jboss.portlet.forums;
12
13 import org.jboss.portlet.forums.model.AuthType;
14
15 /**
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.3 $
18  */

19 public interface ForumsConstants //extends Constants
20
{
21    /** DOCUMENT_ME */
22    String JavaDoc TPL_THEME_SMALL_HEADER = "small_header";
23
24    /** DOCUMENT_ME */
25    String JavaDoc TPL_THEME_TOPIC_NOTIFY = "search_body";
26
27    /** DOCUMENT_ME */
28    String JavaDoc TPL_THEME_SEARCH_BODY = "search_body";
29
30    /** DOCUMENT_ME */
31    String JavaDoc TPL_THEME_MESSAGE_BODY = "message_body";
32
33    /** DOCUMENT_ME */
34    String JavaDoc TPL_THEME_INDEX_BODY = "index_body";
35
36    /** DOCUMENT_ME */
37    String JavaDoc TPL_THEME_VIEWFORUM_BODY = "viewforum_body";
38
39    /** DOCUMENT_ME */
40    String JavaDoc TPL_THEME_VIEWTOPIC_BODY = "viewtopic_body";
41
42    /** DOCUMENT_ME */
43    String JavaDoc TPL_THEME_VIEWTOPIC_ATTACH_BODY = "viewtopic_attach_body";
44
45    /** DOCUMENT_ME */
46    String JavaDoc TPL_THEME_VIEWTOPIC_POLL_RESULT = "viewtopic_poll_result";
47
48    /** DOCUMENT_ME */
49    String JavaDoc TPL_THEME_VIEWTOPIC_POLL_BALLOT = "viewtopic_poll_ballot";
50
51    /** DOCUMENT_ME */
52    String JavaDoc TPL_THEME_JUMP_BOX = "jumpbox";
53
54    /** DOCUMENT_ME */
55    String JavaDoc TPL_THEME_POSTING_BODY = "posting_body";
56
57    /** DOCUMENT_ME */
58    String JavaDoc TPL_THEME_POSTING_POLL_BODY = "posting_poll_body";
59
60    /** DOCUMENT_ME */
61    String JavaDoc TPL_THEME_POSTING_ATTACH_BODY = "posting_attach_body";
62
63    /** DOCUMENT_ME */
64    String JavaDoc TPL_THEME_ADD_ATTACHMENT_BODY = "add_attachment_body";
65
66    /** DOCUMENT_ME */
67    String JavaDoc TPL_THEME_POSTED_ATTACHMENTS_BODY = "posted_attachments_body";
68
69    /** DOCUMENT_ME */
70    String JavaDoc TPL_THEME_POSTING_TOPIC_REVIEW = "posting_topic_review";
71
72    /** DOCUMENT_ME */
73    String JavaDoc TPL_THEME_POSTING_PREVIEW = "posting_preview";
74
75    /** DOCUMENT_ME */
76    String JavaDoc TPL_THEME_MODCP_BODY = "modcp_body";
77
78    /** DOCUMENT_ME */
79    String JavaDoc TPL_THEME_MODCP_MOVE = "modcp_move";
80
81    /** DOCUMENT_ME */
82    String JavaDoc TPL_THEME_CONFIRM_BODY = "confirm_body";
83
84    /** DOCUMENT_ME */
85    String JavaDoc TPL_THEME_ERROR_BODY = "error_body";
86
87    /** DOCUMENT_ME */
88    String JavaDoc TPL_THEME_SEARCH_RESULTS_POSTS = "search_results_posts";
89
90    /** DOCUMENT_ME */
91    String JavaDoc TPL_THEME_SEARCH_RESULTS_TOPICS = "search_results_topics";
92
93    /** DOCUMENT_ME */
94    String JavaDoc TPL_THEME_WATCHED_TOPICS_BODY = "watched_topics_body";
95
96    /** DOCUMENT_ME */
97    String JavaDoc TPL_THEME_WATCHED_FORUMS_BODY = "watched_forums_body";
98
99    /** DOCUMENT_ME */
100    String JavaDoc TPL_THEME_ADMIN_AUTH_FORUM_BODY = "admin/auth_forum_body";
101
102    /** DOCUMENT_ME */
103    String JavaDoc TPL_THEME_ADMIN_AUTH_SELECT_BODY = "admin/auth_select_body";
104
105    /** DOCUMENT_ME */
106    String JavaDoc TPL_THEME_ADMIN_FORUM_ADMIN_BODY = "admin/forum_admin_body";
107
108    /** DOCUMENT_ME */
109    String JavaDoc TPL_THEME_ADMIN_FORUM_EDIT_BODY = "admin/forum_edit_body";
110
111    /** DOCUMENT_ME */
112    String JavaDoc TPL_THEME_ADMIN_CATEGORY_EDIT_BODY = "admin/category_edit_body";
113
114    /** DOCUMENT_ME */
115    String JavaDoc THEMENAME = "subSilver";
116
117    /** DOCUMENT_ME */
118    String JavaDoc TPL_THEME_ADMIN_FORUM_DELETE_BODY = "admin/forum_delete_body";
119
120    /** DOCUMENT_ME */
121    String JavaDoc TPL_THEME_ADMIN_ATTACH_MANAGE_BODY = "admin/attach_manage_body";
122
123    /** DOCUMENT_ME */
124    String JavaDoc TPL_THEME_CODE_B_CLOSE = "code/b_close";
125
126    /** DOCUMENT_ME */
127    String JavaDoc TPL_THEME_CODE_B_OPEN = "code/b_open";
128
129    /** DOCUMENT_ME */
130    String JavaDoc TPL_THEME_CODE_CODE_CLOSE = "code/code_close";
131
132    /** DOCUMENT_ME */
133    String JavaDoc TPL_THEME_CODE_CODE_OPEN = "code/code_open";
134
135    /** DOCUMENT_ME */
136    String JavaDoc TPL_THEME_CODE_COLOR_CLOSE = "code/color_close";
137
138    /** DOCUMENT_ME */
139    String JavaDoc TPL_THEME_CODE_COLOR_OPEN = "code/color_open";
140
141    /** DOCUMENT_ME */
142    String JavaDoc TPL_THEME_CODE_EMAIL = "code/email";
143
144    /** DOCUMENT_ME */
145    String JavaDoc TPL_THEME_CODE_I_CLOSE = "code/i_close";
146
147    /** DOCUMENT_ME */
148    String JavaDoc TPL_THEME_CODE_I_OPEN = "code/i_open";
149
150    /** DOCUMENT_ME */
151    String JavaDoc TPL_THEME_CODE_IMG = "code/img";
152
153    /** DOCUMENT_ME */
154    String JavaDoc TPL_THEME_CODE_LISTITEM = "code/listitem";
155
156    /** DOCUMENT_ME */
157    String JavaDoc TPL_THEME_CODE_OLIST_CLOSE = "code/olist_close";
158
159    /** DOCUMENT_ME */
160    String JavaDoc TPL_THEME_CODE_OLIST_OPEN = "code/olist_open";
161
162    /** DOCUMENT_ME */
163    String JavaDoc TPL_THEME_CODE_QUOTE_CLOSE = "code/quote_close";
164
165    /** DOCUMENT_ME */
166    String JavaDoc TPL_THEME_CODE_QUOTE_OPEN = "code/quote_open";
167
168    /** DOCUMENT_ME */
169    String JavaDoc TPL_THEME_CODE_QUOTE_USERNAME_OPEN = "code/quote_username_open";
170
171    /** DOCUMENT_ME */
172    String JavaDoc TPL_THEME_CODE_SIZE_CLOSE = "code/size_close";
173
174    /** DOCUMENT_ME */
175    String JavaDoc TPL_THEME_CODE_SIZE_OPEN = "code/size_open";
176
177    /** DOCUMENT_ME */
178    String JavaDoc TPL_THEME_CODE_U_CLOSE = "code/u_close";
179
180    /** DOCUMENT_ME */
181    String JavaDoc TPL_THEME_CODE_U_OPEN = "code/u_open";
182
183    /** DOCUMENT_ME */
184    String JavaDoc TPL_THEME_CODE_ULIST_CLOSE = "code/ulist_close";
185
186    /** DOCUMENT_ME */
187    String JavaDoc TPL_THEME_CODE_ULIST_OPEN = "code/ulist_open";
188
189    /** DOCUMENT_ME */
190    String JavaDoc TPL_THEME_CODE_URL = "code/url";
191
192    /** DOCUMENT_ME */
193    String JavaDoc TPL_THEME_BLOCK_TOPICS = "block/topics";
194
195    /** DOCUMENT_ME */
196    String JavaDoc TPL_MAIL_TOPIC_NOTIFY = "topic_notify";
197
198    /** DOCUMENT_ME */
199    String JavaDoc TPL_MAIL_FORUM_NOTIFY = "forum_notify";
200
201    /** DOCUMENT_ME */
202    String JavaDoc[] SORT_BY_TYPES =
203       {
204          "${bb.Sort_Time}",
205          "${bb.Sort_Post_Subject}",
206          "${bb.Sort_Author}",
207          "${bb.Sort_Forum}"
208       };
209
210    /** DOCUMENT_ME */
211    int[] PREVIOUS_DAYS =
212                          {
213                             0,
214                             1,
215                             7,
216                             14,
217                             30,
218                             90,
219                             180,
220                             364
221                          };
222
223    /** DOCUMENT_ME */
224    String JavaDoc[] PREVIOUS_DAYS_TEXT_TOPICS =
225       {
226          "${bb.All_Topics}",
227          "${bb.1_Day}",
228          "${bb.7_Days}",
229          "${bb.2_Weeks}",
230          "${bb.1_Month}",
231          "${bb.3_Months}",
232          "${bb.6_Months}",
233          "${bb.1_Year}"
234       };
235
236    /** DOCUMENT_ME */
237    String JavaDoc[] PREVIOUS_DAYS_TEXT_POSTS =
238       {
239          "${bb.All_Posts}",
240          "${bb.1_Day}",
241          "${bb.7_Days}",
242          "${bb.2_Weeks}",
243          "${bb.1_Month}",
244          "${bb.3_Months}",
245          "${bb.6_Months}",
246          "${bb.1_Year}"
247       };
248
249    /** DOCUMENT_ME */
250    String JavaDoc[] FORUM_AUTH_FORM_FIELD_NAMES =
251       {
252          "auth_view",
253          "auth_read",
254          "auth_post",
255          "auth_reply",
256          "auth_edit",
257          "auth_delete",
258          "auth_sticky",
259          "auth_announce",
260          "auth_vote",
261          "auth_pollcreate",
262          "auth_attachment"
263       };
264
265    /** DOCUMENT_ME */
266    String JavaDoc[] FORUM_AUTH_FORM_FIELD_LABELS =
267       {
268          "${bb.View}",
269          "${bb.Read}",
270          "${bb.Post}",
271          "${bb.Reply}",
272          "${bb.Edit}",
273          "${bb.Delete}",
274          "${bb.Sticky}",
275          "${bb.Announce}",
276          "${bb.Vote}",
277          "${bb.Pollcreate}",
278          "${bb.Attachment}"
279       };
280
281    /** DOCUMENT_ME */
282    String JavaDoc[] FORUM_AUTH_LEVEL_LABELS =
283                                       {
284                                          "ALL",
285                                          "REG",
286                                          "PRIVATE",
287                                          "MOD",
288                                          "ADMIN"
289                                       };
290
291    /*
292       int[] FORUM_AUTH_LEVEL = {
293          Auth.LEVEL_ALL, Auth.LEVEL_REG, Auth.LEVEL_ACL, Auth.LEVEL_MOD, Auth.LEVEL_ADM
294       };
295     */

296
297    /** DOCUMENT_ME */
298    int GENERAL_MESSAGE = 200;
299
300    /** DOCUMENT_ME */
301    int GENERAL_ERROR = 202;
302
303    /** DOCUMENT_ME */
304    int CRITICAL_MESSAGE = 203;
305
306    /** DOCUMENT_ME */
307    int CRITICAL_ERROR = 204;
308
309    /** DOCUMENT_ME */
310    int POST_NORMAL = 0;
311
312    /** DOCUMENT_ME */
313    int POST_STICKY = 1;
314
315    /** DOCUMENT_ME */
316    int POST_ANNOUNCE = 2;
317
318    /** DOCUMENT_ME */
319    int POST_GLOBAL_ANNONCE = 3;
320
321    /** DOCUMENT_ME */
322    String JavaDoc[] AUTH_TYPE_TO_MESSAGE =
323       {
324          null,
325          null,
326          "Sorry_auth_read_",
327          "Sorry_auth_post_",
328          "Sorry_auth_reply_",
329          "Sorry_auth_edit_",
330          "Sorry_auth_delete_",
331          "Sorry_auth_announce_",
332          "Sorry_auth_sticky_",
333          null,
334          null,
335          "Sorry_auth_vote_",
336          null,
337       };
338
339    /** DOCUMENT_ME */
340    int[] TOPIC_TYPE_TO_AUTH_TYPE =
341                                    {
342                                       AuthType.POST,
343                                       AuthType.STICKY,
344                                       AuthType.ANNOUNCE,
345                                       AuthType.POST
346                                    };
347
348    // modes
349

350    /** DOCUMENT_ME */
351    int PMODE_NO_MODE = -1;
352
353    /** DOCUMENT_ME */
354    int PMODE_VOTE = 0;
355
356    /** DOCUMENT_ME */
357    int PMODE_REPLY = 1;
358
359    /** DOCUMENT_ME */
360    int PMODE_QUOTE = 2;
361
362    /** DOCUMENT_ME */
363    int PMODE_EDIT_POST = 3;
364
365    /** DOCUMENT_ME */
366    int PMODE_DELETE = 4;
367
368    /** DOCUMENT_ME */
369    int PMODE_POLL_DELETE = 5;
370
371    /** DOCUMENT_ME */
372    int PMODE_NEW_TOPIC = 6;
373
374    /** DOCUMENT_ME */
375    int PMODE_REPOST = 7;
376
377    /** DOCUMENT_ME */
378    int PMODE_SMILIES = 8;
379
380    /** DOCUMENT_ME */
381    int PMODE_TOPIC_REVIEW = 9;
382
383    /** DOCUMENT_ME */
384    int PMASK_VOTE = 0x0000001;
385
386    /** DOCUMENT_ME */
387    int PMASK_REPLY = 0x0000002;
388
389    /** DOCUMENT_ME */
390    int PMASK_QUOTE = 0x0000004;
391
392    /** DOCUMENT_ME */
393    int PMASK_EDIT_POST = 0x0000008;
394
395    /** DOCUMENT_ME */
396    int PMASK_DELETE = 0x0000010;
397
398    /** DOCUMENT_ME */
399    int PMASK_POLL_DELETE = 0x0000020;
400
401    /** DOCUMENT_ME */
402    int PMASK_NEW_TOPIC = 0x0000040;
403
404    /** DOCUMENT_ME */
405    int PMASK_SMILIES = 0x0000080;
406
407    /** DOCUMENT_ME */
408    int PMASK_TOPIC_REVIEW = 0x0000100;
409
410    /** DOCUMENT_ME */
411    int[] PMASKS =
412       {
413          PMASK_VOTE,
414          PMASK_REPLY,
415          PMASK_QUOTE,
416          PMASK_EDIT_POST,
417          PMASK_DELETE,
418          PMASK_POLL_DELETE,
419          PMASK_NEW_TOPIC,
420          PMASK_SMILIES,
421          PMASK_TOPIC_REVIEW
422       };
423
424    /*
425       int[] PMODE_TO_AUTH_TYPE = {
426          Auth.TYPE_READ,
427          Auth.TYPE_REPLY,
428          Auth.TYPE_REPLY,
429          Auth.TYPE_EDIT,
430          Auth.TYPE_DELETE,
431          Auth.TYPE_DELETE
432       };
433     */

434
435    /** DOCUMENT_ME */
436    int MMODE_NO_MODE = -1;
437
438    /** DOCUMENT_ME */
439    int MMODE_DELETE = 0;
440
441    /** DOCUMENT_ME */
442    int MMODE_MOVE = 1;
443
444    /** DOCUMENT_ME */
445    int MMODE_LOCK = 2;
446
447    /** DOCUMENT_ME */
448    int MMODE_UNLOCK = 3;
449
450    /** DOCUMENT_ME */
451    int MMODE_SPLIT = 4;
452
453    /** DOCUMENT_ME */
454    int MMODE_IP = 5;
455
456    /** DOCUMENT_ME */
457    String JavaDoc[] AUTH_PRESETS_NAMES =
458       {
459          "${bb.Public}",
460          "${bb.Registered}",
461          "${bb.Registered}[${bb.Hidden}]",
462          "${bb.Private}",
463          "${bb.Private}[${bb.Hidden}]",
464          "${bb.Moderators}",
465          "${bb.Moderators}[${bb.Hidden}]"
466       };
467
468    /**
469     * DOCUMENT_ME
470     *
471     * @version $Revision: 1.3 $
472     * @author $author$
473     */

474    class ModeDecoder
475    {
476       private static final String JavaDoc[] P_TO_HTML = new String JavaDoc[10];
477
478       static
479       {
480          P_TO_HTML[PMODE_VOTE] = "vote";
481          P_TO_HTML[PMODE_REPLY] = "reply";
482          P_TO_HTML[PMODE_QUOTE] = "reply";
483          P_TO_HTML[PMODE_EDIT_POST] = "editpost";
484          P_TO_HTML[PMODE_DELETE] = "delete";
485          P_TO_HTML[PMODE_POLL_DELETE] = "poll_delete";
486          P_TO_HTML[PMODE_NEW_TOPIC] = "newtopic";
487          P_TO_HTML[PMODE_REPOST] = "repost";
488          P_TO_HTML[PMODE_SMILIES] = "smilies";
489          P_TO_HTML[PMODE_TOPIC_REVIEW] = "topicreview";
490       }
491
492       /**
493        * DOCUMENT_ME
494        *
495        * @param mode DOCUMENT_ME
496        *
497        * @return DOCUMENT_ME
498        */

499       public static final String JavaDoc encodePosting(int mode)
500       {
501          return P_TO_HTML[mode];
502       }
503
504       /**
505        * DOCUMENT_ME
506        *
507        * @param mode DOCUMENT_ME
508        *
509        * @return DOCUMENT_ME
510        */

511       public static final int decodePosting(String JavaDoc mode)
512       {
513          if ("topicreview".equals(mode))
514          {
515             return PMODE_TOPIC_REVIEW;
516          }
517
518          if ("smilies".equals(mode))
519          {
520             return PMODE_SMILIES;
521          }
522
523          if ("reply".equals(mode))
524          {
525             return PMODE_REPLY;
526          }
527
528          if ("quote".equals(mode))
529          {
530             return PMODE_QUOTE;
531          }
532
533          if ("editpost".equals(mode))
534          {
535             return PMODE_EDIT_POST;
536          }
537
538          if ("delete".equals(mode))
539          {
540             return PMODE_DELETE;
541          }
542
543          if ("poll_delete".equals(mode))
544          {
545             return PMODE_POLL_DELETE;
546          }
547
548          if ("vote".equals(mode))
549          {
550             return PMODE_VOTE;
551          }
552
553          if ("newtopic".equals(mode))
554          {
555             return PMODE_NEW_TOPIC;
556          }
557
558          if ("repost".equals(mode))
559          {
560             return PMODE_REPOST;
561          }
562
563          return PMODE_NO_MODE;
564       }
565
566       /*
567          public static final int decodeModcp(Page page)
568          {
569             String mode = page.getParameter("mode");
570             if (mode != null)
571             {
572                if ("delete".equals(mode))
573                {
574                   return MMODE_DELETE;
575                }
576                if ("move".equals(mode))
577                {
578                   return MMODE_MOVE;
579                }
580                if ("lock".equals(mode))
581                {
582                   return MMODE_LOCK;
583                }
584                if ("unlock".equals(mode))
585                {
586                   return MMODE_UNLOCK;
587                }
588                if ("split".equals(mode))
589                {
590                   return MMODE_SPLIT;
591                }
592             }
593             else
594             {
595                if (page.getParameter("delete") != null)
596                {
597                   return MMODE_DELETE;
598                }
599                else if (page.getParameter("move") != null)
600                {
601                   return MMODE_MOVE;
602                }
603                else if (page.getParameter("lock") != null)
604                {
605                   return MMODE_LOCK;
606                }
607                else if (page.getParameter("unlock") != null)
608                {
609                   return MMODE_LOCK;
610                }
611             }
612             return MMODE_NO_MODE;
613          }
614        */

615    }
616
617    /** DOCUMENT_ME */
618    int FORUM_UNLOCKED = 0;
619
620    /** DOCUMENT_ME */
621    int FORUM_LOCKED = 1;
622
623    /** DOCUMENT_ME */
624    int TOPIC_UNLOCKED = 0;
625
626    /** DOCUMENT_ME */
627    int TOPIC_LOCKED = 1;
628
629    /** DOCUMENT_ME */
630    int TOPIC_MOVED = 2;
631
632    /** DOCUMENT_ME */
633    int TOPIC_WATCH_UN_NOTIFIED = 0;
634
635    /** DOCUMENT_ME */
636    int TOPIC_WATCH_NOTIFIED = 1;
637
638    /** DOCUMENT_ME */
639    String JavaDoc POST_CAT_URL = "c";
640
641    /** DOCUMENT_ME */
642    String JavaDoc POST_FORUM_URL = "f";
643
644    /** DOCUMENT_ME */
645    String JavaDoc POST_TOPIC_URL = "t";
646
647    /** DOCUMENT_ME */
648    String JavaDoc POST_POST_URL = "p";
649
650    /** DOCUMENT_ME */
651    String JavaDoc POST_USERS_URL = "u";
652
653    /** DOCUMENT_ME */
654    String JavaDoc POST_ROLES_URL = "g";
655
656    /** When a notification message is sent, send a link to the message. */
657    int WATCH_MODE_LINKED = 0;
658
659    /** When a notification message is sent, send the message content. */
660    int WATCH_MODE_EMBEDED = 1;
661
662    /** DOCUMENT_ME */
663    public static final String JavaDoc FORUMSMODULE_JNDINAME = "java:portal/ForumsModule";
664 }
665
666 //// Debug Level
667
////define('DEBUG', 1); // Debugging on
668
//define('DEBUG', 1); // Debugging off
669
//
670
//
671
//// User Levels <- Do not change the values of USER or ADMIN
672
//define('DELETED', -1);
673
//define('ANONYMOUS', -1);
674
//
675
//define('USER', 0);
676
//define('ADMIN', 1);
677
//define('MOD', 2);
678
//
679
//
680
//// User related
681
//define('USER_ACTIVATION_NONE', 0);
682
//define('USER_ACTIVATION_SELF', 1);
683
//define('USER_ACTIVATION_ADMIN', 2);
684
//
685
//define('USER_AVATAR_NONE', 0);
686
//define('USER_AVATAR_UPLOAD', 1);
687
//define('USER_AVATAR_REMOTE', 2);
688
//define('USER_AVATAR_GALLERY', 3);
689
//
690
//
691
//// Group settings
692
//define('GROUP_OPEN', 0);
693
//define('GROUP_CLOSED', 1);
694
//define('GROUP_HIDDEN', 2);
695
//
696
//
697
//// Forum state
698
//define('FORUM_UNLOCKED', 0);
699
//define('FORUM_LOCKED', 1);
700
//
701
//
702
//
703
//
704
//
705
//
706
//// SQL codes
707
//define('BEGIN_TRANSACTION', 1);
708
//define('END_TRANSACTION', 2);
709
//
710
//
711
//
712
//
713
//// Private messaging
714
//define('PRIVMSGS_READ_MAIL', 0);
715
//define('PRIVMSGS_NEW_MAIL', 1);
716
//define('PRIVMSGS_SENT_MAIL', 2);
717
//define('PRIVMSGS_SAVED_IN_MAIL', 3);
718
//define('PRIVMSGS_SAVED_OUT_MAIL', 4);
719
//define('PRIVMSGS_UNREAD_MAIL', 5);
720
//
721
//
722
//
723
//// Session parameters
724
//define('SESSION_METHOD_COOKIE', 100);
725
//define('SESSION_METHOD_GET', 101);
726
//
727
//
728
//// Page numbers for session handling
729
//define('PAGE_INDEX', 0);
730
//define('PAGE_LOGIN', -1);
731
//define('PAGE_SEARCH', -2);
732
//define('PAGE_REGISTER', -3);
733
//define('PAGE_PROFILE', -4);
734
//define('PAGE_VIEWONLINE', -6);
735
//define('PAGE_VIEWMEMBERS', -7);
736
//define('PAGE_FAQ', -8);
737
//define('PAGE_POSTING', -9);
738
//define('PAGE_PRIVMSGS', -10);
739
//define('PAGE_GROUPCP', -11);
740
//define('PAGE_TOPIC_OFFSET', 5000);
741
//
742
//
743
//
744
//
745
//// Table names
746
//define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
747
//define('BANLIST_TABLE', $table_prefix.'banlist');
748
//define('CATEGORIES_TABLE', $table_prefix.'categories');
749
//define('CONFIG_TABLE', $table_prefix.'config');
750
//define('DISALLOW_TABLE', $table_prefix.'disallow');
751
//define('FORUMS_TABLE', $table_prefix.'forums');
752
//define('GROUPS_TABLE', $table_prefix.'groups');
753
//define('POSTS_TABLE', $table_prefix.'posts');
754
//define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
755
//define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
756
//define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
757
//define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
758
//define('PRUNE_TABLE', $table_prefix.'forum_prune');
759
//define('RANKS_TABLE', $table_prefix.'ranks');
760
//define('SEARCH_TABLE', $table_prefix.'search_results');
761
//define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
762
//define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
763
//define('SESSIONS_TABLE', $table_prefix.'sessions');
764
//define('SMILIES_TABLE', $table_prefix.'smilies');
765
//define('THEMES_TABLE', $table_prefix.'themes');
766
//define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
767
//define('TOPICS_TABLE', $table_prefix.'topics');
768
//define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
769
//define('USER_GROUP_TABLE', $table_prefix.'user_group');
770
//define('USERS_TABLE', $table_prefix.'users');
771
//define('WORDS_TABLE', $table_prefix.'words');
772
//define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
773
//define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
774
//define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
775
//
776
//?>
777
Popular Tags