config-defaults.php 23 KB
Newer Older
Penny Leach's avatar
Penny Leach committed
1
2
3
4
5
6
<?php
/**
 *
 * @package    mahara
 * @subpackage core
 * @author     Catalyst IT Ltd
7
8
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later
 * @copyright  For copyright information on Mahara, please see the README file distributed with this software.
Penny Leach's avatar
Penny Leach committed
9
10
11
 *
 */

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * CONFIGURATION DEFAULTS
 *
 * Do Not Edit This File!
 *
 * If you see a setting in here you'd like to change, copy it to your
 * config.php and change it there.
 *
 * This file sets defaults that are useful for most people.
 */

$cfg = new stdClass();

/**
 * @global int $cfg->directorypermissions what permissions to use for files and directories in
 * dataroot. The default allows only the web server user to read the data. If
 * you're on shared hosting and might want to download the contents of your
 * dataroot later (e.g. for backup purposes), set this to 0755. Otherwise,
 * leave it as is!
 */
Penny Leach's avatar
Penny Leach committed
32
33
//$cfg->directorypermissions = 0700;

34
35
36
37
38
39
40
41
42
43
44
/**
 * @global bool $cfg->insecuredataroot whether to enforce checking that files being served have
 * come from dataroot. You would only want to turn this on if you were running
 * more than one Mahara against the same dataroot. If you are doing that, make
 * sure you create separate dataroots for each installation, but symlink the
 * artefact directory from all of them to one of them, and turn on
 * 'insecuredataroot' on all the ones you created symlinks for.
 *
 * If you don't know what you're doing/didn't understand the paragraph above,
 * then leave this setting alone!
 */
Penny Leach's avatar
Penny Leach committed
45
46
//$cfg->insecuredataroot = false;

47
48
49
50
51
/**
 * @global string $cfg->noreplyaddress system mail address. emails out come from this address.
 * if not specified, will default to noreply@ automatically detected host.
 * if that doesn't work or you want something else, then specify it here.
 */
52
// $cfg->noreplyaddress = 'noreply@myhost.com';
Penny Leach's avatar
Penny Leach committed
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
/**
 * Logging configuration
 * @global int $cfg->log_dbg_targets Where to log debugging messages
 * @global int $cfg->log_info_targets Where to log informational messages
 * @global int $cfg->log_warn_targets Where to log warnings
 * @global int $cfg->log_environ_targets Where to log environment errors
 * For each log level, you can specify where the messages are displayed.
 *
 * LOG_TARGET_SCREEN makes the error messages go to the screen - useful
 * when debugging but not on a live site!
 * LOG_TARGET_ADMIN sends error messages to the screen but only when
 * browsing in the admin section
 * LOG_TARGET_ERRORLOG makes the error messages go to the log as specified
 * by the apache ErrorLog directive. It's probably useful to have this on
 * for all log levels.
 * LOG_TARGET_FILE allows you to specify a file that messages will be logged
 * to. It's best to pick a path in dataroot, but note that logfiles tend to get
 * very large over time - so it's advisable to implement some kind of logrotate
 * if you want to leave this on all the time. The other option is to just turn
 * this on when you are getting some kind of error or want to see the logging,
 * and know that you're not going to let the logfile get large.
 *
 * You can combine the targets with bitwise operations,
 * e.g. LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG
 *
 * This configuration is suitable for people running Mahara for the first
 * time. You will immediately see environment errors, and so can correct
 * them. You will be able to see other debugging information in your error
 * logs. Once your site is up and running you might want to remove the
 * environment level logging completely, and just log everything else to
 * the error log.
 */
Penny Leach's avatar
Penny Leach committed
86
87
88
89
$cfg->log_dbg_targets     = LOG_TARGET_ERRORLOG;
$cfg->log_info_targets    = LOG_TARGET_ERRORLOG;
$cfg->log_warn_targets    = LOG_TARGET_ERRORLOG;
$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
90
91
92
93
/**
 * This configuration is suitable for developers. You will see all errors
 * and they will also be in the logs.
 */
Penny Leach's avatar
Penny Leach committed
94
95
96
97
98
//$cfg->log_dbg_targets     = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
//$cfg->log_info_targets    = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
//$cfg->log_warn_targets    = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
//$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

99
100
101
102
103
104
/**
 * @global string $cfg->log_file: If you use LOG_TARGET_FILE, this is the file that errors will be logged to.
 * By default, it will write to the file 'error.log' under dataroot. If you
 * change this in config.php, make sure you use a folder which is writable by
 * the webserver.
 */
