-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.php
96 lines (85 loc) · 3.15 KB
/
config.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/*
fearqdb - quote database system
Copyright (C) 2011-2012 David Martí <neikokz at gmail dot com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Important: it's recommended to make a copy of this file called "local.php"
and edit that file instead of this one, just in case. */
/* ---------- DB ---------- */
/* mysql or sqlite */
$config['db']['type'] = null;
/* show all queries */
$config['db']['debug'] = false;
/* use a persistent connection. could not work,
but it is preferable. */
$config['db']['persistent'] = false;
/* for sqlite */
$config['db']['file'] = null;
/* for mysql */
$config['db']['user'] = null;
$config['db']['pass'] = null;
$config['db']['name'] = null;
/* 'socket' takes precedence over 'host'
(it is obviously not possible to use both at once) */
$config['db']['socket'] = null;
$config['db']['host'] = null;
$sites = Array();
$sites[] = Array(
/* domain. Example: qdb.es */
'domain' => '',
/* site unique id used internally in the database */
'db' => '',
/* base url. Most probably, / (don't touch it if unsure) */
'base_url' => '/',
/* full url. if you don't use http you may want to change this.
https://qdb.es/ for example */
'full_url' => '',
/* a private site key, used to generate cookies and other things.
use a random string. */
'site_key' => '',
/* language of the site, such as 'en' or 'es' */
'lang' => 'en',
/* locale of the site */
'locale' => 'en_US.utf8',
/* collation for the database */
'collate' => 'utf8_english_ci',
/* show the ip address of those who sent the quotes to all users.
if it's false, they will be shown to registered users anyway. */
'ip_show' => false,
/* google analytics code. leave blank if you don't use ga */
'analytics_code' => '',
/* a different url for the static folder. leave blank if you don't need it */
'static_url' => '',
/* the title of this site */
'title' => '',
/* text shown at the footer */
'footer' => '',
/* privacy level of the quotes. possible values:
-1: all quotes are shown, even the hidden ones
0: normal
1: all quotes are hidden, but nick/date are visible
2: you have to be logged in to actually read any quote
the second variable applies to bots such as the google crawler */
'privacy_level' => 0,
'privacy_level_for_bots' => 0,
/* amount of quotes per page */
'page_size' => 10,
/* allow or disallow robots with robots.txt */
'robots' => 'allow',
/* push server used for sending topics from irc to the site */
'push_enabled' => false,
'push_url' => '',
'push_params' => '',
/* extra css to insert in all pages */
'extra_css' => '',
);