/
config.php
executable file
·161 lines (138 loc) · 5.25 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
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
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* Allow the installer to be run. This should be set to false after installation
*/
$config['installer_enabled'] = TRUE;
/**
* Base path of the web site. If this includes a domain, eg: localhost/kohana/
* then a full URL will be used, eg: http://localhost/kohana/. If it only includes
* the path, and a site_protocol is specified, the domain will be auto-detected.
*/
$config['site_domain'] = '/bluebox/';
/**
* 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'] = '';
/**
* Name of the front controller for this application. Default: index.php
*
* This can be removed by using URL rewriting.
*/
$config['index_page'] = 'index.php'; // If you don't have mod_rewrite enabled, uncomment this line!
/**
* Fake file extension that will be added to all generated URLs. Example: .html
* NOTE: DO NOT enable this line if you plan to use JSON and XML as the URL ending is utilized to detect what's being asked for
*/
//$config['url_suffix'] = '.html';
/**
* 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'] = FALSE;
/**
* 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'] = FALSE;
/**
* 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'] = TRUE;
/**
* Enable or disable hooks.
*/
$config['enable_hooks'] = TRUE; // Bluebox will fail miserably if you turn this off
/**
* Log thresholds:
* 0 - Disable logging
* 1 - Errors and exceptions
* 2 - Warnings
* 3 - Notices
* 4 - Debugging
*/
$config['log_threshold'] = 0;
/**
* Message logging directory.
*/
$config['log_directory'] = APPPATH.'logs';
/**
* 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;
/**
* Filename prefixed used to determine extensions. For example, an
* extension to the Controller class would be named MY_Controller.php.
*/
$config['extension_prefix'] = 'Bluebox_';
/**
* 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-1.0', // Authentication
MODPATH.'packagemanager-1.0'
// MODPATH.'forge', // Form generation
// MODPATH.'kodoc', // Self-generating documentation
// MODPATH.'media', // Media caching and compression
// MODPATH.'gmaps', // Google Maps integration
// MODPATH.'archive', // Archive utility
// MODPATH.'phpunit', // Unit testing
// MODPATH.'object_db', // New OOP Database library (testing only!)
);
// Do we require login for all pages?
// NOTE: Turning this off will break any modules that ASSUME login is required
// THIS OPTION IS FOR DEBUGGING ONLY! It is NOT a feature. Things will definitely break if you enable this.
$config['require_login'] = TRUE;
/**
* If this is true the user has allowed us to collect anonymous statistics about what modules they use
*/
$config['anonymous_statistics'] = TRUE;
/**
* Is this an oxymoron? Well we need to be able to group
* multiple responses, it is not used for any other reason. Promise :)
*/
$config['anonymous_id'] = '';
/**
* If true then a minimum password complexity is enforced
*/
$config['pwd_complexity'] = TRUE;
/**
* Whether we allow registrations at all from the login pages or whether only system administrators can create/manage accounts via
* the user manager.
*/
$config['allow_registrations'] = FALSE;
/**
* Whether or not to combine the login and registration views and functionality on the same interface, or use seperate pages
*/
$config['combine_login_register'] = TRUE;
/**
* Always set username and email to be the same thing?
* NOTE: This just copies the email address into the username field during registration and hides the field for username during registration.
* During login, the username field is replaced with the email address field (and associated lookups in the DB)
*/
$config['username_is_email'] = TRUE;
/**
* This is a list of repositories to use to check for updates
*/
$config['repositories'] = array();
/**
* Product display name. If you want to rebrand Bluebox with another name, change this
*/
$config['product_name'] = 'blue.box';