config-defaults.php 27.7 KB
 Penny Leach committed Sep 01, 2008 1 2 3 4 5 6 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 committed Sep 01, 2008 32 33 //$cfg->directorypermissions = 0700;  Aaron Wells committed Sep 06, 2013 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 committed Sep 01, 2008 45 46 //$cfg->insecuredataroot = false;  Aaron Wells committed Sep 06, 2013 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. */  Nigel McNie committed Sep 02, 2009 52 // $cfg->noreplyaddress = 'noreply@myhost.com';  Penny Leach committed Sep 01, 2008 53   Aaron Wells committed Sep 06, 2013 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 committed Sep 01, 2008 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;  Aaron Wells committed Sep 06, 2013 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 committed Sep 01, 2008 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;  Aaron Wells committed Sep 06, 2013 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. */  Richard Mansfield committed Mar 30, 2011 105 // $cfg->log_file = '/path/to/dataroot/error.log';  Nigel McNie committed Oct 13, 2009 106   Aaron Wells committed Sep 06, 2013 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 committed Sep 01, 2008 111 112 $cfg->log_backtrace_levels = LOG_LEVEL_WARN | LOG_LEVEL_ENVIRON;  Aaron Wells committed Jan 14, 2014 113 114 115 116 117 118 119 120 121 122 123 /** * @global int$cfg->error_reporting What level of errors to print to the Mahara logs. Gets passed directly * to the PHP function "error_reporting()". * * NOTE: There are some limitations in this method, because it doesn't get called until several scripts * have already been compiled: init.php, config.php, config-defaults.php, errors.php, and the file directly * invoked in the URL. So, compile-time errors in those files (which includes most strict errors) will be * unaffected by this setting. */ $cfg->error_reporting = E_ALL & ~E_STRICT;  Aaron Wells committed Sep 06, 2013 124 125 126 127 128 129 130 131 132 133 134 135 136 /** * @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 committed Sep 01, 2008 137 $cfg->developermode = false;  Francois Marier committed Jul 12, 2010 138 //$cfg->developermode = DEVMODE_DEBUGJS | DEVMODE_DEBUGCSS | DEVMODE_UNPACKEDJS;  Penny Leach committed Sep 01, 2008 139   Aaron Wells committed Sep 06, 2013 140 141 142 143 144 145 /** * @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. */  Nigel McNie committed Dec 22, 2008 146 $cfg->sendemail = true;  Aaron Wells committed Sep 06, 2013 147 148 149 150 151 /** * @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. */  Nigel McNie committed Dec 22, 2008 152 //$cfg->sendallemailto = 'you@example.com';  Aaron Wells committed Sep 06, 2013 153 154 155 156 157  /** * @global string $cfg->emaillog Log basic details of emails sent out by Mahara. Must be writable by the * webserver user. This will get big. */  Richard Mansfield committed Mar 30, 2011 158 //$cfg->emaillog = '/path/to/dataroot/email.log';  Nigel McNie committed Dec 22, 2008 159   Aaron Wells committed Sep 06, 2013 160 161 162 163 164 /** * @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 committed Sep 01, 2008 165 // $cfg->perftolog = true;  Aaron Wells committed Sep 06, 2013 166 //$cfg->perftofoot = true;  Penny Leach committed Sep 01, 2008 167   Aaron Wells committed Sep 06, 2013 168 169 170 171 172 173 174 175 176 /** * 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. */  Ruslan Kabalin committed Nov 04, 2010 177 //$cfg->smtphosts = 'smtp1.example.com;smtp2.example.com';  Aaron Wells committed Sep 06, 2013 178 179 180 181 182 183 /** * @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'). */  Ruslan Kabalin committed Nov 04, 2010 184 //$cfg->smtpport = 25;  Aaron Wells committed Sep 06, 2013 185 186 187 188 189 /** * @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 committed Sep 01, 2008 190 191 //$cfg->smtpuser = ''; // $cfg->smtppass = '';  Aaron Wells committed Sep 06, 2013 192 193 194 195 196 /** * @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. */  Ruslan Kabalin committed Nov 04, 2010 197 // $cfg->smtpsecure = '';  Penny Leach committed Sep 01, 2008 198   Aaron Wells committed Sep 06, 2013 199 200 201 202 203 204 /** * 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. */  Andrew Robert Nicols committed Nov 20, 2009 205 $cfg->bounces_handle = false;  Aaron Wells committed Sep 06, 2013 206 207 208 209 /** * @global int $cfg->bounces_min Rather than disable an email address on the first bounce message, * require bounces_min bounces. */  Andrew Robert Nicols committed Nov 20, 2009 210 $cfg->bounces_min = 5;  Aaron Wells committed Sep 06, 2013 211 212 213 214 215 /** * @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 committed Dec 16, 2013 216  * (Set this to 0 to ignore bounces_ratio and rely solely on bounces_min)  Aaron Wells committed Sep 06, 2013 217  */  Andrew Robert Nicols committed Nov 20, 2009 218 $cfg->bounces_ratio = 0.20;  Aaron Wells committed Sep 06, 2013 219 220 221 222 223 224 /** * @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. */  Andrew Robert Nicols committed Nov 20, 2009 225 $cfg->bounceprefix = 'AAA-';  Aaron Wells committed Sep 06, 2013 226 227 228 229 230 /** * @global string $cfg->bouncedomain The domainpart of the generated VERP domain. e.g. * @$cfg->bouncedomain * This must be set for VERP handling to take effect */  Andrew Robert Nicols committed Nov 20, 2009 231 232 //$cfg->bouncedomain = '';  Aaron Wells committed Sep 06, 2013 233 234 235 236 /** * @global string$cfg->imapserver The imap server to check for bounced emails * @global int $cfg->imapport The port for the imap server */  Hugh Davenport committed Aug 06, 2012 237 238 //$cfg->imapserver = 'localhost'; //$cfg->imapport = 143;  Aaron Wells committed Sep 06, 2013 239 240 241 242 /** * @global string$cfg->imapuser The imap username to authenticate * @global string $cfg->imappass The imap password to authenticate */  Hugh Davenport committed Aug 06, 2012 243 244 //$cfg->imapuser = ''; //$cfg->imappass = '';  Aaron Wells committed Sep 06, 2013 245 246 247 248 /** * @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 */  Hugh Davenport committed Aug 06, 2012 249 //$cfg->imapflags = '';  Aaron Wells committed Sep 06, 2013 250 251 252 /** * @global string$cfg->imapmailbox Which mailbox to poll, defaults to INBOX */  Hugh Davenport committed Aug 06, 2012 253 //$cfg->imapmailbox = 'INBOX.someotherbox';  Aaron Wells committed Sep 06, 2013 254 255 256 /** * You can even set the library to check pop mail boxes */  Hugh Davenport committed Aug 06, 2012 257 258 259 //$cfg->imapflags = '/pop3'; //$cfg->imapport = 110;  Aaron Wells committed Sep 06, 2013 260 261 262 263 264 265 /** * 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 */  Robert Lyon committed Oct 19, 2015 266 267 $cfg->imagemaxwidth = 1170; $cfg->imagemaxheight = 1170;  Aaron Wells committed Sep 06, 2013 268 269 270 /** * @global int$cfg->maximageresizememory Maximum allowed memory usage for thumbnail generation (approximate) */  Richard Mansfield committed Nov 04, 2011 271 $cfg->maximageresizememory = 104857600;  Penny Leach committed Sep 01, 2008 272   Aaron Wells committed Sep 06, 2013 273 274 275 /** * @global$cfg->pathtoclam The path to the ClamAV executable (clamscan or clamdscan); disabled by default */  Aaron Wells committed Aug 20, 2013 276 $cfg->pathtoclam = '';  Aaron Wells committed Apr 03, 2014 277 278  /**  Robert Lyon committed Apr 03, 2014 279  * @global mixed$cfg->pathtomagicdb Set this value to specify where the PHP fileinfo "magic" DB is.  Aaron Wells committed Apr 03, 2014 280  *  Robert Lyon committed Apr 03, 2014 281 282  * If this value is NULL, Mahara will attempt to use PHP's internal magic db, or to * autolocate your system's magic DB.  Aaron Wells committed Apr 03, 2014 283  */  Robert Lyon committed Apr 03, 2014 284 $cfg->pathtomagicdb = NULL;  Aaron Wells committed Apr 03, 2014 285   Aaron Wells committed Sep 06, 2013 286 287 /** * @global string$cfg->unziptempdir some shared hosts have restrictions on where unzip can be used  Aaron Wells committed Nov 12, 2013 288  * dataroot is often not allowed; but /tmp is. This path should end with a "/"  Aaron Wells committed Sep 06, 2013 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/ */  Penny Leach committed Mar 01, 2009 292 // $cfg->unziptempdir = '/tmp/mahara/';  Aaron Wells committed Nov 13, 2013 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';  Nigel McNie committed Sep 21, 2008 302   Aaron Wells committed Sep 06, 2013 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 */  Nigel McNie committed Sep 21, 2008 309 310 $cfg->accesstimeupdatefrequency = 300;  Aaron Wells committed Sep 06, 2013 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. */  Nigel McNie committed Sep 21, 2008 316 317 $cfg->accessidletimeout = 600;  Aaron Wells committed Sep 06, 2013 318 319 320 321 /** * @global bool $cfg->showonlineuserssideblock * Whether to show the onlineusers sideblock */  ¨Lorena committed May 27, 2010 322 //$cfg->showonlineuserssideblock = true;  Nigel McNie committed Sep 21, 2008 323   Aaron Wells committed Sep 06, 2013 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 */  Penny Leach committed Mar 03, 2010 329 $cfg->leapovermnetloglevel = 0;  Francois Marier committed Jul 12, 2010 330   Aaron Wells committed Sep 06, 2013 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/ */  Francois Marier committed Jul 12, 2010 335 //$cfg->remoteavatarbaseurl = 'http://www.gravatar.com/avatar/';  336   Aaron Wells committed Sep 06, 2013 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): */  Francois Marier committed Jun 07, 2011 351 //$cfg->blockeditorheight = 550;  Melissa Draper committed Sep 09, 2011 352   Aaron Wells committed Apr 17, 2015 353 354 355 356 357 358 359 360 /** * @global boolean $cfg->tinymcespellcheck Activate the TinyMCE spellcheck plugin. Not usually necessary * in modern browsers, which have their own built-in spellchecker. Requires the PHP "enchant" or "pspell" * module to be installed. */ //$cfg->tinymcespellcheckerengine = 'enchant'; //$cfg->tinymcespellcheckerengine = 'pspell';  Aaron Wells committed Sep 06, 2013 361 362 363 /** * @global bool$cfg->sslproxy This needs to be true when forcing https with an ssl proxy such as nginx. */  Melissa Draper committed Sep 09, 2011 364 $cfg->sslproxy = false;  Hugh Davenport committed Nov 02, 2011 365   Aaron Wells committed Oct 22, 2013 366 367 368 369 370 371 /** * @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;  Aaron Wells committed Sep 06, 2013 372 373 374 375 376 377 378 379 380 381 382 /** * 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 */  Hugh Davenport committed Nov 02, 2011 383 // $cfg->externallogin = 'http://moodle.example.com/auth/mnet/jump.php?hostwwwroot={wwwroot}&wantsurl={shorturlencoded}';  Richard Mansfield committed Dec 16, 2011 384   Aaron Wells committed Sep 06, 2013 385 /**  Aaron Wells committed Jan 07, 2014 386 387 388 389  * @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.  Aaron Wells committed Sep 06, 2013 390  */  Robert Lyon committed Oct 07, 2014 391 $cfg->renamecopies = false;  Richard Mansfield committed Apr 12, 2012 392   Aaron Wells committed Sep 06, 2013 393 394 395 396 397 398 /** * 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. */  Richard Mansfield committed Apr 12, 2012 399 400 401 // $cfg->favicondisplay = 'http://%s/favicon.ico'; //$cfg->favicondisplay = 'http://www.grabicon.com/%s'; // $cfg->favicondisplay = 'http://www.getfavicon.org/?url=%s';  Aaron Wells committed Sep 06, 2013 402 $cfg->favicondisplay = 'http://www.google.com/s2/favicons?domain=%s';  Hugh Davenport committed May 25, 2012 403   Aaron Wells committed Sep 06, 2013 404 405 /** * @global bool $cfg->productionmode If false, a message is shown at the top of the screen saying that the  Aaron Wells committed Jan 14, 2014 406 407 408 409 410  * 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.  Aaron Wells committed Sep 06, 2013 411  */  Hugh Davenport committed May 25, 2012 412 $cfg->productionmode = true;  Richard Mansfield committed May 31, 2012 413   Aaron Wells committed Sep 06, 2013 414 415 416 417 418 419 /** * @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) */  Aaron Wells committed May 30, 2013 420 //$cfg->sitethemeprefs = true;  Richard Mansfield committed Jun 01, 2012 421   Aaron Wells committed Sep 06, 2013 422 423 424 425 426 /** * 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.  Robert Lyon committed Oct 20, 2015 427  * See https://wiki.mahara.org/wiki/System_Administrator%27s_Guide/Clean_URL_Configuration  Aaron Wells committed Sep 06, 2013 428  */  Richard Mansfield committed Jun 01, 2012 429 430 //$cfg->cleanurls = true;  Aaron Wells committed Sep 06, 2013 431 432 433 434 435 436 437 438 439 /** * 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 */  Richard Mansfield committed Jun 01, 2012 440 441 442 443 $cfg->cleanurluserdefault = 'user'; $cfg->cleanurlgroupdefault = 'group';$cfg->cleanurlviewdefault = 'page';  Aaron Wells committed Sep 06, 2013 444 445 446 /** * @global string $cfg->cleanurlcharset Character encoding for clean urls. ASCII or UTF-8. */  Richard Mansfield committed Jun 01, 2012 447 448 $cfg->cleanurlcharset = 'ASCII';  Aaron Wells committed Sep 06, 2013 449 450 451 452 453 454 /** * @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 */  Richard Mansfield committed Jun 01, 2012 455 456 $cfg->cleanurlinvalidcharacters = '/[^a-zA-Z0-9]+/';  Aaron Wells committed Sep 06, 2013 457 458 459 460 /** * @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. */  Richard Mansfield committed Jun 01, 2012 461 $cfg->cleanurlvalidate = '/^[a-z0-9-]*$/';  Richard Mansfield committed Jun 08, 2012 462   Aaron Wells committed Sep 06, 2013 463 464 465 /** * @global bool$cfg->cleanurlusereditable Setting this to false will remove the "Change profile URL" option from the settings page. */  Richard Mansfield committed Jun 08, 2012 466 $cfg->cleanurlusereditable = true;  Richard Mansfield committed Jun 18, 2012 467   Aaron Wells committed Sep 06, 2013 468 469 470 /** * @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.  Robert Lyon committed Oct 20, 2015 471  * See https://wiki.mahara.org/wiki/System_Administrator%27s_Guide/Clean_URL_Configuration#User_Subdomains  Aaron Wells committed Sep 06, 2013 472  */  Richard Mansfield committed Jun 18, 2012 473 // $cfg->cleanurlusersubdomains = true;  Son Nguyen committed Sep 07, 2012 474   Aaron Wells committed Sep 06, 2013 475 476 477 /** * @global bool$cfg->nocache Turn on caching of HTTP requests */  Hugh Davenport committed Feb 03, 2013 478 // $cfg->nocache = true;  Mikael Mrozik committed Aug 20, 2013 479   Aaron Wells committed Sep 06, 2013 480 481 482 /** * Settings used by the "elasticsearch" search plugin. * See the helpfiles on the plugin's configuration page for details.  Aaron Wells committed Jul 01, 2014 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498  * @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 */ //$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';  Robert Lyon committed Oct 09, 2015 499 // $cfg->plugin_search_elasticsearch_types = 'usr,interaction_instance,interaction_forum_post,group,view,artefact,block_instance,collection';  Aaron Wells committed Jun 25, 2015 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 /** * @global int$cfg->plugin_search_elasticsearch_requestlimit How many items to send per elasticsearch bulk request * The main side effect of raising this, is that it increases the size of the POST request you send to your * elasticsearch server. If you're using a proxy in front of elasticsearch, a very large request is likely to exceed * its default POST request size limit. */ $cfg->plugin_search_elasticsearch_requestlimit = '100'; /** * @global int$cfg->plugin_search_elasticsearch_redolimit If there are records in the queue that have failed on * being sent in a previous bulk attempt, how many of them should we retry sending individually during each cron * run. The idea here is that if there is one "bad" record in a bulk request which causes the whole request to fail, * you want to retry the records in that batch individually so that the rest of them can be sent. * * We count retried records against the (optional) cron limit. So if cronlimit is 1000 and redolimit is 200, then * we'll do 800 new records and at the end retry 200 individual records. * * A reasonable starting value for this is your cronlimit divided by your requestlimit. (i.e. 50000/100 = 500). */ $cfg->plugin_search_elasticsearch_redolimit = '500';  Aaron Wells committed Aug 22, 2013 520   Aaron Wells committed Aug 13, 2015 521 522 523 524 525 526 /** * The maximum number of comment indentation levels to show * (Same for the feedback block & for bottom of page, so it's best if it's small) */ //$cfg->plugin_artefact_comment_maxindent = 5;  Aaron Wells committed Sep 06, 2013 527 528 529 530 531 /** * 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 */  Aaron Wells committed Aug 22, 2013 532 // $cfg->additionalhtmlhead = <<<'HTML'  Naomi Guyer committed Jun 15, 2015 533 // // HTML;  Aaron Wells committed Sep 06, 2013 544 545 546 /** * @global string$cfg->additionalhtmlhead Added as the last item before the closing tag */  Aaron Wells committed Aug 22, 2013 547 $cfg->additionalhtmlhead = '';  Aaron Wells committed Sep 06, 2013 548 549 550 /** * @global string$cfg->additionalhtmltopofbody Added immediately after the opening tag */  Aaron Wells committed Aug 22, 2013 551 $cfg->additionalhtmltopofbody = '';  Aaron Wells committed Sep 06, 2013 552 553 554 /** * @global string$cfg->additionalhtmlfooter Added as the last item before the closing tag */  Robert Lyon committed Dec 31, 2013 555 $cfg->additionalhtmlfooter = '';  556   Aaron Wells committed Sep 06, 2013 557 558 559 560 /** * @global string$cfg->auth_ldap_debug_sync_cron Whether to display extended debugging messages in * the auth/ldap user & group synchronization cron task. */  Aaron Wells committed Sep 06, 2013 561 562 // $cfg->auth_ldap_debug_sync_cron = false;  Aaron Wells committed Sep 06, 2013 563 564 565 566 567 568 569 570 571 572 573 574 /** * @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. */  Aaron Wells committed Sep 06, 2013 575 $cfg->usersuniquebyusername = false;  Aaron Wells committed Sep 20, 2013 576 577  /**  Aaron Wells committed Sep 20, 2013 578  * @global bool$cfg->skins Activates the experimental "page skins" feature, which allows users to customize the CSS  Aaron Wells committed Sep 20, 2013 579 580  * on individual pages. */  Robert Lyon committed Nov 20, 2013 581 582 583 584 585 586 // $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. */  Robert Lyon committed Dec 17, 2013 587 // $cfg->opensslcnf = '';  Craig Miskell committed Jan 22, 2014 588 589 590 591 592 593 594 595  /** * @global string$cfg->dbtimezone Sets the timezone for your database connection. This is only necessary if your * database server has a different timezone than your web server (which is most likely to happen in cloud hosting). * Consult your database's manual for legal values. */ // $cfg->dbtimezone = '+10:00'; //$cfg->dbtimezone = 'Europe/Rome';  Robert Lyon committed Jan 29, 2014 596 597 598 599 600  /** * @global bool $cfg->publicsearchallowed Activates the display of the search box for logged-out users */$cfg->publicsearchallowed = false;  Aaron Wells committed Mar 10, 2014 601 602 603 604 605 606  /** * @global bool $cfg->alwaysallowselfdelete Set this to "true" to allow all users on the site to delete * their accounts. Leave on the default "false" to only allow users to delete their accounts if they * belong to an institution that allows self-registration. */  Aaron Wells committed Mar 25, 2014 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 //$cfg->alwaysallowselfdelete = true; /** * @global boolean $cfg->probationenabled Determines whether or not to use the new-user probation system. * If enabled, this will prevent newly self-registered users from taking certain actions that would be * useful for creating spam content. Users will leave probation once non-probationary users take actions * that indicate they trust the probationary user. */$cfg->probationenabled = false; /** * @global integer $cfg->probationstartingpoints If new user probation is enabled, this setting determines how * many probation points new users will start with. */$cfg->probationstartingpoints = 2;  Aaron Wells committed Oct 29, 2014 622 623 624 625 626 627  /** * @global string $cfg->cookieprefix Prefix to use on the names of any cookies issued by Mahara. This may * be useful in some unusual hosting situations, for instance if you are running another web application * that issues cookies with the same domain and path as Mahara. */  Jean-Philippe Gaudreau committed Mar 19, 2015 628 629 630 631 632 633 634 //$cfg->cookieprefix = ''; /** * @global bool $cfg->showloginsideblock * Whether to show the login sideblock */$cfg->showloginsideblock = true;  Aaron Wells committed Apr 14, 2015 635 636 637 638 639 640 641  /** * @global string $cfg->ajaxifyblocks Whether or not to use AJAX to load the content of blocktypes. * If the network connection to your users is quite slow, then disabling this may improve the user * experience. */$cfg->ajaxifyblocks = true;  Geoff Rowland committed Jul 06, 2015 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659  /** * @global string $cfg->mathjaxpath Determines the path to CDN or server-local installation of MathJax.js. * If MathJax is enabled, use to configure path to MathJax. */$cfg->mathjaxpath = '//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&delayStartupUntil=configured'; /** * @global string $cfg->mathjaxconfig Determines MathJax configuration options. * The default MathJax configuration should be appropriate for most users, but MathJax is highly configurable * and any of the standard MathJax configuration options can be added here. */$cfg->mathjaxconfig = ' MathJax.Hub.Config({ TeX:{extensions: ["mhchem.js"]} }); MathJax.Hub.Configured(); ';  Son Nguyen committed Sep 16, 2015 660 661 662 663 664 665 666 667 668  /** * @global string $cfg->maxuploadsize The maximun upload size in bytes * This allow to limit the upload size * The real maximum upload size will be calculated on * - PHP settings: post_max_size and upload_max_filesize * - this setting$cfg->maxuploadsize if set */ //\$cfg->maxuploadsize = 16777216;