/
config.template.php
194 lines (167 loc) · 5.73 KB
/
config.template.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Base path of the web site. If this includes a domain, eg: localhost/ushahidi/
* then a full URL will be used, eg: http://localhost/ushahidi/. If it only includes
* the path, and a site_protocol is specified, the domain will be auto-detected.
*/
$config['site_domain'] = '/';
/**
* Force a default protocol to be used by the site. If no site_protocol is
* specified, then the current protocol is used, or when possible, only an
* absolute path (with no protocol/domain) is used.
*/
$config['site_protocol'] = 'http';
/**
* Name of the front controller for this application. Default: index.php
*
* This can be removed by using URL rewriting.
*/
$config['index_page'] = 'index.php';
/**
* Whether or not you want to have the auto upgrader enabled.
* TRUE will ping Ushahidi.com for the latest version.
* FALSE will require you to check manually and do upgrades by hand.
*/
$config['enable_auto_upgrader'] = TRUE;
/**
* The admin panel shows a warning if you upgrade your deployment
* code but not the database. Setting this to false disabled that
* warning.
*/
$config['enable_ver_sync_warning'] = TRUE;
/**
* The admin panel shows a warning if you haven't changed your
* encryption key. Set this to false to disable
*/
$config['enable_security_info'] = TRUE;
/**
* Include Google Analytics (if set) on admin panel
*/
$config['google_analytics_in_admin'] = TRUE;
/**
* Fake file extension that will be added to all generated URLs. Example: .html
*/
$config['url_suffix'] = '';
/**
* Length of time of the internal cache in seconds. 0 or FALSE means no caching.
* The internal cache stores file paths and config entries across requests and
* can give significant speed improvements at the expense of delayed updating.
*/
$config['internal_cache'] = TRUE;
/**
* Enable or disable gzip output compression. This can dramatically decrease
* server bandwidth usage, at the cost of slightly higher CPU usage. Set to
* the compression level (1-9) that you want to use, or FALSE to disable.
*
* Do not enable this option if you are using output compression in php.ini!
*/
$config['output_compression'] = TRUE;
/**
* Enable or disable global XSS filtering of GET, POST, and SERVER data. This
* option also accepts a string to specify a specific XSS filtering tool.
*/
$config['global_xss_filtering'] = 'htmlpurifier';
/**
* Enable or disable hooks. Setting this option to TRUE will enable
* all hooks. By using an array of hook filenames, you can control
* which hooks are enabled. Setting this option to FALSE disables hooks.
*/
$config['enable_hooks'] = TRUE;
/**
* Log thresholds:
* 0 - Disable logging
* 1 - Errors and exceptions
* 2 - Warnings
* 3 - Notices
* 4 - Debugging
*/
$config['log_threshold'] = 1;
/**
* Message logging directory.
*/
$config['log_directory'] = APPPATH.'logs';
if ( ! @is_writable($config["log_directory"]))
{
$config["log_threshold"] = 0;
}
/**
* The scheduler removes old logs. Set to false to disable or an int for the
* number of days to keep old logs.
*/
$config['log_cleanup_days_old'] = 7;
/**
* Enable or disable displaying of Kohana error pages. This will not affect
* logging. Turning this off will disable ALL error pages.
*/
$config['display_errors'] = TRUE;
/**
* Enable or disable statistics in the final output. Stats are replaced via
* specific strings, such as {execution_time}.
*
* @see http://docs.kohanaphp.com/general/configuration
*/
$config['render_stats'] = TRUE;
/**
* Enable profiler
*/
$config['enable_profiler'] = FALSE;
/**
* Turn MHI on or off. This is an advanced feature that will drastically alter
* the way your instance works. Please read documentation before proceeding.
*
* @see [A URL not yet created]
*/
$config['enable_mhi'] = FALSE;
/**
* Allow members to sign in with OpenID providers, excluding RiverID
*/
$config['allow_openid'] = FALSE;
/**
* Filename prefixed used to determine extensions. For example, an
* extension to the Controller class would be named MY_Controller.php.
*/
$config['extension_prefix'] = 'MY_';
/**
* Check if we should launch the installer or not
*/
$config['installer_check'] = TRUE;
/**
* Output scheduler JS in footer
*/
$config['output_scheduler_js'] = TRUE;
/**
* Protocol to use for loading external requests
*
* This is used for requests from PHP to external APIs that offer
* both http and https. Normally this should default to 'https'
* but some countries/firewalls block https requests so its a setting.
*/
$config['external_site_protocol'] = 'https';
/**
* Allowed HTML tags in report description and other large text fields
*
* Formated is based on http://htmlpurifier.org/live/configdoc/plain.html#HTML.Allowed
*/
$config['allowed_html'] = "a[href|title],p,img[src|alt],br,b,u,strong,em,i,iframe[width|height|frameborder|src]";
/**
* Allowed iframe URLs in report description and other large text fields
*
* Formated is based on http://htmlpurifier.org/live/configdoc/plain.html#URI.SafeIframeRegexp
*/
$config['safe_iframe_regexp'] = '%^//(www.youtube.com/embed/|player.vimeo.com/video/|w.soundcloud.com/player!)%';
/**
* Additional resource paths, or "modules". Each path can either be absolute
* or relative to the docroot. Modules can include any resource that can exist
* in your application directory, configuration files, controllers, views, etc.
*/
$config['modules'] = array
(
MODPATH.'auth', // Authentication
MODPATH.'csrf', // CSRF Handling
// MODPATH.'forge', // Form generation
// MODPATH.'formation', // Form generation
// MODPATH.'kodoc', // Self-generating documentation
// MODPATH.'media', // Media caching and compression
// MODPATH.'archive', // Archive utility
// MODPATH.'unit_test', // Unit testing
);