105
// $cfg->log_file = '/path/to/dataroot/error.log';
106

107
108
109
110
/**
 * @global int $cfg->log_backtrace_levels The log levels that will generate backtraces. Useful for development,
 * but probably only warnings are useful on a live site.
 */
Penny Leach's avatar
Penny Leach committed
111
112
$cfg->log_backtrace_levels = LOG_LEVEL_WARN | LOG_LEVEL_ENVIRON;

113
114
115
116
117
118
119
120
121
122
123
124
125
/**
 * @global int|bool $cfg->developermode Developer mode
 * When set, the following things (among others) will happen:
 *
 * * 'debug.js' will be included on each page. You can edit this file to add
 *   debugging javascript at your discretion
 * * 'debug.css' will be included on each page. You can edit this file to add
 *   debugging CSS at your discretion
 * * the unpacked version of MochiKit will be used
 *
 * These options are a performance hit otherwise, enable when you are
 * developing for Mahara
 */
Penny Leach's avatar
Penny Leach committed
126
$cfg->developermode = false;
127
// $cfg->developermode = DEVMODE_DEBUGJS | DEVMODE_DEBUGCSS | DEVMODE_UNPACKEDJS;
Penny Leach's avatar
Penny Leach committed
128

129
130
131
132
133
134
/**
 * @global bool $cfg->sendemail Whether to send e-mail. If set to false, Mahara will not send any e-mail at
 * all. This is useful for when setting up development versions of Mahara where
 * you don't want to accidentally send email to users from this particular
 * Mahara installation.
 */
135
$cfg->sendemail = true;
136
137
138
139
140
/**
 * @global string $cfg->sendallemailto You can use sendallemailto to have all e-mails from this instance of Mahara
 * sent to one particular address instead of where they're aimed for. Leave
 * sendemail = true if you want to use this setting.
 */
141
// $cfg->sendallemailto = 'you@example.com';
142
143
144
145
146

/**
 * @global string $cfg->emaillog Log basic details of emails sent out by Mahara.  Must be writable by the
 * webserver user.  This will get big.
 */
147
// $cfg->emaillog = '/path/to/dataroot/email.log';
148

149
150
151
152
153
/**
 * @global bool $cfg->perftolog capture performance information and print it
 * @global bool $cfg->perftofoot needs a call to mahara_performance_info (smarty callback) - see default theme's footer.tpl
 * if neither are set, performance info wont be captured.
 */
Penny Leach's avatar
Penny Leach committed
154
// $cfg->perftolog = true;
155
// $cfg->perftofoot = true;
Penny Leach's avatar
Penny Leach committed
156

157
158
159
160
161
162
163
164
165
/**
 * Mail handling
 *
 * Unless you have a specific reason for having mail settings in the config file,
 * please use Configure Site -> Site options -> Email interface.
 *
 * @global string $cfg->smpthosts If you want mahara to use SMTP servers to send mail, enter one or more here
 * blank means mahara will use the default PHP method.
 */
166
// $cfg->smtphosts = 'smtp1.example.com;smtp2.example.com';
167
168
169
170
171
172
/**
 * @global int $cfg->smtpport If smtp server uses port number different from 25 (e.g. for secure connections,
 * port 465 is usually used with ssl, port 587 is usually used with tls),
 * specify it below. Alternatively you may specify the port in smtphosts
 * definition above using format [hostname:port] (e.g. 'smtp1.example.com:465').
 */
173
// $cfg->smtpport = 25;
174
175
176
177
178
/**
 * @global string $cfg->smtpuser If you have specified an smtp server above, and the server requires
 * authentication, enter user credentials here:
 * @global string $cfg->smptpass Password to match the user in $cfg->smtpuser
 */
Penny Leach's avatar
Penny Leach committed
179
180
// $cfg->smtpuser = '';
// $cfg->smtppass = '';
181
182
183
184
185
/**
 * @global string $cfg->smtpsecure If smtp server requres secure connection, specify the protocol type below.
 * Valid options are '', 'ssl' or 'tls'. Setting it to '' or leaving the line
 * commented means that secure connection will not be used.
 */
186
// $cfg->smtpsecure = '';
Penny Leach's avatar
Penny Leach committed
187

188
189
190
191
192
193
/**
 * Variable Envelope Return Path Handling
 * @global bool $cfg->bounces_handle If you want mahara to keep track of email addresses which generate a
 * bounce, set bounces_handle to true.
 * If set to true, $cfg->bouncedomain *must* be set.
 */
