Fix bug in setting up w3 and w4 games
[capablanca.git] / lasker-2.2.3 / src / config.h
1 /*
2    Copyright (c) 1993 Richard V. Nash.
3    Copyright (c) 2000 Dan Papasian
4    Copyright (C) Andrew Tridgell 2002
5    
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 /* Configure file locations in this include file. */
22
23
24 #ifndef _CONFIG_H
25 #define _CONFIG_H
26
27 /* CONFIGURE THIS: The port on which the server binds */
28
29 #define DEFAULT_PORT 5000
30
31 /* Which is the default language for help files, see variable.h for the
32     current available settings */
33
34 #define LANG_DEFAULT      LANG_ENGLISH
35
36
37 /* CONFIGURE THESE: Locations of the data, players, and games directories */
38 /* These must be absolute paths because some mail daemons may be called */
39 /* from outside the pwd */
40
41 #define MAX_ADVERTS 24
42 /* These small files are printed when users log in
43    They can be used for advertisements or to promote server features
44    MAX_ADVERTS = the number of adverts you have
45    They should be put in the DEFAULT_ADVERTS directory
46    and be labelled with the numbers 0 - MAX_ADVERTS-1 inclusive
47    Eg if MAX_ADVERTS is 3 then the files are 0,1,2
48
49    If you do not want to use the adverts feature set it to -1
50 */
51
52 /* define the directory that will be the root directory of FICS */
53 #define FICSROOT "./"
54
55 #define CONFIG_DB         FICSROOT "config.tdb"
56 #define NEWS_DB           FICSROOT "news.tdb"
57 #define LIB_DIR           FICSROOT "lib"
58 #define ADVERT_DIR        FICSROOT "data/adverts"
59 #define MESS_DIR          FICSROOT "data/messages"
60 #define INDEX_DIR         FICSROOT "data/index"
61 #define HELP_DIR          FICSROOT "data/help"
62 #define HELP_SPANISH      FICSROOT "data/Spanish"
63 #define HELP_FRENCH       FICSROOT "data/French"
64 #define HELP_DANISH       FICSROOT "data/Danish"
65 #define INFO_DIR          FICSROOT "data/info"
66 #define ADHELP_DIR        FICSROOT "data/admin"
67 #define USCF_DIR          FICSROOT "data/uscf"
68 #define STATS_DIR         FICSROOT "data/stats"
69 #define SPOOL_DIR         FICSROOT "spool/mail.XXXXXX"
70 #define PLAYER_DIR        FICSROOT "players"
71 #define ADJOURNED_DIR     FICSROOT "games/adjourned"
72 #define HISTORY_DIR       FICSROOT "games/history"
73 #define JOURNAL_DIR       FICSROOT "games/journal"
74 #define BOARD_DIR         FICSROOT "data/boards"
75 #define LISTS_DIR         FICSROOT "data/lists"
76 #define BOOK_DIR          FICSROOT "data/book"
77 #define MESS_FULL         FICSROOT "data/messages/full"
78 #define MESS_FULL_UNREG   FICSROOT "data/messages/full_unreg"
79 #define USAGE_DIR         FICSROOT "data/usage"
80 #define USAGE_SPANISH     FICSROOT "data/usage_spanish"
81 #define USAGE_FRENCH      FICSROOT "data/usage_french"
82 #define USAGE_DANISH      FICSROOT "data/usage_danish"
83
84 /* all of these can be overridden using the 'aconfig' command */
85 #define DEFAULT_MAX_PLAYER 5000
86 #define DEFAULT_MAX_USER_LIST_SIZE 100
87 #define DEFAULT_MAX_ALIASES 20
88 #define DEFAULT_RATING 0
89 #define DEFAULT_RD 350
90 #define DEFAULT_TIME 2
91 #define DEFAULT_INCREMENT 12
92 #define DEFAULT_MAX_SOUGHT 1000
93 #define DEFAULT_IDLE_TIMEOUT 36000
94 #define DEFAULT_LOGIN_TIMEOUT 300
95 #define DEFAULT_GUEST_PREFIX_ONLY 0
96
97 #endif /* _CONFIG_H */