This repository has been archived by the owner on May 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.example.php
69 lines (61 loc) · 3.64 KB
/
config.example.php
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
67
68
69
<?php
const LOCKDOWN = false; //Set to true to disable page viewing for users (not for managers)
// General settings
const TITLE = 'Fikaba-powered image board'; //Name of this imageboard
const SHOWTITLETXT = 1; //Show TITLE at top (1: yes, 0: no)
const SHOWTITLEIMG = 0; //Show image at top (0: no, 1: single, 2: rotating)
const BANNERS = array('title1.png', 'title2.png'); // Banners for SHOWTITLEIMG=2
const TITLEIMG = 'title.png'; //Title image for SHOWTITLEIMG=1
const LANGUAGE = 'en'; //Language. Fikaba provides en and ja by default
const FOOTTEXT = ''; //Extra footer text, for disclaimers and such. Can be left empty
// Database settings
const POSTTABLE = 'CHANGEME'; //Post table (NOT DATABASE)
const BANTABLE = 'CHANGEME'; //Bans table (NOT DATABASE)
const MANATABLE = 'CHANGEME'; //Manager (admin, mod, janitor) table
const SQLHOST = 'localhost'; //MySQL server address, usually localhost
const SQLUSER = 'CHANGEME'; //MySQL user (must be changed)
const SQLPASS = 'CHANGEME'; //MySQL user's password (must be changed)
const SQLDB = 'CHANGEME'; //Database used by image board
// File-related settings
const IMG_DIR = 'src/'; //Image directory (needs to be 777)
const THUMB_DIR = 'thumb/'; //Thumbnail directory (needs to be 777)
const HOME = '../'; //Site home directory (up one level by default
const MAX_KB = 2000; //Maximum upload size in KB
const MAX_W = 250; //Images exceeding this width will be thumbnailed
const MAX_H = 250; //Images exceeding this height will be thumbnailed
const SWF_ENABLED = false; //Whether or not upload of Flash files is allowed
const WEBM_ENABLED = true; //Whether or not upload of WebM files is allowed
const OEKAKI_ENABLED = false; //Whether or not oekaki is enabled
const FORCEIMAGE = false; //Whether or not threads must start with an image
const USE_THUMB = true; //Use thumbnails
const PHP_SELF = 'imgboard.php'; //Name of main script file (if ECHOALL, you probably want 'index.php')
const PHP_SELF2 = 'index.html'; //Name of main html file (point to PHP_SELF if ECHOALL)
const PHP_EXT = '.html'; //Extension used for board pages after first
const THUMBBACK = array(255,255,238); //Thumbnail background for transp. images. Usually the background of your body element.
// Look and behavior
const ECHOALL = false; //Do not write index to file, but echo directly (not very stable, not recommended)
const PAGE_DEF = 5; //Threads per page
const THREADLIMIT = 40; //Maxium number of entries
const BUMPLIMIT = 50; //Maximum topic bumps
const COLLAPSENUM = 3; //Number of replies to show in the index
const TRIPKEY = '#'; //this character is displayed before tripcodes
// Spam/flood protection
const RENZOKU = 5; //Seconds between posts (floodcheck)
const RENZOKU2 = 10; //Seconds between image posts (floodcheck)
const BR_CHECK = 15; //Max lines per post (0 = no limit)
const PROXY_CHECK = false; //Enable proxy check
const DISP_ID = false; //Display user IDs
const FORCED_ANON = false; //Force anonymous posting (except for managers)
const BADSTRING = array(); //Posts containing any of these strings will be discarded (can be a nuisance, use with care)
const BADFILE = array(); //Files to be discarded (md5 hashes)
// CSS
const CSSDEFAULT = 'Futaba'; // The name of the stylesheet to be used by default
const STYLES = array( // Array containing NAME => FILE of stylesheets
"Futaba" => 'css/futaba.css',
"Burichan" => 'css/burichan.css',
"Yotsuba" => 'css/yotsuba.css',
"heavy_ice" => 'css/heavy_ice.css'
);
const FILTERS = array( // Filters, in the format of IN => OUT
"darn" => 'd*rn'
);