194
$cfg->bounces_handle  = false;
195
196
197
198
/**
 * @global int $cfg->bounces_min Rather than disable an email address on the first bounce message,
 * require bounces_min bounces.
 */
199
$cfg->bounces_min     = 5;
200
201
202
203
204
/**
 * @global number $cfg->bounces_ratio Require at least (bounces_ratio*100)% of sent mail to be bounced back
 * before disabling mail for that user.
 * e.g. If using the default bounces_ratio of 0.20 and 20 mails are sent to
 * a user, at least 4 must be returned before email is disabled.
Aaron Wells's avatar
Aaron Wells committed
205
 * (Set this to 0 to ignore bounces_ratio and rely solely on bounces_min)
206
 */
207
$cfg->bounces_ratio   = 0.20;
208
209
210
211
212
213
/**
 * @global string $cfg->bounceprefix Identity of the Mahara instance
 * If you have several Mahara, Moodle, or other VERP processors on the same
 * bounce domain, you need to keep track of which processor belongs to
 * which domain.
 */
214
$cfg->bounceprefix    = 'AAA-';
215
216
217
218
219
/**
 * @global string $cfg->bouncedomain The domainpart of the generated VERP domain. e.g.
 * <localpart>@$cfg->bouncedomain
 * This must be set for VERP handling to take effect
 */
220
221
//$cfg->bouncedomain    = '';

222
223
224
225
/**
 * @global string $cfg->imapserver The imap server to check for bounced emails
 * @global int $cfg->imapport The port for the imap server
 */
226
227
//$cfg->imapserver  = 'localhost';
//$cfg->imapport    = 143;
228
229
230
231
/**
 * @global string $cfg->imapuser The imap username to authenticate
 * @global string $cfg->imappass The imap password to authenticate
 */
232
233
//$cfg->imapuser    = '';
//$cfg->imappass    = '';
234
235
236
237
/**
 * @global string $cfg->imapflags Any flags to pass to imap_open, can have multiple
 * See http://www.php.net/manual/en/function.imap-open.php
 */
238
//$cfg->imapflags   = '';
239
240
241
/**
 * @global string $cfg->imapmailbox Which mailbox to poll, defaults to INBOX
 */
242
//$cfg->imapmailbox = 'INBOX.someotherbox';
243
244
245
/**
 * You can even set the library to check pop mail boxes
 */
246
247
248
//$cfg->imapflags   = '/pop3';
//$cfg->imapport    = 110;

249
250
251
252
253
254
/**
 * maximum allowed size of uploaded images
 * @global int $cfg->imagemaxwidth
 * @global int $cfg->imagemaxheight
 * NOTE: the scalable resize might result in images with one dimesion larger than one of these sizes, but not both
 */
Penny Leach's avatar
Penny Leach committed
255
256
$cfg->imagemaxwidth = 1024;
$cfg->imagemaxheight = 1024;
257
258
259
/**
 * @global int $cfg->maximageresizememory Maximum allowed memory usage for thumbnail generation (approximate)
 */
260
$cfg->maximageresizememory = 104857600;
Penny Leach's avatar
Penny Leach committed
261

262
263
264
265
266
/**
 * Paths and arguments for various system commands
 *
 * @global string $cfg->pathtoaspell Used by the TinyMCE spellchecker
 */
267
$cfg->pathtoaspell = '/usr/bin/aspell';
268
269
270
/**
 * @global $cfg->pathtoclam The path to the ClamAV executable (clamscan or clamdscan); disabled by default
 */
271
$cfg->pathtoclam = '';
272
273
274
275
276
277
278
279
/**
 * @global string $cfg->pathtogzip
 * @global string $cfg->pathtounzip
 * @global string $cfg->pathtozip
 * @global string $cfg->ziprecursearg Argument to pass to the zip executable to indicate that it should act recursively
 * @global string $cfg->unzipdirarg Argument to pass to the unzip executable to indicate the directory it should unzip into
 * @global string $cfg->unziplistarg Argument to pass to the unzip executable to list the contents of the archive
 */
