-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.h
66 lines (58 loc) · 1.94 KB
/
global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef GLOBAL_H
#define GLOBAL_H
/*
* akari-bbs - Lightweight Messageboard System
* Copyright (C) 2016 microsounds <https://github.com/microsounds>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* software name */
#define IDENT "akari-bbs"
#define IDENT_FULL "Akari BBS"
#define TAGLINE "Lightweight Messageboard System"
#define AUTHOR "microsounds"
#define LICENSE "Licensed GPL v3+"
#define REPO_URL "https://github.com/microsounds/akari-bbs"
#define REVISION 14 /* revision no. */
#define DB_VER 4
/* static resources
* all anchor links should start with absolute / document root
*/
#define DATABASE_LOC "db/database.sqlite3"
#define BOARD_SCRIPT "/board.cgi"
#define SUBMIT_SCRIPT "/submit.cgi"
/* rotating banners */
#define BANNER_COUNT 625
#define BANNER_LOC "/img/banner"
/* board settings */
#define DEFAULT_NAME "Anonymous"
#define THREAD_BUMP_LIMIT 300
#define MAX_ACTIVE_THREADS 150
#define MAX_REPLY_PREVIEW 5
#define THREADS_PER_PAGE 15
#define DAYS_TO_ARCHIVE 90
#define REDIRECT_SEC 1
/* user flooding limits */
#define COOLDOWN_SEC 30
#define IDENTICAL_POST_SEC 300
#define MAX_THREADS_PER_IP 5
/* software limits */
#define POST_MAX_PAYLOAD 10000
#define NAME_MAX_LENGTH 75
#define OPTIONS_MAX_LENGTH 30
#define SUBJECT_MAX_LENGTH 75
#define COMMENT_MAX_LENGTH 2000
#define INSERT_MAX_RETRIES 10
#define FETCH_MAX_RETRIES 50
#endif