Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
elgg-config
settings.example.php
Go to the documentation of this file.
1
<?php
17
date_default_timezone_set(
'{{timezone}}'
);
18
19
global
$CONFIG
;
20
if
(!isset(
$CONFIG
)) {
21
$CONFIG
= new \stdClass;
22
}
23
24
/*
25
* Standard configuration
26
*
27
* You will use the same database connection for reads and writes.
28
* This is the easiest configuration, and will suit 99.99% of setups. However, if you're
29
* running a really popular site, you'll probably want to spread out your database connections
30
* and implement database replication. That's beyond the scope of this configuration file
31
* to explain, but if you know you need it, skip past this section.
32
*/
33
39
$CONFIG
->dbuser =
'{{dbuser}}'
;
40
46
$CONFIG
->dbpass =
'{{dbpassword}}'
;
47
53
$CONFIG
->dbname =
'{{dbname}}'
;
54
62
$CONFIG
->dbhost =
'{{dbhost}}'
;
63
73
$CONFIG
->dbprefix =
'{{dbprefix}}'
;
74
83
//$CONFIG->db['split'] = true;
84
85
//$CONFIG->db['write']['dbuser'] = "";
86
//$CONFIG->db['write']['dbpass'] = "";
87
//$CONFIG->db['write']['dbname'] = "";
88
//$CONFIG->db['write']['dbhost'] = "";
89
90
//$CONFIG->db['read'][0]['dbuser'] = "";
91
//$CONFIG->db['read'][0]['dbpass'] = "";
92
//$CONFIG->db['read'][0]['dbname'] = "";
93
//$CONFIG->db['read'][0]['dbhost'] = "";
94
//$CONFIG->db['read'][1]['dbuser'] = "";
95
//$CONFIG->db['read'][1]['dbpass'] = "";
96
//$CONFIG->db['read'][1]['dbname'] = "";
97
//$CONFIG->db['read'][1]['dbhost'] = "";
98
113
//$CONFIG->memcache = true;
114
//
115
//$CONFIG->memcache_servers = array (
116
// array('server1', 11211),
117
// array('server2', 11211)
118
//);
119
120
// namespace prefix
121
// $CONFIG->memcache_namespace_prefix = '';
122
132
//$CONFIG->dataroot = "";
133
//$CONFIG->simplecache_enabled = true;
134
143
//$CONFIG->boot_cache_ttl = 10;
144
153
//$CONFIG->cacheroot = "";
154
163
//$CONFIG->{'X-Sendfile-Type'} = '';
164
172
//$CONFIG->{'X-Accel-Mapping'} = '';
173
190
// get the default parameters from php.ini
191
//$CONFIG->cookies['session'] = session_get_cookie_params();
192
//$CONFIG->cookies['session']['name'] = "Elgg";
193
// optionally overwrite the defaults from php.ini below
194
//$CONFIG->cookies['session']['path'] = "/";
195
//$CONFIG->cookies['session']['domain'] = "";
196
//$CONFIG->cookies['session']['secure'] = false;
197
//$CONFIG->cookies['session']['httponly'] = false;
198
199
// extended session cookie
200
//$CONFIG->cookies['remember_me'] = session_get_cookie_params();
201
//$CONFIG->cookies['remember_me']['name'] = "elggperm";
202
//$CONFIG->cookies['remember_me']['expire'] = strtotime("+30 days");
203
// optionally overwrite the defaults from php.ini below
204
//$CONFIG->cookies['remember_me']['path'] = "/";
205
//$CONFIG->cookies['remember_me']['domain'] = "";
206
//$CONFIG->cookies['remember_me']['secure'] = false;
207
//$CONFIG->cookies['remember_me']['httponly'] = false;
208
209
219
$CONFIG
->broken_mta =
false
;
220
230
$CONFIG
->db_disable_query_cache =
false
;
231
243
$CONFIG
->auto_disable_plugins =
true
;
244
252
$CONFIG
->min_password_length = 6;
253
269
$CONFIG
->exception_include =
''
;
270
275
//if (isset($_REQUEST['__some_secret__'])) {
276
//
277
// // send profiling data to the JS console?
278
// $CONFIG->enable_profiling = true;
279
//
280
// // profile all queries? A page with a ton of queries could eat up memory.
281
// $CONFIG->profiling_sql = false;
282
//
283
// // in the list, don't include times that don't contribute at least this much to the
284
// // total time captured. .1% by default
285
// $CONFIG->profiling_minimum_percentage = .1;
286
//}
$CONFIG
global $CONFIG
Definition:
settings.example.php:19
global
elgg global
Pointer to the global context.
Definition:
elgglib.js:12
Generated on Sat Dec 21 2024 00:01:03 for Elgg by
1.8.11