280
$cfg->pathtogzip = '/bin/gzip';
Penny Leach's avatar
Penny Leach committed
281
$cfg->pathtounzip = '/usr/bin/unzip';
282
283
$cfg->pathtozip   = '/usr/bin/zip';
$cfg->ziprecursearg = '-r';
Penny Leach's avatar
Penny Leach committed
284
$cfg->unzipdirarg = '-d';
285
$cfg->unziplistarg = '-l';
286
287
/**
 * @global string $cfg->unziptempdir some shared hosts have restrictions on where unzip can be used
288
 * dataroot is often not allowed; but /tmp is. This path should end with a "/"
289
290
291
 * Note that if there is more than one mahara on this host using this setting
 * you must change this to something unique, eg /tmp/mahara1/ and /tmp/mahara2/
 */
292
// $cfg->unziptempdir = '/tmp/mahara/';
293
294
295
296
297
298
299
300
301
/**
 * @global string $cfg->sessionpath The directory to store session files in. Defaults to $cfg->dataroot.'sessions'.
 * This path should NOT end with a "/"
 *
 * If your dataroot is stored on a slow volume (such as NFS) you may want to change this to a local directory.
 * Although if you're using a web server cluster, be aware that session files need to be stored in a location shared
 * by all servers, or you need to use persistence to send each user to only one server per session.
 */
// $cfg->sessionpath = '/tmp/mahara-sessions';
302

303
304
305
306
307
308
/**
 * @global int $cfg->accesstimeupdatefrequency How often Mahara should update the last
 * access time for users. Setting this lower means the field will be updated more
 * regularly, but means a database write will be required for more requests.
 * Setting it to zero means the access time will be updated every request
 */
309
310
$cfg->accesstimeupdatefrequency = 300;

311
312
313
314
315
/**
 * @global int $cfg->accessidletimeout How long since their last request before a user is considered to be logged
 * out. Note that it makes no sense for this to be less than the
 * accesstimeupdatefrequency.
 */
316
317
$cfg->accessidletimeout = 600;

318
319
320
321
/**
 * @global bool $cfg->showonlineuserssideblock
 * Whether to show the onlineusers sideblock
 */
322
//$cfg->showonlineuserssideblock = true;
323

324
325
326
327
328
/**
 * @global int $cfg->leapovermnetlogelevel if importing Leap2A over an xmlrpc mnet connection,
 * set this to something higher than 0 to log import information
 * see the constants in import/leap/lib.php
 */
329
$cfg->leapovermnetloglevel = 0;
330

331
332
333
334
/**
 * @global string $cfg->remoteavatarbaseurl base URL of avatar server (with the trailing slash)
 * This should normally be set to http://www.gravatar.com/avatar/
 */
335
//$cfg->remoteavatarbaseurl = 'http://www.gravatar.com/avatar/';
336

337
338
339
340
341
342
343
344
345
346
347
348
349
350
/**
 * Options for width/height of wysiwyg editor in block configuration
 * forms.  Workaround for current lack of tinymce fullscreen button.
 *
 * @global bool $cfg->blockeditormaxwidth Make the block config form expand to the full width of browser window
 * whenever it contains a tinymce (also increases editor height in
 * textbox blocktype):
 */
//$cfg->blockeditormaxwidth = true;

/**
 * @global int $cfg->blockeditorheight Set a fixed height in pixels for the tinymce editor (currently only
 * affects the textbox blocktype):
 */
351
// $cfg->blockeditorheight = 550;
352

353
354
355
/**
 * @global bool $cfg->sslproxy This needs to be true when forcing https with an ssl proxy such as nginx.
 */
356
$cfg->sslproxy = false;
357

358
359
360
361
362
363
/**
 * @global string $cfg->cacertinfo The name of a file holding one or more certificates to verify the peer
 * when Mahara does HTTPS requests using the PHP Curl library.
 */
// $cfg->cacertinfo = null;

364
365
366
367
368
369
370
371
372
373
374
/**
 * External login page
 * @global string $cfg->externallogin Use this config option when you want users to be redirected to another
 * login page, for example a moodle instance that has mnet to this mahara
 * You can use the following placeholders:
 * {wwwroot} - Expands out to the wwwroot of this moodle
 * {shorturlencoded} - Expands to the relative script path of the current page (and is urlencoded)
 *
 * A point to note about the example below. Moodle doesn't strip the trailing slash from wwwroot
 * Bug MDL-30042 fixes this, if this patch isn't applied, just hard code the login url you want instead
 */
375
// $cfg->externallogin = 'http://moodle.example.com/auth/mnet/jump.php?hostwwwroot={wwwroot}&wantsurl={shorturlencoded}';
376

377
/**
378
379
380
381
 * @global bool $cfg->renamecopies If true, new copies of views & collections will have "Copy of" prepended to the title,
 * and if a page already exists with that title, a number will be appended to the end of the title.
 *
 * If false, "Copy of" will NOT be prepended, but a number may still be appended to the end of the title.
382
 */
383
$cfg->renamecopies = true;
384

385
386
387
388
389
390
/**
 * Favicon display
 * @global string $cfg->favicondisplay string used to get the favicon image src from a given domain.
 * Used to display the sites whose iframe embed code is allowed by htmlpurifier.
 * Either assume that favicon.ico exists at the root of the domain, or use a service.
 */
391
392
393
// $cfg->favicondisplay = 'http://%s/favicon.ico';
// $cfg->favicondisplay = 'http://www.grabicon.com/%s';
// $cfg->favicondisplay = 'http://www.getfavicon.org/?url=%s';
394
$cfg->favicondisplay = 'http://www.google.com/s2/favicons?domain=%s';
395

396
397
/**
 * @global bool $cfg->productionmode If false, a message is shown at the top of the screen saying that the
398
399
400
401
402
 * site is not in production mode; and a number of other parameters are overridden with sensible defaults
 * for a dev site. (See init.php for the full effect).
 *
 * Because productionmode=false overrides a lot of settings with sensible dev mode defaults, if you want to
 * fine-tune your settings on your dev site, you'll paradoxically need to set productionmode=true.
403
 */
404
$cfg->productionmode = true;
405

406
407
408
409
410
411
/**
 * @global bool $cfg->sitethemeprefs If true, users can change their preferred theme for browsing the site.  The user's theme preference
 * will override any site, institution, or page theme.
 * (Even with this setting disabled, users in multiple institutions can choose which of their
 * institutions' themes they wish to use)
 */
412
// $cfg->sitethemeprefs = true;
413

414
415
416
417
418
419
420
/**
 * Clean url configuration
 * @global bool $cfg->cleanurls Set "true" to activate clean URLS in Mahara
 * Do not turn this on until you have the correct rewrite rules in place on your webserver, or none of
 * your links will work.
 * See https://wiki.mahara.org/index.php/System_Administrator%27s_Guide/Clean_URL_Configuration
 */
421
422
// $cfg->cleanurls = true;

423
424
425
426
427
428
429
430
431
/**
 * Strings to use when generating user and group urls, i.e. the 'user' and 'group' portion of clean urls
 * such as http://mahara.example.com/user/bob and http://mahara.example.com/group/bobs-group.  These
 * must match the output of the rewrite rules you have enabled in your webserver.  These strings will
 * also be used as prefixes whenever a valid clean url cannot be automatically generated.
 * @global string $cfg->cleanurluserdefault
 * @global string $cfg->cleangroupdefault
 * @global string $cfg->cleanurlviewdefault
 */
432
433
434
435
$cfg->cleanurluserdefault = 'user';
$cfg->cleanurlgroupdefault = 'group';
$cfg->cleanurlviewdefault = 'page';

436
437
438
/**
 * @global string $cfg->cleanurlcharset Character encoding for clean urls.  ASCII or UTF-8.
 */
439
440
$cfg->cleanurlcharset = 'ASCII';

441
442
443
444
445
446
/**
 * @global string $cfg->cleanurlinvalidcharacters A PCRE pattern defining sequences of characters to be removed and replaced by '-' when automatically
 * generating names for use in clean urls.  For example, if the pattern is /[^a-zA-Z0-9]+/, and a clean
 * url is being generated for a user with the username 'nigel.mcnie', the '.', which appears in the
 * invalidcharacters list is replaced, to give a url like http://mahara.example.com/user/nigel-mcnie
 */
447
448
$cfg->cleanurlinvalidcharacters = '/[^a-zA-Z0-9]+/';

449
450
451
452
/**
 * @global string $cfg>cleanurlvalidate A pattern to validate user-editable fields for use in clean urls.  If a user enters a string that
 * doesn't match this, it's an error.
 */
453
$cfg->cleanurlvalidate = '/^[a-z0-9-]*$/';
454

455
456
457
/**
 * @global bool $cfg->cleanurlusereditable Setting this to false will remove the "Change profile URL" option from the settings page.
 */
458
$cfg->cleanurlusereditable = true;
459

460
461
462
463
464
/**
 * @global bool $cfg->cleanurlusersubdomains generate subdomain-style profile urls like http://bob.mahara.example.com
 * Warning: Enabling this option on your site is likely to cause users with open sessions to be logged out on all profile pages.
 * See https://wiki.mahara.org/index.php/System_Administrator%27s_Guide/Clean_URL_Configuration#User_Subdomains
 */
465
// $cfg->cleanurlusersubdomains = true;
466

467
468
469
/**
 * @global bool $cfg->nocache Turn on caching of HTTP requests
 */
Hugh Davenport's avatar
Hugh Davenport committed
470
// $cfg->nocache = true;
471

472
473
474
475
476
477
478
479
480
481
482
483
/**
 * Settings used by the "elasticsearch" search plugin.
 * See the helpfiles on the plugin's configuration page for details.
 * @global string $cfg->plugin->search->elasticsearch->host
 * @global int $cfg->plugin->search->elasticsearch->port
 * @global string $cfg->plugin->search->elasticsearch->username
 * @global string $cfg->plugin->search->elasticsearch->password
 * @global string $cfg->plugin->search->elasticsearch->indexname
 * @global string $cfg->plugin->search->elasticsearch->bypassindexname
 * @global string $cfg->plugin->search->elasticsearch->analyzer
 * @global string $cfg->plugin->search->elasticsearch->types
 */
484
485
486
487
488
489
490
491
// @$cfg->plugin->search->elasticsearch->host = '127.0.0.1';
// @$cfg->plugin->search->elasticsearch->port = 9200;
// @$cfg->plugin->search->elasticsearch->username = '';
// @$cfg->plugin->search->elasticsearch->password = '';
// @$cfg->plugin->search->elasticsearch->indexname = 'mahara';
// @$cfg->plugin->search->elasticsearch->bypassindexname = null;
// @$cfg->plugin->search->elasticsearch->analyzer = 'mahara_analyzer';
// @$cfg->plugin->search->elasticsearch->types = 'usr,interaction_instance,interaction_forum_post,group,view,artefact';
492

493
494
495
496
497
/**
 * Additional HTML: Use these settings to put snippets of HTML at the top of every page on the site.
 * This is useful for e.g. Google Analytics. If you need to enter a multi-line snippet, it may be best
 * to use a PHP nowdoc: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.nowdoc
 */
498
499
500
501
502
503
504
505
506
507
508
509
// $cfg->additionalhtmlhead = <<<'HTML'
// <script type="text/javascript">
//   var _gaq = _gaq || [];
//   _gaq.push(['_setAccount', 'UA-XXXXX-X']);
//   _gaq.push(['_trackPageview']);
//   (function() {
//     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
//     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
//     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
//   })();
// </script>
// HTML;
510
511
512
/**
 * @global string $cfg->additionalhtmlhead Added as the last item before the closing </head> tag
 */
513
$cfg->additionalhtmlhead = '';
514
515
516
/**
 * @global string $cfg->additionalhtmltopofbody Added immediately after the opening <body> tag
 */
517
$cfg->additionalhtmltopofbody = '';
518
519
520
/**
 * @global string $cfg->additionalhtmlfooter Added as the last item before the closing </body> tag
 */
521
$cfg->additionalhtmlfooter = '';
522

523
524
525
526
/**
 * @global string $cfg->auth_ldap_debug_sync_cron Whether to display extended debugging messages in
 * the auth/ldap user & group synchronization cron task.
 */
527
528
// $cfg->auth_ldap_debug_sync_cron = false;

529
530
531
532
533
534
535
536
537
538
539
540
/**
 * @global bool $cfg->usersuniquebyusername When turned on, this setting means that it doesn't matter
 * which other application the user SSOs from, the same username string from a remote SSO will be given
 * the same account in Mahara.
 *
 * This setting is one that has security implications unless only turned on by people who know what they're doing. In
 * particular, every system linked to Mahara should be making sure that same username == same person.  This happens for
 * example if two Moodles are using the same LDAP server for authentication.
 *
 * If this setting is on, it must NOT be possible to self register on the site for ANY institution - otherwise users
 * could simply pick usernames of people's accounts they wished to steal.
 */
541
$cfg->usersuniquebyusername = false;
542
543

/**
544
 * @global bool $cfg->skins Activates the experimental "page skins" feature, which allows users to customize the CSS
545
546
 * on individual pages.
 */
547
548
549
550
551
552
// $cfg->skins = false;

/**
 * @global string $cfg->opensslcnf Allows manual setting of path to openssl.cnf file for ssl key generation if not
 * being automatically detected. Needed for extra-site networking.
 */
553
// $cfg->opensslcnf = '';