aabc875776bb4086c84e917cdc55909b5192b665
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 /**
3 *
4 * NEVER EDIT THIS FILE
5 *
6 *
7 * To customize your installation, edit "LocalSettings.php". If you make
8 * changes here, they will be lost on next upgrade of MediaWiki!
9 *
10 * Note that since all these string interpolations are expanded
11 * before LocalSettings is included, if you localize something
12 * like $wgScriptPath, you must also localize everything that
13 * depends on it.
14 *
15 * Documentation is in the source and on:
16 * http://www.mediawiki.org/wiki/Manual:Configuration_settings
17 *
18 */
19
20 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
21 if( !defined( 'MEDIAWIKI' ) ) {
22 echo "This file is part of MediaWiki and is not a valid entry point\n";
23 die( 1 );
24 }
25
26 /**
27 * Create a site configuration object
28 * Not used for much in a default install
29 */
30 require_once( "$IP/includes/SiteConfiguration.php" );
31 $wgConf = new SiteConfiguration;
32
33 /** MediaWiki version number */
34 $wgVersion = '1.13alpha';
35
36 /** Name of the site. It must be changed in LocalSettings.php */
37 $wgSitename = 'MediaWiki';
38
39 /**
40 * Name of the project namespace. If left set to false, $wgSitename will be
41 * used instead.
42 */
43 $wgMetaNamespace = false;
44
45 /**
46 * Name of the project talk namespace.
47 *
48 * Normally you can ignore this and it will be something like
49 * $wgMetaNamespace . "_talk". In some languages, you may want to set this
50 * manually for grammatical reasons. It is currently only respected by those
51 * languages where it might be relevant and where no automatic grammar converter
52 * exists.
53 */
54 $wgMetaNamespaceTalk = false;
55
56
57 /** URL of the server. It will be automatically built including https mode */
58 $wgServer = '';
59
60 if( isset( $_SERVER['SERVER_NAME'] ) ) {
61 $wgServerName = $_SERVER['SERVER_NAME'];
62 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
63 $wgServerName = $_SERVER['HOSTNAME'];
64 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
65 $wgServerName = $_SERVER['HTTP_HOST'];
66 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
67 $wgServerName = $_SERVER['SERVER_ADDR'];
68 } else {
69 $wgServerName = 'localhost';
70 }
71
72 # check if server use https:
73 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
74
75 $wgServer = $wgProto.'://' . $wgServerName;
76 # If the port is a non-standard one, add it to the URL
77 if( isset( $_SERVER['SERVER_PORT'] )
78 && !strpos( $wgServerName, ':' )
79 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
80 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
81
82 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
83 }
84
85
86 /**
87 * The path we should point to.
88 * It might be a virtual path in case with use apache mod_rewrite for example
89 *
90 * This *needs* to be set correctly.
91 *
92 * Other paths will be set to defaults based on it unless they are directly
93 * set in LocalSettings.php
94 */
95 $wgScriptPath = '/wiki';
96
97 /**
98 * Whether to support URLs like index.php/Page_title These often break when PHP
99 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
100 * but then again it may not; lighttpd converts incoming path data to lowercase
101 * on systems with case-insensitive filesystems, and there have been reports of
102 * problems on Apache as well.
103 *
104 * To be safe we'll continue to keep it off by default.
105 *
106 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
107 * incorrect garbage, or to true if it is really correct.
108 *
109 * The default $wgArticlePath will be set based on this value at runtime, but if
110 * you have customized it, having this incorrectly set to true can cause
111 * redirect loops when "pretty URLs" are used.
112 */
113 $wgUsePathInfo =
114 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
115 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
116 ( strpos( php_sapi_name(), 'isapi' ) === false );
117
118
119 /**@{
120 * Script users will request to get articles
121 * ATTN: Old installations used wiki.phtml and redirect.phtml - make sure that
122 * LocalSettings.php is correctly set!
123 *
124 * Will be set based on $wgScriptPath in Setup.php if not overridden in
125 * LocalSettings.php. Generally you should not need to change this unless you
126 * don't like seeing "index.php".
127 */
128 $wgScriptExtension = '.php'; ///< extension to append to script names by default
129 $wgScript = false; ///< defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
130 $wgRedirectScript = false; ///< defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
131 /**@}*/
132
133
134 /**@{
135 * These various web and file path variables are set to their defaults
136 * in Setup.php if they are not explicitly set from LocalSettings.php.
137 * If you do override them, be sure to set them all!
138 *
139 * These will relatively rarely need to be set manually, unless you are
140 * splitting style sheets or images outside the main document root.
141 */
142 /**
143 * style path as seen by users
144 */
145 $wgStylePath = false; ///< defaults to "{$wgScriptPath}/skins"
146 /**
147 * filesystem stylesheets directory
148 */
149 $wgStyleDirectory = false; ///< defaults to "{$IP}/skins"
150 $wgStyleSheetPath = &$wgStylePath;
151 $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
152 $wgVariantArticlePath = false;
153 $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images"
154 $wgUploadDirectory = false; ///< defaults to "{$IP}/images"
155 $wgHashedUploadDirectory = true;
156 $wgLogo = false; ///< defaults to "{$wgStylePath}/common/images/wiki.png"
157 $wgFavicon = '/favicon.ico';
158 $wgAppleTouchIcon = false; ///< This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
159 $wgMathPath = false; ///< defaults to "{$wgUploadPath}/math"
160 $wgMathDirectory = false; ///< defaults to "{$wgUploadDirectory}/math"
161 $wgTmpDirectory = false; ///< defaults to "{$wgUploadDirectory}/tmp"
162 $wgUploadBaseUrl = "";
163 /**@}*/
164
165 /**
166 * New file storage paths; currently used only for deleted files.
167 * Set it like this:
168 *
169 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
170 *
171 */
172 $wgFileStore = array();
173 $wgFileStore['deleted']['directory'] = false;///< Defaults to $wgUploadDirectory/deleted
174 $wgFileStore['deleted']['url'] = null; ///< Private
175 $wgFileStore['deleted']['hash'] = 3; ///< 3-level subdirectory split
176
177 /**@{
178 * File repository structures
179 *
180 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
181 * a an array of such structures. Each repository structure is an associative
182 * array of properties configuring the repository.
183 *
184 * Properties required for all repos:
185 * class The class name for the repository. May come from the core or an extension.
186 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
187 *
188 * name A unique name for the repository.
189 *
190 * For all core repos:
191 * url Base public URL
192 * hashLevels The number of directory levels for hash-based division of files
193 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
194 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
195 * handler instead.
196 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
197 * start with a capital letter. The current implementation may give incorrect
198 * description page links when the local $wgCapitalLinks and initialCapital
199 * are mismatched.
200 * pathDisclosureProtection
201 * May be 'paranoid' to remove all parameters from error messages, 'none' to
202 * leave the paths in unchanged, or 'simple' to replace paths with
203 * placeholders. Default for LocalRepo is 'simple'.
204 *
205 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
206 * for local repositories:
207 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
208 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
209 * http://en.wikipedia.org/w
210 *
211 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
212 * fetchDescription Fetch the text of the remote file description page. Equivalent to
213 * $wgFetchCommonsDescriptions.
214 *
215 * ForeignDBRepo:
216 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
217 * equivalent to the corresponding member of $wgDBservers
218 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
219 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
220 *
221 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
222 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
223 */
224 $wgLocalFileRepo = false;
225 $wgForeignFileRepos = array();
226 /**@}*/
227
228 /**
229 * Allowed title characters -- regex character class
230 * Don't change this unless you know what you're doing
231 *
232 * Problematic punctuation:
233 * []{}|# Are needed for link syntax, never enable these
234 * <> Causes problems with HTML escaping, don't use
235 * % Enabled by default, minor problems with path to query rewrite rules, see below
236 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
237 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
238 *
239 * All three of these punctuation problems can be avoided by using an alias, instead of a
240 * rewrite rule of either variety.
241 *
242 * The problem with % is that when using a path to query rewrite rule, URLs are
243 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
244 * %253F, for example, becomes "?". Our code does not double-escape to compensate
245 * for this, indeed double escaping would break if the double-escaped title was
246 * passed in the query string rather than the path. This is a minor security issue
247 * because articles can be created such that they are hard to view or edit.
248 *
249 * In some rare cases you may wish to remove + for compatibility with old links.
250 *
251 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
252 * this breaks interlanguage links
253 */
254 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
255
256
257 /**
258 * The external URL protocols
259 */
260 $wgUrlProtocols = array(
261 'http://',
262 'https://',
263 'ftp://',
264 'irc://',
265 'gopher://',
266 'telnet://', // Well if we're going to support the above.. -ævar
267 'nntp://', // @bug 3808 RFC 1738
268 'worldwind://',
269 'mailto:',
270 'news:'
271 );
272
273 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
274 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
275 */
276 $wgAntivirus= NULL;
277
278 /** Configuration for different virus scanners. This an associative array of associative arrays:
279 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
280 * valid values for $wgAntivirus are the keys defined in this array.
281 *
282 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
283 *
284 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
285 * file to scan. If not present, the filename will be appended to the command. Note that this must be
286 * overwritten if the scanner is not in the system path; in that case, plase set
287 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
288 *
289 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
290 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
291 * the file if $wgAntivirusRequired is not set.
292 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
293 * which is probably imune to virusses. This causes the file to pass.
294 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
295 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
296 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
297 *
298 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
299 * output. The relevant part should be matched as group one (\1).
300 * If not defined or the pattern does not match, the full message is shown to the user.
301 */
302 $wgAntivirusSetup = array(
303
304 #setup for clamav
305 'clamav' => array (
306 'command' => "clamscan --no-summary ",
307
308 'codemap' => array (
309 "0" => AV_NO_VIRUS, # no virus
310 "1" => AV_VIRUS_FOUND, # virus found
311 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
312 "*" => AV_SCAN_FAILED, # else scan failed
313 ),
314
315 'messagepattern' => '/.*?:(.*)/sim',
316 ),
317
318 #setup for f-prot
319 'f-prot' => array (
320 'command' => "f-prot ",
321
322 'codemap' => array (
323 "0" => AV_NO_VIRUS, # no virus
324 "3" => AV_VIRUS_FOUND, # virus found
325 "6" => AV_VIRUS_FOUND, # virus found
326 "*" => AV_SCAN_FAILED, # else scan failed
327 ),
328
329 'messagepattern' => '/.*?Infection:(.*)$/m',
330 ),
331 );
332
333
334 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
335 $wgAntivirusRequired= true;
336
337 /** Determines if the mime type of uploaded files should be checked */
338 $wgVerifyMimeType= true;
339
340 /** Sets the mime type definition file to use by MimeMagic.php. */
341 $wgMimeTypeFile= "includes/mime.types";
342 #$wgMimeTypeFile= "/etc/mime.types";
343 #$wgMimeTypeFile= NULL; #use built-in defaults only.
344
345 /** Sets the mime type info file to use by MimeMagic.php. */
346 $wgMimeInfoFile= "includes/mime.info";
347 #$wgMimeInfoFile= NULL; #use built-in defaults only.
348
349 /** Switch for loading the FileInfo extension by PECL at runtime.
350 * This should be used only if fileinfo is installed as a shared object
351 * or a dynamic libary
352 */
353 $wgLoadFileinfoExtension= false;
354
355 /** Sets an external mime detector program. The command must print only
356 * the mime type to standard output.
357 * The name of the file to process will be appended to the command given here.
358 * If not set or NULL, mime_content_type will be used if available.
359 */
360 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
361 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
362
363 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
364 * things, because only a few types of images are needed and file extensions
365 * can be trusted.
366 */
367 $wgTrivialMimeDetection= false;
368
369 /**
370 * To set 'pretty' URL paths for actions other than
371 * plain page views, add to this array. For instance:
372 * 'edit' => "$wgScriptPath/edit/$1"
373 *
374 * There must be an appropriate script or rewrite rule
375 * in place to handle these URLs.
376 */
377 $wgActionPaths = array();
378
379 /**
380 * If you operate multiple wikis, you can define a shared upload path here.
381 * Uploads to this wiki will NOT be put there - they will be put into
382 * $wgUploadDirectory.
383 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
384 * no file of the given name is found in the local repository (for [[Image:..]],
385 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
386 * directory.
387 *
388 * Note that these configuration settings can now be defined on a per-
389 * repository basis for an arbitrary number of file repositories, using the
390 * $wgForeignFileRepos variable.
391 */
392 $wgUseSharedUploads = false;
393 /** Full path on the web server where shared uploads can be found */
394 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
395 /** Fetch commons image description pages and display them on the local wiki? */
396 $wgFetchCommonsDescriptions = false;
397 /** Path on the file system where shared uploads can be found. */
398 $wgSharedUploadDirectory = "/var/www/wiki3/images";
399 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
400 $wgSharedUploadDBname = false;
401 /** Optional table prefix used in database. */
402 $wgSharedUploadDBprefix = '';
403 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
404 $wgCacheSharedUploads = true;
405 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
406 $wgAllowCopyUploads = false;
407 /**
408 * Max size for uploads, in bytes. Currently only works for uploads from URL
409 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
410 * normal uploads is currently to edit php.ini.
411 */
412 $wgMaxUploadSize = 1024*1024*100; # 100MB
413
414 /**
415 * Point the upload navigation link to an external URL
416 * Useful if you want to use a shared repository by default
417 * without disabling local uploads (use $wgEnableUploads = false for that)
418 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
419 */
420 $wgUploadNavigationUrl = false;
421
422 /**
423 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
424 * generating them on render and outputting a static URL. This is necessary if some of your
425 * apache servers don't have read/write access to the thumbnail path.
426 *
427 * Example:
428 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
429 */
430 $wgThumbnailScriptPath = false;
431 $wgSharedThumbnailScriptPath = false;
432
433 /**
434 * Set the following to false especially if you have a set of files that need to
435 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
436 * directory layout.
437 */
438 $wgHashedSharedUploadDirectory = true;
439
440 /**
441 * Base URL for a repository wiki. Leave this blank if uploads are just stored
442 * in a shared directory and not meant to be accessible through a separate wiki.
443 * Otherwise the image description pages on the local wiki will link to the
444 * image description page on this wiki.
445 *
446 * Please specify the namespace, as in the example below.
447 */
448 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
449
450 #
451 # Email settings
452 #
453
454 /**
455 * Site admin email address
456 * Default to wikiadmin@SERVER_NAME
457 */
458 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
459
460 /**
461 * Password reminder email address
462 * The address we should use as sender when a user is requesting his password
463 * Default to apache@SERVER_NAME
464 */
465 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
466
467 /**
468 * dummy address which should be accepted during mail send action
469 * It might be necessay to adapt the address or to set it equal
470 * to the $wgEmergencyContact address
471 */
472 #$wgNoReplyAddress = $wgEmergencyContact;
473 $wgNoReplyAddress = 'reply@not.possible';
474
475 /**
476 * Set to true to enable the e-mail basic features:
477 * Password reminders, etc. If sending e-mail on your
478 * server doesn't work, you might want to disable this.
479 */
480 $wgEnableEmail = true;
481
482 /**
483 * Set to true to enable user-to-user e-mail.
484 * This can potentially be abused, as it's hard to track.
485 */
486 $wgEnableUserEmail = true;
487
488 /**
489 * Set to true to put the sending user's email in a Reply-To header
490 * instead of From. ($wgEmergencyContact will be used as From.)
491 *
492 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
493 * which can cause problems with SPF validation and leak recipient addressses
494 * when bounces are sent to the sender.
495 */
496 $wgUserEmailUseReplyTo = false;
497
498 /**
499 * Minimum time, in hours, which must elapse between password reminder
500 * emails for a given account. This is to prevent abuse by mail flooding.
501 */
502 $wgPasswordReminderResendTime = 24;
503
504 /**
505 * SMTP Mode
506 * For using a direct (authenticated) SMTP server connection.
507 * Default to false or fill an array :
508 * <code>
509 * "host" => 'SMTP domain',
510 * "IDHost" => 'domain for MessageID',
511 * "port" => "25",
512 * "auth" => true/false,
513 * "username" => user,
514 * "password" => password
515 * </code>
516 */
517 $wgSMTP = false;
518
519
520 /**@{
521 * Database settings
522 */
523 /** database host name or ip address */
524 $wgDBserver = 'localhost';
525 /** database port number */
526 $wgDBport = '';
527 /** name of the database */
528 $wgDBname = 'wikidb';
529 /** */
530 $wgDBconnection = '';
531 /** Database username */
532 $wgDBuser = 'wikiuser';
533 /** Database type
534 */
535 $wgDBtype = "mysql";
536 /** Search type
537 * Leave as null to select the default search engine for the
538 * selected database type (eg SearchMySQL4), or set to a class
539 * name to override to a custom search engine.
540 */
541 $wgSearchType = null;
542 /** Table name prefix */
543 $wgDBprefix = '';
544 /** MySQL table options to use during installation or update */
545 $wgDBTableOptions = 'TYPE=InnoDB';
546
547 /** To override default SQLite data directory ($docroot/../data) */
548 $wgSQLiteDataDir = '';
549
550 /**
551 * Make all database connections secretly go to localhost. Fool the load balancer
552 * thinking there is an arbitrarily large cluster of servers to connect to.
553 * Useful for debugging.
554 */
555 $wgAllDBsAreLocalhost = false;
556
557 /**@}*/
558
559
560 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
561 $wgCheckDBSchema = true;
562
563
564 /**
565 * Shared database for multiple wikis. Commonly used for storing a user table
566 * for single sign-on. The server for this database must be the same as for the
567 * main database.
568 * For backwards compatibility the shared prefix is set to the same as the local
569 * prefix, and the user table is listed in the default list of shared tables.
570 *
571 * $wgSharedTables may be customized with a list of tables to share in the shared
572 * datbase. However it is advised to limit what tables you do share as many of
573 * MediaWiki's tables may have side effects if you try to share them.
574 * EXPERIMENTAL
575 */
576 $wgSharedDB = null;
577 $wgSharedPrefix = false; # Defaults to $wgDBprefix
578 $wgSharedTables = array( 'user' );
579
580 /**
581 * Database load balancer
582 * This is a two-dimensional array, an array of server info structures
583 * Fields are:
584 * host: Host name
585 * dbname: Default database name
586 * user: DB user
587 * password: DB password
588 * type: "mysql" or "postgres"
589 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
590 * groupLoads: array of load ratios, the key is the query group name. A query may belong
591 * to several groups, the most specific group defined here is used.
592 *
593 * flags: bit field
594 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
595 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
596 * DBO_TRX -- wrap entire request in a transaction
597 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
598 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
599 *
600 * max lag: (optional) Maximum replication lag before a slave will taken out of rotation
601 * max threads: (optional) Maximum number of running threads
602 *
603 * These and any other user-defined properties will be assigned to the mLBInfo member
604 * variable of the Database object.
605 *
606 * Leave at false to use the single-server variables above. If you set this
607 * variable, the single-server variables will generally be ignored (except
608 * perhaps in some command-line scripts).
609 *
610 * The first server listed in this array (with key 0) will be the master. The
611 * rest of the servers will be slaves. To prevent writes to your slaves due to
612 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
613 * slaves in my.cnf. You can set read_only mode at runtime using:
614 *
615 * SET @@read_only=1;
616 *
617 * Since the effect of writing to a slave is so damaging and difficult to clean
618 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
619 * our masters, and then set read_only=0 on masters at runtime.
620 */
621 $wgDBservers = false;
622
623 /**
624 * Load balancer factory configuration
625 * To set up a multi-master wiki farm, set the class here to something that
626 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
627 * The class identified here is responsible for reading $wgDBservers,
628 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
629 *
630 * The LBFactory_Multi class is provided for this purpose, please see
631 * includes/LBFactory_Multi.php for configuration information.
632 */
633 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
634
635 /** How long to wait for a slave to catch up to the master */
636 $wgMasterWaitTimeout = 10;
637
638 /** File to log database errors to */
639 $wgDBerrorLog = false;
640
641 /** When to give an error message */
642 $wgDBClusterTimeout = 10;
643
644 /**
645 * Scale load balancer polling time so that under overload conditions, the database server
646 * receives a SHOW STATUS query at an average interval of this many microseconds
647 */
648 $wgDBAvgStatusPoll = 2000;
649
650 /**
651 * wgDBminWordLen :
652 * MySQL 3.x : used to discard words that MySQL will not return any results for
653 * shorter values configure mysql directly.
654 * MySQL 4.x : ignore it and configure mySQL
655 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
656 */
657 $wgDBminWordLen = 4;
658 /** Set to true if using InnoDB tables */
659 $wgDBtransactions = false;
660 /** Set to true for compatibility with extensions that might be checking.
661 * MySQL 3.23.x is no longer supported. */
662 $wgDBmysql4 = true;
663
664 /**
665 * Set to true to engage MySQL 4.1/5.0 charset-related features;
666 * for now will just cause sending of 'SET NAMES=utf8' on connect.
667 *
668 * WARNING: THIS IS EXPERIMENTAL!
669 *
670 * May break if you're not using the table defs from mysql5/tables.sql.
671 * May break if you're upgrading an existing wiki if set differently.
672 * Broken symptoms likely to include incorrect behavior with page titles,
673 * usernames, comments etc containing non-ASCII characters.
674 * Might also cause failures on the object cache and other things.
675 *
676 * Even correct usage may cause failures with Unicode supplementary
677 * characters (those not in the Basic Multilingual Plane) unless MySQL
678 * has enhanced their Unicode support.
679 */
680 $wgDBmysql5 = false;
681
682 /**
683 * Other wikis on this site, can be administered from a single developer
684 * account.
685 * Array numeric key => database name
686 */
687 $wgLocalDatabases = array();
688
689 /** @{
690 * Object cache settings
691 * See Defines.php for types
692 */
693 $wgMainCacheType = CACHE_NONE;
694 $wgMessageCacheType = CACHE_ANYTHING;
695 $wgParserCacheType = CACHE_ANYTHING;
696 /**@}*/
697
698 $wgParserCacheExpireTime = 86400;
699
700 $wgSessionsInMemcached = false;
701
702 /**@{
703 * Memcached-specific settings
704 * See docs/memcached.txt
705 */
706 $wgUseMemCached = false;
707 $wgMemCachedDebug = false; ///< Will be set to false in Setup.php, if the server isn't working
708 $wgMemCachedServers = array( '127.0.0.1:11000' );
709 $wgMemCachedPersistent = false;
710 /**@}*/
711
712 /**
713 * Directory for local copy of message cache, for use in addition to memcached
714 */
715 $wgLocalMessageCache = false;
716 /**
717 * Defines format of local cache
718 * true - Serialized object
719 * false - PHP source file (Warning - security risk)
720 */
721 $wgLocalMessageCacheSerialized = true;
722
723 /**
724 * Directory for compiled constant message array databases
725 * WARNING: turning anything on will just break things, aaaaaah!!!!
726 */
727 $wgCachedMessageArrays = false;
728
729 # Language settings
730 #
731 /** Site language code, should be one of ./languages/Language(.*).php */
732 $wgLanguageCode = 'en';
733
734 /**
735 * Some languages need different word forms, usually for different cases.
736 * Used in Language::convertGrammar().
737 */
738 $wgGrammarForms = array();
739 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
740
741 /** Treat language links as magic connectors, not inline links */
742 $wgInterwikiMagic = true;
743
744 /** Hide interlanguage links from the sidebar */
745 $wgHideInterlanguageLinks = false;
746
747 /** List of language names or overrides for default names in Names.php */
748 $wgExtraLanguageNames = array();
749
750 /** We speak UTF-8 all the time now, unless some oddities happen */
751 $wgInputEncoding = 'UTF-8';
752 $wgOutputEncoding = 'UTF-8';
753 $wgEditEncoding = '';
754
755 /**
756 * Set this to eg 'ISO-8859-1' to perform character set
757 * conversion when loading old revisions not marked with
758 * "utf-8" flag. Use this when converting wiki to UTF-8
759 * without the burdensome mass conversion of old text data.
760 *
761 * NOTE! This DOES NOT touch any fields other than old_text.
762 * Titles, comments, user names, etc still must be converted
763 * en masse in the database before continuing as a UTF-8 wiki.
764 */
765 $wgLegacyEncoding = false;
766
767 /**
768 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
769 * create stub reference rows in the text table instead of copying
770 * the full text of all current entries from 'cur' to 'text'.
771 *
772 * This will speed up the conversion step for large sites, but
773 * requires that the cur table be kept around for those revisions
774 * to remain viewable.
775 *
776 * maintenance/migrateCurStubs.php can be used to complete the
777 * migration in the background once the wiki is back online.
778 *
779 * This option affects the updaters *only*. Any present cur stub
780 * revisions will be readable at runtime regardless of this setting.
781 */
782 $wgLegacySchemaConversion = false;
783
784 $wgMimeType = 'text/html';
785 $wgJsMimeType = 'text/javascript';
786 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
787 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
788 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
789
790 /**
791 * Permit other namespaces in addition to the w3.org default.
792 * Use the prefix for the key and the namespace for the value. For
793 * example:
794 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
795 * Normally we wouldn't have to define this in the root <html>
796 * element, but IE needs it there in some circumstances.
797 */
798 $wgXhtmlNamespaces = array();
799
800 /** Enable to allow rewriting dates in page text.
801 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
802 $wgUseDynamicDates = false;
803 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
804 * the interface is set to English
805 */
806 $wgAmericanDates = false;
807 /**
808 * For Hindi and Arabic use local numerals instead of Western style (0-9)
809 * numerals in interface.
810 */
811 $wgTranslateNumerals = true;
812
813 /**
814 * Translation using MediaWiki: namespace.
815 * This will increase load times by 25-60% unless memcached is installed.
816 * Interface messages will be loaded from the database.
817 */
818 $wgUseDatabaseMessages = true;
819
820 /**
821 * Expiry time for the message cache key
822 */
823 $wgMsgCacheExpiry = 86400;
824
825 /**
826 * Maximum entry size in the message cache, in bytes
827 */
828 $wgMaxMsgCacheEntrySize = 10000;
829
830 /**
831 * Set to false if you are thorough system admin who always remembers to keep
832 * serialized files up to date to save few mtime calls.
833 */
834 $wgCheckSerialized = true;
835
836 /** Whether to enable language variant conversion. */
837 $wgDisableLangConversion = false;
838
839 /** Default variant code, if false, the default will be the language code */
840 $wgDefaultLanguageVariant = false;
841
842 /**
843 * Show a bar of language selection links in the user login and user
844 * registration forms; edit the "loginlanguagelinks" message to
845 * customise these
846 */
847 $wgLoginLanguageSelector = false;
848
849 /**
850 * Whether to use zhdaemon to perform Chinese text processing
851 * zhdaemon is under developement, so normally you don't want to
852 * use it unless for testing
853 */
854 $wgUseZhdaemon = false;
855 $wgZhdaemonHost="localhost";
856 $wgZhdaemonPort=2004;
857
858
859 # Miscellaneous configuration settings
860 #
861
862 $wgLocalInterwiki = 'w';
863 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
864
865 /** Interwiki caching settings.
866 $wgInterwikiCache specifies path to constant database file
867 This cdb database is generated by dumpInterwiki from maintenance
868 and has such key formats:
869 dbname:key - a simple key (e.g. enwiki:meta)
870 _sitename:key - site-scope key (e.g. wiktionary:meta)
871 __global:key - global-scope key (e.g. __global:meta)
872 __sites:dbname - site mapping (e.g. __sites:enwiki)
873 Sites mapping just specifies site name, other keys provide
874 "local url" data layout.
875 $wgInterwikiScopes specify number of domains to check for messages:
876 1 - Just wiki(db)-level
877 2 - wiki and global levels
878 3 - site levels
879 $wgInterwikiFallbackSite - if unable to resolve from cache
880 */
881 $wgInterwikiCache = false;
882 $wgInterwikiScopes = 3;
883 $wgInterwikiFallbackSite = 'wiki';
884
885 /**
886 * If local interwikis are set up which allow redirects,
887 * set this regexp to restrict URLs which will be displayed
888 * as 'redirected from' links.
889 *
890 * It might look something like this:
891 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
892 *
893 * Leave at false to avoid displaying any incoming redirect markers.
894 * This does not affect intra-wiki redirects, which don't change
895 * the URL.
896 */
897 $wgRedirectSources = false;
898
899
900 $wgShowIPinHeader = true; # For non-logged in users
901 $wgMaxNameChars = 255; # Maximum number of bytes in username
902 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
903 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
904
905 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
906
907 /**
908 * Maximum recursion depth for templates within templates.
909 * The current parser adds two levels to the PHP call stack for each template,
910 * and xdebug limits the call stack to 100 by default. So this should hopefully
911 * stop the parser before it hits the xdebug limit.
912 */
913 $wgMaxTemplateDepth = 40;
914 $wgMaxPPExpandDepth = 40;
915
916 $wgExtraSubtitle = '';
917 $wgSiteSupportPage = ''; # A page where you users can receive donations
918
919 /***
920 * If this lock file exists, the wiki will be forced into read-only mode.
921 * Its contents will be shown to users as part of the read-only warning
922 * message.
923 */
924 $wgReadOnlyFile = false; ///< defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
925
926 /**
927 * The debug log file should be not be publicly accessible if it is used, as it
928 * may contain private data. */
929 $wgDebugLogFile = '';
930
931 $wgDebugRedirects = false;
932 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
933
934 $wgDebugComments = false;
935 $wgReadOnly = null;
936 $wgLogQueries = false;
937
938 /**
939 * Write SQL queries to the debug log
940 */
941 $wgDebugDumpSql = false;
942
943 /**
944 * Set to an array of log group keys to filenames.
945 * If set, wfDebugLog() output for that group will go to that file instead
946 * of the regular $wgDebugLogFile. Useful for enabling selective logging
947 * in production.
948 */
949 $wgDebugLogGroups = array();
950
951 /**
952 * Show the contents of $wgHooks in Special:Version
953 */
954 $wgSpecialVersionShowHooks = false;
955
956 /**
957 * Whether to show "we're sorry, but there has been a database error" pages.
958 * Displaying errors aids in debugging, but may display information useful
959 * to an attacker.
960 */
961 $wgShowSQLErrors = false;
962
963 /**
964 * If true, some error messages will be colorized when running scripts on the
965 * command line; this can aid picking important things out when debugging.
966 * Ignored when running on Windows or when output is redirected to a file.
967 */
968 $wgColorErrors = true;
969
970 /**
971 * If set to true, uncaught exceptions will print a complete stack trace
972 * to output. This should only be used for debugging, as it may reveal
973 * private information in function parameters due to PHP's backtrace
974 * formatting.
975 */
976 $wgShowExceptionDetails = false;
977
978 /**
979 * Expose backend server host names through the API and various HTML comments
980 */
981 $wgShowHostnames = false;
982
983 /**
984 * Use experimental, DMOZ-like category browser
985 */
986 $wgUseCategoryBrowser = false;
987
988 /**
989 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
990 * to speed up output of the same page viewed by another user with the
991 * same options.
992 *
993 * This can provide a significant speedup for medium to large pages,
994 * so you probably want to keep it on.
995 */
996 $wgEnableParserCache = true;
997
998 /**
999 * If on, the sidebar navigation links are cached for users with the
1000 * current language set. This can save a touch of load on a busy site
1001 * by shaving off extra message lookups.
1002 *
1003 * However it is also fragile: changing the site configuration, or
1004 * having a variable $wgArticlePath, can produce broken links that
1005 * don't update as expected.
1006 */
1007 $wgEnableSidebarCache = false;
1008
1009 /**
1010 * Expiry time for the sidebar cache, in seconds
1011 */
1012 $wgSidebarCacheExpiry = 86400;
1013
1014 /**
1015 * Under which condition should a page in the main namespace be counted
1016 * as a valid article? If $wgUseCommaCount is set to true, it will be
1017 * counted if it contains at least one comma. If it is set to false
1018 * (default), it will only be counted if it contains at least one [[wiki
1019 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
1020 *
1021 * Retroactively changing this variable will not affect
1022 * the existing count (cf. maintenance/recount.sql).
1023 */
1024 $wgUseCommaCount = false;
1025
1026 /**
1027 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
1028 * values are easier on the database. A value of 1 causes the counters to be
1029 * updated on every hit, any higher value n cause them to update *on average*
1030 * every n hits. Should be set to either 1 or something largish, eg 1000, for
1031 * maximum efficiency.
1032 */
1033 $wgHitcounterUpdateFreq = 1;
1034
1035 # Basic user rights and block settings
1036 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1037 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1038 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1039 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
1040 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1041
1042 # Pages anonymous user may see as an array, e.g.:
1043 # array ( "Main Page", "Wikipedia:Help");
1044 # Special:Userlogin and Special:Resetpass are always whitelisted.
1045 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1046 # is false -- see below. Otherwise, ALL pages are accessible,
1047 # regardless of this setting.
1048 # Also note that this will only protect _pages in the wiki_.
1049 # Uploaded files will remain readable. Make your upload
1050 # directory name unguessable, or use .htaccess to protect it.
1051 $wgWhitelistRead = false;
1052
1053 /**
1054 * Should editors be required to have a validated e-mail
1055 * address before being allowed to edit?
1056 */
1057 $wgEmailConfirmToEdit=false;
1058
1059 /**
1060 * Permission keys given to users in each group.
1061 * All users are implicitly in the '*' group including anonymous visitors;
1062 * logged-in users are all implicitly in the 'user' group. These will be
1063 * combined with the permissions of all groups that a given user is listed
1064 * in in the user_groups table.
1065 *
1066 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1067 * doing! This will wipe all permissions, and may mean that your users are
1068 * unable to perform certain essential tasks or access new functionality
1069 * when new permissions are introduced and default grants established.
1070 *
1071 * Functionality to make pages inaccessible has not been extensively tested
1072 * for security. Use at your own risk!
1073 *
1074 * This replaces wgWhitelistAccount and wgWhitelistEdit
1075 */
1076 $wgGroupPermissions = array();
1077
1078 // Implicit group for all visitors
1079 $wgGroupPermissions['*' ]['createaccount'] = true;
1080 $wgGroupPermissions['*' ]['read'] = true;
1081 $wgGroupPermissions['*' ]['edit'] = true;
1082 $wgGroupPermissions['*' ]['createpage'] = true;
1083 $wgGroupPermissions['*' ]['createtalk'] = true;
1084 $wgGroupPermissions['*' ]['writeapi'] = true;
1085
1086 // Implicit group for all logged-in accounts
1087 $wgGroupPermissions['user' ]['move'] = true;
1088 $wgGroupPermissions['user' ]['move-subpages'] = true;
1089 $wgGroupPermissions['user' ]['read'] = true;
1090 $wgGroupPermissions['user' ]['edit'] = true;
1091 $wgGroupPermissions['user' ]['createpage'] = true;
1092 $wgGroupPermissions['user' ]['createtalk'] = true;
1093 $wgGroupPermissions['user' ]['writeapi'] = true;
1094 $wgGroupPermissions['user' ]['upload'] = true;
1095 $wgGroupPermissions['user' ]['reupload'] = true;
1096 $wgGroupPermissions['user' ]['reupload-shared'] = true;
1097 $wgGroupPermissions['user' ]['minoredit'] = true;
1098 $wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
1099
1100 // Implicit group for accounts that pass $wgAutoConfirmAge
1101 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1102
1103 // Users with bot privilege can have their edits hidden
1104 // from various log pages by default
1105 $wgGroupPermissions['bot' ]['bot'] = true;
1106 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
1107 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
1108 $wgGroupPermissions['bot' ]['autopatrol'] = true;
1109 $wgGroupPermissions['bot' ]['suppressredirect'] = true;
1110 $wgGroupPermissions['bot' ]['apihighlimits'] = true;
1111 $wgGroupPermissions['bot' ]['writeapi'] = true;
1112 #$wgGroupPermissions['bot' ]['editprotected'] = true; // can edit all protected pages without cascade protection enabled
1113
1114 // Most extra permission abilities go to this group
1115 $wgGroupPermissions['sysop']['block'] = true;
1116 $wgGroupPermissions['sysop']['createaccount'] = true;
1117 $wgGroupPermissions['sysop']['delete'] = true;
1118 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
1119 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1120 $wgGroupPermissions['sysop']['undelete'] = true;
1121 $wgGroupPermissions['sysop']['editinterface'] = true;
1122 $wgGroupPermissions['sysop']['editusercssjs'] = true;
1123 $wgGroupPermissions['sysop']['import'] = true;
1124 $wgGroupPermissions['sysop']['importupload'] = true;
1125 $wgGroupPermissions['sysop']['move'] = true;
1126 $wgGroupPermissions['sysop']['move-subpages'] = true;
1127 $wgGroupPermissions['sysop']['patrol'] = true;
1128 $wgGroupPermissions['sysop']['autopatrol'] = true;
1129 $wgGroupPermissions['sysop']['protect'] = true;
1130 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1131 $wgGroupPermissions['sysop']['rollback'] = true;
1132 $wgGroupPermissions['sysop']['trackback'] = true;
1133 $wgGroupPermissions['sysop']['upload'] = true;
1134 $wgGroupPermissions['sysop']['reupload'] = true;
1135 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1136 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1137 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1138 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1139 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1140 $wgGroupPermissions['sysop']['blockemail'] = true;
1141 $wgGroupPermissions['sysop']['markbotedits'] = true;
1142 $wgGroupPermissions['sysop']['suppressredirect'] = true;
1143 $wgGroupPermissions['sysop']['apihighlimits'] = true;
1144 $wgGroupPermissions['sysop']['browsearchive'] = true;
1145 $wgGroupPermissions['sysop']['noratelimit'] = true;
1146 #$wgGroupPermissions['sysop']['mergehistory'] = true;
1147
1148 // Permission to change users' group assignments
1149 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1150 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
1151 // Permission to change users' groups assignments across wikis
1152 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
1153
1154 #$wgGroupPermissions['sysop']['deleterevision'] = true;
1155 // To hide usernames from users and Sysops
1156 #$wgGroupPermissions['suppress']['hideuser'] = true;
1157 // To hide revisions/log items from users and Sysops
1158 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
1159 // For private suppression log access
1160 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
1161
1162 /**
1163 * The developer group is deprecated, but can be activated if need be
1164 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1165 * that a lock file be defined and creatable/removable by the web
1166 * server.
1167 */
1168 # $wgGroupPermissions['developer']['siteadmin'] = true;
1169
1170
1171 /**
1172 * Implicit groups, aren't shown on Special:Listusers or somewhere else
1173 */
1174 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
1175
1176 /**
1177 * These are the groups that users are allowed to add to or remove from
1178 * their own account via Special:Userrights.
1179 */
1180 $wgGroupsAddToSelf = array();
1181 $wgGroupsRemoveFromSelf = array();
1182
1183 /**
1184 * Set of available actions that can be restricted via action=protect
1185 * You probably shouldn't change this.
1186 * Translated trough restriction-* messages.
1187 */
1188 $wgRestrictionTypes = array( 'edit', 'move' );
1189
1190 /**
1191 * Rights which can be required for each protection level (via action=protect)
1192 *
1193 * You can add a new protection level that requires a specific
1194 * permission by manipulating this array. The ordering of elements
1195 * dictates the order on the protection form's lists.
1196 *
1197 * '' will be ignored (i.e. unprotected)
1198 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1199 */
1200 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1201
1202 /**
1203 * Set the minimum permissions required to edit pages in each
1204 * namespace. If you list more than one permission, a user must
1205 * have all of them to edit pages in that namespace.
1206 */
1207 $wgNamespaceProtection = array();
1208 $wgNamespaceProtection[ NS_MEDIAWIKI ] = array( 'editinterface' );
1209
1210 /**
1211 * Pages in namespaces in this array can not be used as templates.
1212 * Elements must be numeric namespace ids.
1213 * Among other things, this may be useful to enforce read-restrictions
1214 * which may otherwise be bypassed by using the template machanism.
1215 */
1216 $wgNonincludableNamespaces = array();
1217
1218 /**
1219 * Number of seconds an account is required to age before
1220 * it's given the implicit 'autoconfirm' group membership.
1221 * This can be used to limit privileges of new accounts.
1222 *
1223 * Accounts created by earlier versions of the software
1224 * may not have a recorded creation date, and will always
1225 * be considered to pass the age test.
1226 *
1227 * When left at 0, all registered accounts will pass.
1228 */
1229 $wgAutoConfirmAge = 0;
1230 //$wgAutoConfirmAge = 600; // ten minutes
1231 //$wgAutoConfirmAge = 3600*24; // one day
1232
1233 # Number of edits an account requires before it is autoconfirmed
1234 # Passing both this AND the time requirement is needed
1235 $wgAutoConfirmCount = 0;
1236 //$wgAutoConfirmCount = 50;
1237
1238 /**
1239 * Automatically add a usergroup to any user who matches certain conditions.
1240 * The format is
1241 * array( '&' or '|' or '^', cond1, cond2, ... )
1242 * where cond1, cond2, ... are themselves conditions; *OR*
1243 * APCOND_EMAILCONFIRMED, *OR*
1244 * array( APCOND_EMAILCONFIRMED ), *OR*
1245 * array( APCOND_EDITCOUNT, number of edits ), *OR*
1246 * array( APCOND_AGE, seconds since registration ), *OR*
1247 * similar constructs defined by extensions.
1248 *
1249 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
1250 * user who has provided an e-mail address.
1251 */
1252 $wgAutopromote = array(
1253 'autoconfirmed' => array( '&',
1254 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
1255 array( APCOND_AGE, &$wgAutoConfirmAge ),
1256 ),
1257 );
1258
1259 /**
1260 * These settings can be used to give finer control over who can assign which
1261 * groups at Special:Userrights. Example configuration:
1262 *
1263 * // Bureaucrat can add any group
1264 * $wgAddGroups['bureaucrat'] = true;
1265 * // Bureaucrats can only remove bots and sysops
1266 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1267 * // Sysops can make bots
1268 * $wgAddGroups['sysop'] = array( 'bot' );
1269 * // Sysops can disable other sysops in an emergency, and disable bots
1270 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1271 */
1272 $wgAddGroups = $wgRemoveGroups = array();
1273
1274
1275 /**
1276 * A list of available rights, in addition to the ones defined by the core.
1277 * For extensions only.
1278 */
1279 $wgAvailableRights = array();
1280
1281 /**
1282 * Optional to restrict deletion of pages with higher revision counts
1283 * to users with the 'bigdelete' permission. (Default given to sysops.)
1284 */
1285 $wgDeleteRevisionsLimit = 0;
1286
1287 /**
1288 * Used to figure out if a user is "active" or not. User::isActiveEditor()
1289 * sees if a user has made at least $wgActiveUserEditCount number of edits
1290 * within the last $wgActiveUserDays days.
1291 */
1292 $wgActiveUserEditCount = 30;
1293 $wgActiveUserDays = 30;
1294
1295 # Proxy scanner settings
1296 #
1297
1298 /**
1299 * If you enable this, every editor's IP address will be scanned for open HTTP
1300 * proxies.
1301 *
1302 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1303 * ISP and ask for your server to be shut down.
1304 *
1305 * You have been warned.
1306 */
1307 $wgBlockOpenProxies = false;
1308 /** Port we want to scan for a proxy */
1309 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1310 /** Script used to scan */
1311 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1312 /** */
1313 $wgProxyMemcExpiry = 86400;
1314 /** This should always be customised in LocalSettings.php */
1315 $wgSecretKey = false;
1316 /** big list of banned IP addresses, in the keys not the values */
1317 $wgProxyList = array();
1318 /** deprecated */
1319 $wgProxyKey = false;
1320
1321 /** Number of accounts each IP address may create, 0 to disable.
1322 * Requires memcached */
1323 $wgAccountCreationThrottle = 0;
1324
1325 # Client-side caching:
1326
1327 /** Allow client-side caching of pages */
1328 $wgCachePages = true;
1329
1330 /**
1331 * Set this to current time to invalidate all prior cached pages. Affects both
1332 * client- and server-side caching.
1333 * You can get the current date on your server by using the command:
1334 * date +%Y%m%d%H%M%S
1335 */
1336 $wgCacheEpoch = '20030516000000';
1337
1338 /**
1339 * Bump this number when changing the global style sheets and JavaScript.
1340 * It should be appended in the query string of static CSS and JS includes,
1341 * to ensure that client-side caches don't keep obsolete copies of global
1342 * styles.
1343 */
1344 $wgStyleVersion = '154';
1345
1346
1347 # Server-side caching:
1348
1349 /**
1350 * This will cache static pages for non-logged-in users to reduce
1351 * database traffic on public sites.
1352 * Must set $wgShowIPinHeader = false
1353 */
1354 $wgUseFileCache = false;
1355
1356 /** Directory where the cached page will be saved */
1357 $wgFileCacheDirectory = false; ///< defaults to "{$wgUploadDirectory}/cache";
1358
1359 /**
1360 * When using the file cache, we can store the cached HTML gzipped to save disk
1361 * space. Pages will then also be served compressed to clients that support it.
1362 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1363 * the default LocalSettings.php! If you enable this, remove that setting first.
1364 *
1365 * Requires zlib support enabled in PHP.
1366 */
1367 $wgUseGzip = false;
1368
1369 /** Whether MediaWiki should send an ETag header */
1370 $wgUseETag = false;
1371
1372 # Email notification settings
1373 #
1374
1375 /** For email notification on page changes */
1376 $wgPasswordSender = $wgEmergencyContact;
1377
1378 # true: from page editor if s/he opted-in
1379 # false: Enotif mails appear to come from $wgEmergencyContact
1380 $wgEnotifFromEditor = false;
1381
1382 // TODO move UPO to preferences probably ?
1383 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1384 # If set to false, the corresponding input form on the user preference page is suppressed
1385 # It call this to be a "user-preferences-option (UPO)"
1386 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1387 $wgEnotifWatchlist = false; # UPO
1388 $wgEnotifUserTalk = false; # UPO
1389 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1390 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1391 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1392
1393 # Send a generic mail instead of a personalised mail for each user. This
1394 # always uses UTC as the time zone, and doesn't include the username.
1395 #
1396 # For pages with many users watching, this can significantly reduce mail load.
1397 # Has no effect when using sendmail rather than SMTP;
1398
1399 $wgEnotifImpersonal = false;
1400
1401 # Maximum number of users to mail at once when using impersonal mail. Should
1402 # match the limit on your mail server.
1403 $wgEnotifMaxRecips = 500;
1404
1405 # Send mails via the job queue.
1406 $wgEnotifUseJobQ = false;
1407
1408 /**
1409 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1410 */
1411 $wgUsersNotifiedOnAllChanges = array();
1412
1413 /** Show watching users in recent changes, watchlist and page history views */
1414 $wgRCShowWatchingUsers = false; # UPO
1415 /** Show watching users in Page views */
1416 $wgPageShowWatchingUsers = false;
1417 /** Show the amount of changed characters in recent changes */
1418 $wgRCShowChangedSize = true;
1419
1420 /**
1421 * If the difference between the character counts of the text
1422 * before and after the edit is below that value, the value will be
1423 * highlighted on the RC page.
1424 */
1425 $wgRCChangedSizeThreshold = -500;
1426
1427 /**
1428 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1429 * view for watched pages with new changes */
1430 $wgShowUpdatedMarker = true;
1431
1432 $wgCookieExpiration = 2592000;
1433
1434 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1435 * problems when the user requests two pages within a short period of time. This
1436 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1437 * a grace period.
1438 */
1439 $wgClockSkewFudge = 5;
1440
1441 # Squid-related settings
1442 #
1443
1444 /** Enable/disable Squid */
1445 $wgUseSquid = false;
1446
1447 /** If you run Squid3 with ESI support, enable this (default:false): */
1448 $wgUseESI = false;
1449
1450 /** Internal server name as known to Squid, if different */
1451 # $wgInternalServer = 'http://yourinternal.tld:8000';
1452 $wgInternalServer = $wgServer;
1453
1454 /**
1455 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1456 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1457 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1458 * days
1459 */
1460 $wgSquidMaxage = 18000;
1461
1462 /**
1463 * Default maximum age for raw CSS/JS accesses
1464 */
1465 $wgForcedRawSMaxage = 300;
1466
1467 /**
1468 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1469 *
1470 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1471 * headers sent/modified from these proxies when obtaining the remote IP address
1472 *
1473 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1474 */
1475 $wgSquidServers = array();
1476
1477 /**
1478 * As above, except these servers aren't purged on page changes; use to set a
1479 * list of trusted proxies, etc.
1480 */
1481 $wgSquidServersNoPurge = array();
1482
1483 /** Maximum number of titles to purge in any one client operation */
1484 $wgMaxSquidPurgeTitles = 400;
1485
1486 /** HTCP multicast purging */
1487 $wgHTCPPort = 4827;
1488 $wgHTCPMulticastTTL = 1;
1489 # $wgHTCPMulticastAddress = "224.0.0.85";
1490 $wgHTCPMulticastAddress = false;
1491
1492 # Cookie settings:
1493 #
1494 /**
1495 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1496 * or ".any.subdomain.net"
1497 */
1498 $wgCookieDomain = '';
1499 $wgCookiePath = '/';
1500 $wgCookieSecure = ($wgProto == 'https');
1501 $wgDisableCookieCheck = false;
1502
1503 /**
1504 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
1505 * in browsers that support this feature. This can mitigates some classes of
1506 * XSS attack.
1507 *
1508 * Only supported on PHP 5.2 or higher.
1509 */
1510 $wgCookieHttpOnly = version_compare("5.2", PHP_VERSION, "<");
1511
1512 /**
1513 * If the requesting browser matches a regex in this blacklist, we won't
1514 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
1515 */
1516 $wgHttpOnlyBlacklist = array(
1517 // Internet Explorer for Mac; sometimes the cookies work, sometimes
1518 // they don't. It's difficult to predict, as combinations of path
1519 // and expiration options affect its parsing.
1520 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
1521 );
1522
1523 /** A list of cookies that vary the cache (for use by extensions) */
1524 $wgCacheVaryCookies = array();
1525
1526 /** Override to customise the session name */
1527 $wgSessionName = false;
1528
1529 /** Whether to allow inline image pointing to other websites */
1530 $wgAllowExternalImages = false;
1531
1532 /** If the above is false, you can specify an exception here. Image URLs
1533 * that start with this string are then rendered, while all others are not.
1534 * You can use this to set up a trusted, simple repository of images.
1535 *
1536 * Example:
1537 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1538 */
1539 $wgAllowExternalImagesFrom = '';
1540
1541 /** Allows to move images and other media files. Experemintal, not sure if it always works */
1542 $wgAllowImageMoving = false;
1543
1544 /** Disable database-intensive features */
1545 $wgMiserMode = false;
1546 /** Disable all query pages if miser mode is on, not just some */
1547 $wgDisableQueryPages = false;
1548 /** Number of rows to cache in 'querycache' table when miser mode is on */
1549 $wgQueryCacheLimit = 1000;
1550 /** Number of links to a page required before it is deemed "wanted" */
1551 $wgWantedPagesThreshold = 1;
1552 /** Enable slow parser functions */
1553 $wgAllowSlowParserFunctions = false;
1554
1555 /**
1556 * Maps jobs to their handling classes; extensions
1557 * can add to this to provide custom jobs
1558 */
1559 $wgJobClasses = array(
1560 'refreshLinks' => 'RefreshLinksJob',
1561 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1562 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1563 'sendMail' => 'EmaillingJob',
1564 'enotifNotify' => 'EnotifNotifyJob',
1565 );
1566
1567 /**
1568 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1569 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1570 * (ImageMagick) installed and available in the PATH.
1571 * Please see math/README for more information.
1572 */
1573 $wgUseTeX = false;
1574 /** Location of the texvc binary */
1575 $wgTexvc = './math/texvc';
1576
1577 #
1578 # Profiling / debugging
1579 #
1580 # You have to create a 'profiling' table in your database before using
1581 # profiling see maintenance/archives/patch-profiling.sql .
1582 #
1583 # To enable profiling, edit StartProfiler.php
1584
1585 /** Only record profiling info for pages that took longer than this */
1586 $wgProfileLimit = 0.0;
1587 /** Don't put non-profiling info into log file */
1588 $wgProfileOnly = false;
1589 /** Log sums from profiling into "profiling" table in db. */
1590 $wgProfileToDatabase = false;
1591 /** If true, print a raw call tree instead of per-function report */
1592 $wgProfileCallTree = false;
1593 /** Should application server host be put into profiling table */
1594 $wgProfilePerHost = false;
1595
1596 /** Settings for UDP profiler */
1597 $wgUDPProfilerHost = '127.0.0.1';
1598 $wgUDPProfilerPort = '3811';
1599
1600 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1601 $wgDebugProfiling = false;
1602 /** Output debug message on every wfProfileIn/wfProfileOut */
1603 $wgDebugFunctionEntry = 0;
1604 /** Lots of debugging output from SquidUpdate.php */
1605 $wgDebugSquid = false;
1606
1607 /*
1608 * Destination for wfIncrStats() data...
1609 * 'cache' to go into the system cache, if enabled (memcached)
1610 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
1611 * false to disable
1612 */
1613 $wgStatsMethod = 'cache';
1614
1615 /** Whereas to count the number of time an article is viewed.
1616 * Does not work if pages are cached (for example with squid).
1617 */
1618 $wgDisableCounters = false;
1619
1620 $wgDisableTextSearch = false;
1621 $wgDisableSearchContext = false;
1622
1623
1624 /**
1625 * Set to true to have nicer highligted text in search results,
1626 * by default off due to execution overhead
1627 */
1628 $wgAdvancedSearchHighlighting = false;
1629
1630 /**
1631 * Regexp to match word boundaries, defaults for non-CJK languages
1632 * should be empty for CJK since the words are not separate
1633 */
1634 $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
1635 : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround
1636
1637 /**
1638 * Template for OpenSearch suggestions, defaults to API action=opensearch
1639 *
1640 * Sites with heavy load would tipically have these point to a custom
1641 * PHP wrapper to avoid firing up mediawiki for every keystroke
1642 *
1643 * Placeholders: {searchTerms}
1644 *
1645 */
1646 $wgOpenSearchTemplate = false;
1647
1648 /**
1649 * Enable suggestions while typing in search boxes
1650 * (results are passed around in OpenSearch format)
1651 */
1652 $wgEnableMWSuggest = false;
1653
1654 /**
1655 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
1656 *
1657 * Placeholders: {searchTerms}, {namespaces}, {dbname}
1658 *
1659 */
1660 $wgMWSuggestTemplate = false;
1661
1662 /**
1663 * If you've disabled search semi-permanently, this also disables updates to the
1664 * table. If you ever re-enable, be sure to rebuild the search table.
1665 */
1666 $wgDisableSearchUpdate = false;
1667 /** Uploads have to be specially set up to be secure */
1668 $wgEnableUploads = false;
1669 /**
1670 * Show EXIF data, on by default if available.
1671 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1672 *
1673 * NOTE FOR WINDOWS USERS:
1674 * To enable EXIF functions, add the folloing lines to the
1675 * "Windows extensions" section of php.ini:
1676 *
1677 * extension=extensions/php_mbstring.dll
1678 * extension=extensions/php_exif.dll
1679 */
1680 $wgShowEXIF = function_exists( 'exif_read_data' );
1681
1682 /**
1683 * Set to true to enable the upload _link_ while local uploads are disabled.
1684 * Assumes that the special page link will be bounced to another server where
1685 * uploads do work.
1686 */
1687 $wgRemoteUploads = false;
1688 $wgDisableAnonTalk = false;
1689 /**
1690 * Do DELETE/INSERT for link updates instead of incremental
1691 */
1692 $wgUseDumbLinkUpdate = false;
1693
1694 /**
1695 * Anti-lock flags - bitfield
1696 * ALF_PRELOAD_LINKS
1697 * Preload links during link update for save
1698 * ALF_PRELOAD_EXISTENCE
1699 * Preload cur_id during replaceLinkHolders
1700 * ALF_NO_LINK_LOCK
1701 * Don't use locking reads when updating the link table. This is
1702 * necessary for wikis with a high edit rate for performance
1703 * reasons, but may cause link table inconsistency
1704 * ALF_NO_BLOCK_LOCK
1705 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1706 * wikis.
1707 */
1708 $wgAntiLockFlags = 0;
1709
1710 /**
1711 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1712 * fall back to the old behaviour (no merging).
1713 */
1714 $wgDiff3 = '/usr/bin/diff3';
1715
1716 /**
1717 * We can also compress text stored in the 'text' table. If this is set on, new
1718 * revisions will be compressed on page save if zlib support is available. Any
1719 * compressed revisions will be decompressed on load regardless of this setting
1720 * *but will not be readable at all* if zlib support is not available.
1721 */
1722 $wgCompressRevisions = false;
1723
1724 /**
1725 * This is the list of preferred extensions for uploading files. Uploading files
1726 * with extensions not in this list will trigger a warning.
1727 */
1728 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1729
1730 /** Files with these extensions will never be allowed as uploads. */
1731 $wgFileBlacklist = array(
1732 # HTML may contain cookie-stealing JavaScript and web bugs
1733 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
1734 # PHP scripts may execute arbitrary code on the server
1735 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1736 # Other types that may be interpreted by some servers
1737 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1738 # May contain harmful executables for Windows victims
1739 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1740
1741 /** Files with these mime types will never be allowed as uploads
1742 * if $wgVerifyMimeType is enabled.
1743 */
1744 $wgMimeTypeBlacklist= array(
1745 # HTML may contain cookie-stealing JavaScript and web bugs
1746 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1747 # PHP scripts may execute arbitrary code on the server
1748 'application/x-php', 'text/x-php',
1749 # Other types that may be interpreted by some servers
1750 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1751 # Windows metafile, client-side vulnerability on some systems
1752 'application/x-msmetafile'
1753 );
1754
1755 /** This is a flag to determine whether or not to check file extensions on upload. */
1756 $wgCheckFileExtensions = true;
1757
1758 /**
1759 * If this is turned off, users may override the warning for files not covered
1760 * by $wgFileExtensions.
1761 */
1762 $wgStrictFileExtensions = true;
1763
1764 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
1765 $wgUploadSizeWarning = false;
1766
1767 /** For compatibility with old installations set to false */
1768 $wgPasswordSalt = true;
1769
1770 /** Which namespaces should support subpages?
1771 * See Language.php for a list of namespaces.
1772 */
1773 $wgNamespacesWithSubpages = array(
1774 NS_TALK => true,
1775 NS_USER => true,
1776 NS_USER_TALK => true,
1777 NS_PROJECT_TALK => true,
1778 NS_IMAGE_TALK => true,
1779 NS_MEDIAWIKI_TALK => true,
1780 NS_TEMPLATE_TALK => true,
1781 NS_HELP_TALK => true,
1782 NS_CATEGORY_TALK => true
1783 );
1784
1785 $wgNamespacesToBeSearchedDefault = array(
1786 NS_MAIN => true,
1787 );
1788
1789 /**
1790 * Site notice shown at the top of each page
1791 *
1792 * This message can contain wiki text, and can also be set through the
1793 * MediaWiki:Sitenotice page. You can also provide a separate message for
1794 * logged-out users using the MediaWiki:Anonnotice page.
1795 */
1796 $wgSiteNotice = '';
1797
1798 #
1799 # Images settings
1800 #
1801
1802 /**
1803 * Plugins for media file type handling.
1804 * Each entry in the array maps a MIME type to a class name
1805 */
1806 $wgMediaHandlers = array(
1807 'image/jpeg' => 'BitmapHandler',
1808 'image/png' => 'BitmapHandler',
1809 'image/gif' => 'BitmapHandler',
1810 'image/x-ms-bmp' => 'BmpHandler',
1811 'image/x-bmp' => 'BmpHandler',
1812 'image/svg+xml' => 'SvgHandler', // official
1813 'image/svg' => 'SvgHandler', // compat
1814 'image/vnd.djvu' => 'DjVuHandler', // official
1815 'image/x.djvu' => 'DjVuHandler', // compat
1816 'image/x-djvu' => 'DjVuHandler', // compat
1817 );
1818
1819
1820 /**
1821 * Resizing can be done using PHP's internal image libraries or using
1822 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1823 * These support more file formats than PHP, which only supports PNG,
1824 * GIF, JPG, XBM and WBMP.
1825 *
1826 * Use Image Magick instead of PHP builtin functions.
1827 */
1828 $wgUseImageMagick = false;
1829 /** The convert command shipped with ImageMagick */
1830 $wgImageMagickConvertCommand = '/usr/bin/convert';
1831
1832 /** Sharpening parameter to ImageMagick */
1833 $wgSharpenParameter = '0x0.4';
1834
1835 /** Reduction in linear dimensions below which sharpening will be enabled */
1836 $wgSharpenReductionThreshold = 0.85;
1837
1838 /**
1839 * Use another resizing converter, e.g. GraphicMagick
1840 * %s will be replaced with the source path, %d with the destination
1841 * %w and %h will be replaced with the width and height
1842 *
1843 * An example is provided for GraphicMagick
1844 * Leave as false to skip this
1845 */
1846 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1847 $wgCustomConvertCommand = false;
1848
1849 # Scalable Vector Graphics (SVG) may be uploaded as images.
1850 # Since SVG support is not yet standard in browsers, it is
1851 # necessary to rasterize SVGs to PNG as a fallback format.
1852 #
1853 # An external program is required to perform this conversion:
1854 $wgSVGConverters = array(
1855 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1856 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1857 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1858 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1859 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1860 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1861 );
1862 /** Pick one of the above */
1863 $wgSVGConverter = 'ImageMagick';
1864 /** If not in the executable PATH, specify */
1865 $wgSVGConverterPath = '';
1866 /** Don't scale a SVG larger than this */
1867 $wgSVGMaxSize = 2048;
1868 /**
1869 * Don't thumbnail an image if it will use too much working memory
1870 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1871 * 12.5 million pixels or 3500x3500
1872 */
1873 $wgMaxImageArea = 1.25e7;
1874 /**
1875 * If rendered thumbnail files are older than this timestamp, they
1876 * will be rerendered on demand as if the file didn't already exist.
1877 * Update if there is some need to force thumbs and SVG rasterizations
1878 * to rerender, such as fixes to rendering bugs.
1879 */
1880 $wgThumbnailEpoch = '20030516000000';
1881
1882 /**
1883 * If set, inline scaled images will still produce <img> tags ready for
1884 * output instead of showing an error message.
1885 *
1886 * This may be useful if errors are transitory, especially if the site
1887 * is configured to automatically render thumbnails on request.
1888 *
1889 * On the other hand, it may obscure error conditions from debugging.
1890 * Enable the debug log or the 'thumbnail' log group to make sure errors
1891 * are logged to a file for review.
1892 */
1893 $wgIgnoreImageErrors = false;
1894
1895 /**
1896 * Allow thumbnail rendering on page view. If this is false, a valid
1897 * thumbnail URL is still output, but no file will be created at
1898 * the target location. This may save some time if you have a
1899 * thumb.php or 404 handler set up which is faster than the regular
1900 * webserver(s).
1901 */
1902 $wgGenerateThumbnailOnParse = true;
1903
1904 /** Obsolete, always true, kept for compatibility with extensions */
1905 $wgUseImageResize = true;
1906
1907
1908 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1909 if( !isset( $wgCommandLineMode ) ) {
1910 $wgCommandLineMode = false;
1911 }
1912
1913 /** For colorized maintenance script output, is your terminal background dark ? */
1914 $wgCommandLineDarkBg = false;
1915
1916 #
1917 # Recent changes settings
1918 #
1919
1920 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1921 $wgPutIPinRC = true;
1922
1923 /**
1924 * Recentchanges items are periodically purged; entries older than this many
1925 * seconds will go.
1926 * For one week : 7 * 24 * 3600
1927 */
1928 $wgRCMaxAge = 7 * 24 * 3600;
1929
1930 /**
1931 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
1932 * Note that this is disabled by default because we sometimes do have RC data which is beyond the limit
1933 * for some reason, and some users may use the high numbers to display that data which is still there.
1934 */
1935 $wgRCFilterByAge = false;
1936
1937 /**
1938 * List of Days and Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
1939 */
1940 $wgRCLinkLimits = array( 50, 100, 250, 500 );
1941 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
1942
1943 # Send RC updates via UDP
1944 $wgRC2UDPAddress = false;
1945 $wgRC2UDPPort = false;
1946 $wgRC2UDPPrefix = '';
1947
1948 # Enable user search in Special:Newpages
1949 # This is really a temporary hack around an index install bug on some Wikipedias.
1950 # Kill it once fixed.
1951 $wgEnableNewpagesUserFilter = true;
1952
1953 #
1954 # Copyright and credits settings
1955 #
1956
1957 /** RDF metadata toggles */
1958 $wgEnableDublinCoreRdf = false;
1959 $wgEnableCreativeCommonsRdf = false;
1960
1961 /** Override for copyright metadata.
1962 * TODO: these options need documentation
1963 */
1964 $wgRightsPage = NULL;
1965 $wgRightsUrl = NULL;
1966 $wgRightsText = NULL;
1967 $wgRightsIcon = NULL;
1968
1969 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1970 $wgCopyrightIcon = NULL;
1971
1972 /** Set this to true if you want detailed copyright information forms on Upload. */
1973 $wgUseCopyrightUpload = false;
1974
1975 /** Set this to false if you want to disable checking that detailed copyright
1976 * information values are not empty. */
1977 $wgCheckCopyrightUpload = true;
1978
1979 /**
1980 * Set this to the number of authors that you want to be credited below an
1981 * article text. Set it to zero to hide the attribution block, and a negative
1982 * number (like -1) to show all authors. Note that this will require 2-3 extra
1983 * database hits, which can have a not insignificant impact on performance for
1984 * large wikis.
1985 */
1986 $wgMaxCredits = 0;
1987
1988 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1989 * Otherwise, link to a separate credits page. */
1990 $wgShowCreditsIfMax = true;
1991
1992
1993
1994 /**
1995 * Set this to false to avoid forcing the first letter of links to capitals.
1996 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1997 * appearing with a capital at the beginning of a sentence will *not* go to the
1998 * same place as links in the middle of a sentence using a lowercase initial.
1999 */
2000 $wgCapitalLinks = true;
2001
2002 /**
2003 * List of interwiki prefixes for wikis we'll accept as sources for
2004 * Special:Import (for sysops). Since complete page history can be imported,
2005 * these should be 'trusted'.
2006 *
2007 * If a user has the 'import' permission but not the 'importupload' permission,
2008 * they will only be able to run imports through this transwiki interface.
2009 */
2010 $wgImportSources = array();
2011
2012 /**
2013 * Optional default target namespace for interwiki imports.
2014 * Can use this to create an incoming "transwiki"-style queue.
2015 * Set to numeric key, not the name.
2016 *
2017 * Users may override this in the Special:Import dialog.
2018 */
2019 $wgImportTargetNamespace = null;
2020
2021 /**
2022 * If set to false, disables the full-history option on Special:Export.
2023 * This is currently poorly optimized for long edit histories, so is
2024 * disabled on Wikimedia's sites.
2025 */
2026 $wgExportAllowHistory = true;
2027
2028 /**
2029 * If set nonzero, Special:Export requests for history of pages with
2030 * more revisions than this will be rejected. On some big sites things
2031 * could get bogged down by very very long pages.
2032 */
2033 $wgExportMaxHistory = 0;
2034
2035 $wgExportAllowListContributors = false ;
2036
2037
2038 /** Text matching this regular expression will be recognised as spam
2039 * See http://en.wikipedia.org/wiki/Regular_expression */
2040 $wgSpamRegex = false;
2041 /** Similarly you can get a function to do the job. The function will be given
2042 * the following args:
2043 * - a Title object for the article the edit is made on
2044 * - the text submitted in the textarea (wpTextbox1)
2045 * - the section number.
2046 * The return should be boolean indicating whether the edit matched some evilness:
2047 * - true : block it
2048 * - false : let it through
2049 *
2050 * For a complete example, have a look at the SpamBlacklist extension.
2051 */
2052 $wgFilterCallback = false;
2053
2054 /** Go button goes straight to the edit screen if the article doesn't exist. */
2055 $wgGoToEdit = false;
2056
2057 /** Allow raw, unchecked HTML in <html>...</html> sections.
2058 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
2059 * TO RESTRICT EDITING to only those that you trust
2060 */
2061 $wgRawHtml = false;
2062
2063 /**
2064 * $wgUseTidy: use tidy to make sure HTML output is sane.
2065 * Tidy is a free tool that fixes broken HTML.
2066 * See http://www.w3.org/People/Raggett/tidy/
2067 * $wgTidyBin should be set to the path of the binary and
2068 * $wgTidyConf to the path of the configuration file.
2069 * $wgTidyOpts can include any number of parameters.
2070 *
2071 * $wgTidyInternal controls the use of the PECL extension to use an in-
2072 * process tidy library instead of spawning a separate program.
2073 * Normally you shouldn't need to override the setting except for
2074 * debugging. To install, use 'pear install tidy' and add a line
2075 * 'extension=tidy.so' to php.ini.
2076 */
2077 $wgUseTidy = false;
2078 $wgAlwaysUseTidy = false;
2079 $wgTidyBin = 'tidy';
2080 $wgTidyConf = $IP.'/includes/tidy.conf';
2081 $wgTidyOpts = '';
2082 $wgTidyInternal = extension_loaded( 'tidy' );
2083
2084 /**
2085 * Put tidy warnings in HTML comments
2086 * Only works for internal tidy.
2087 */
2088 $wgDebugTidy = false;
2089
2090 /**
2091 * Validate the overall output using tidy and refuse
2092 * to display the page if it's not valid.
2093 */
2094 $wgValidateAllHtml = false;
2095
2096 /** See list of skins and their symbolic names in languages/Language.php */
2097 $wgDefaultSkin = 'monobook';
2098
2099 /**
2100 * Settings added to this array will override the default globals for the user
2101 * preferences used by anonymous visitors and newly created accounts.
2102 * For instance, to disable section editing links:
2103 * $wgDefaultUserOptions ['editsection'] = 0;
2104 *
2105 */
2106 $wgDefaultUserOptions = array(
2107 'quickbar' => 1,
2108 'underline' => 2,
2109 'cols' => 80,
2110 'rows' => 25,
2111 'searchlimit' => 20,
2112 'contextlines' => 5,
2113 'contextchars' => 50,
2114 'disablesuggest' => 0,
2115 'ajaxsearch' => 0,
2116 'skin' => false,
2117 'math' => 1,
2118 'usenewrc' => 0,
2119 'rcdays' => 7,
2120 'rclimit' => 50,
2121 'wllimit' => 250,
2122 'hideminor' => 0,
2123 'highlightbroken' => 1,
2124 'stubthreshold' => 0,
2125 'previewontop' => 1,
2126 'previewonfirst' => 0,
2127 'editsection' => 1,
2128 'editsectiononrightclick' => 0,
2129 'editondblclick' => 0,
2130 'editwidth' => 0,
2131 'showtoc' => 1,
2132 'showtoolbar' => 1,
2133 'minordefault' => 0,
2134 'date' => 'default',
2135 'imagesize' => 2,
2136 'thumbsize' => 2,
2137 'rememberpassword' => 0,
2138 'enotifwatchlistpages' => 0,
2139 'enotifusertalkpages' => 1,
2140 'enotifminoredits' => 0,
2141 'enotifrevealaddr' => 0,
2142 'shownumberswatching' => 1,
2143 'fancysig' => 0,
2144 'externaleditor' => 0,
2145 'externaldiff' => 0,
2146 'showjumplinks' => 1,
2147 'numberheadings' => 0,
2148 'uselivepreview' => 0,
2149 'watchlistdays' => 3.0,
2150 'extendwatchlist' => 0,
2151 'watchlisthideminor' => 0,
2152 'watchlisthidebots' => 0,
2153 'watchlisthideown' => 0,
2154 'watchcreations' => 0,
2155 'watchdefault' => 0,
2156 'watchmoves' => 0,
2157 'watchdeletion' => 0,
2158 );
2159
2160 /** Whether or not to allow and use real name fields. Defaults to true. */
2161 $wgAllowRealName = true;
2162
2163 /*****************************************************************************
2164 * Extensions
2165 */
2166
2167 /**
2168 * A list of callback functions which are called once MediaWiki is fully initialised
2169 */
2170 $wgExtensionFunctions = array();
2171
2172 /**
2173 * Extension functions for initialisation of skins. This is called somewhat earlier
2174 * than $wgExtensionFunctions.
2175 */
2176 $wgSkinExtensionFunctions = array();
2177
2178 /**
2179 * Extension messages files
2180 * Associative array mapping extension name to the filename where messages can be found.
2181 * The file must create a variable called $messages.
2182 * When the messages are needed, the extension should call wfLoadExtensionMessages().
2183 *
2184 * Example:
2185 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
2186 *
2187 */
2188 $wgExtensionMessagesFiles = array();
2189
2190 /**
2191 * Parser output hooks.
2192 * This is an associative array where the key is an extension-defined tag
2193 * (typically the extension name), and the value is a PHP callback.
2194 * These will be called as an OutputPageParserOutput hook, if the relevant
2195 * tag has been registered with the parser output object.
2196 *
2197 * Registration is done with $pout->addOutputHook( $tag, $data ).
2198 *
2199 * The callback has the form:
2200 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
2201 */
2202 $wgParserOutputHooks = array();
2203
2204 /**
2205 * List of valid skin names.
2206 * The key should be the name in all lower case, the value should be a display name.
2207 * The default skins will be added later, by Skin::getSkinNames(). Use
2208 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
2209 */
2210 $wgValidSkinNames = array();
2211
2212 /**
2213 * Special page list.
2214 * See the top of SpecialPage.php for documentation.
2215 */
2216 $wgSpecialPages = array();
2217
2218 /**
2219 * Array mapping class names to filenames, for autoloading.
2220 */
2221 $wgAutoloadClasses = array();
2222
2223 /**
2224 * An array of extension types and inside that their names, versions, authors,
2225 * urls, descriptions and pointers to localized description msgs. Note that
2226 * the version, url, description and descriptionmsg key can be omitted.
2227 *
2228 * <code>
2229 * $wgExtensionCredits[$type][] = array(
2230 * 'name' => 'Example extension',
2231 * 'version' => 1.9,
2232 * 'svn-revision' => '$LastChangedRevision$',
2233 * 'author' => 'Foo Barstein',
2234 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2235 * 'description' => 'An example extension',
2236 * 'descriptionmsg' => 'exampleextension-desc',
2237 * );
2238 * </code>
2239 *
2240 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
2241 */
2242 $wgExtensionCredits = array();
2243 /*
2244 * end extensions
2245 ******************************************************************************/
2246
2247 /**
2248 * Allow user Javascript page?
2249 * This enables a lot of neat customizations, but may
2250 * increase security risk to users and server load.
2251 */
2252 $wgAllowUserJs = false;
2253
2254 /**
2255 * Allow user Cascading Style Sheets (CSS)?
2256 * This enables a lot of neat customizations, but may
2257 * increase security risk to users and server load.
2258 */
2259 $wgAllowUserCss = false;
2260
2261 /** Use the site's Javascript page? */
2262 $wgUseSiteJs = true;
2263
2264 /** Use the site's Cascading Style Sheets (CSS)? */
2265 $wgUseSiteCss = true;
2266
2267 /** Filter for Special:Randompage. Part of a WHERE clause */
2268 $wgExtraRandompageSQL = false;
2269
2270 /** Allow the "info" action, very inefficient at the moment */
2271 $wgAllowPageInfo = false;
2272
2273 /** Maximum indent level of toc. */
2274 $wgMaxTocLevel = 999;
2275
2276 /** Name of the external diff engine to use */
2277 $wgExternalDiffEngine = false;
2278
2279 /** Use RC Patrolling to check for vandalism */
2280 $wgUseRCPatrol = true;
2281
2282 /** Use new page patrolling to check new pages on Special:Newpages */
2283 $wgUseNPPatrol = true;
2284
2285 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
2286 $wgFeed = true;
2287
2288 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2289 * eg Recentchanges, Newpages. */
2290 $wgFeedLimit = 50;
2291
2292 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2293 * A cached version will continue to be served out even if changes
2294 * are made, until this many seconds runs out since the last render.
2295 *
2296 * If set to 0, feed caching is disabled. Use this for debugging only;
2297 * feed generation can be pretty slow with diffs.
2298 */
2299 $wgFeedCacheTimeout = 60;
2300
2301 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2302 * pages larger than this size. */
2303 $wgFeedDiffCutoff = 32768;
2304
2305
2306 /**
2307 * Additional namespaces. If the namespaces defined in Language.php and
2308 * Namespace.php are insufficient, you can create new ones here, for example,
2309 * to import Help files in other languages.
2310 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2311 * no longer be accessible. If you rename it, then you can access them through
2312 * the new namespace name.
2313 *
2314 * Custom namespaces should start at 100 to avoid conflicting with standard
2315 * namespaces, and should always follow the even/odd main/talk pattern.
2316 */
2317 #$wgExtraNamespaces =
2318 # array(100 => "Hilfe",
2319 # 101 => "Hilfe_Diskussion",
2320 # 102 => "Aide",
2321 # 103 => "Discussion_Aide"
2322 # );
2323 $wgExtraNamespaces = NULL;
2324
2325 /**
2326 * Namespace aliases
2327 * These are alternate names for the primary localised namespace names, which
2328 * are defined by $wgExtraNamespaces and the language file. If a page is
2329 * requested with such a prefix, the request will be redirected to the primary
2330 * name.
2331 *
2332 * Set this to a map from namespace names to IDs.
2333 * Example:
2334 * $wgNamespaceAliases = array(
2335 * 'Wikipedian' => NS_USER,
2336 * 'Help' => 100,
2337 * );
2338 */
2339 $wgNamespaceAliases = array();
2340
2341 /**
2342 * Limit images on image description pages to a user-selectable limit. In order
2343 * to reduce disk usage, limits can only be selected from a list.
2344 * The user preference is saved as an array offset in the database, by default
2345 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2346 * change it if you alter the array (see bug 8858).
2347 * This is the list of settings the user can choose from:
2348 */
2349 $wgImageLimits = array (
2350 array(320,240),
2351 array(640,480),
2352 array(800,600),
2353 array(1024,768),
2354 array(1280,1024),
2355 array(10000,10000) );
2356
2357 /**
2358 * Adjust thumbnails on image pages according to a user setting. In order to
2359 * reduce disk usage, the values can only be selected from a list. This is the
2360 * list of settings the user can choose from:
2361 */
2362 $wgThumbLimits = array(
2363 120,
2364 150,
2365 180,
2366 200,
2367 250,
2368 300
2369 );
2370
2371 /**
2372 * Adjust width of upright images when parameter 'upright' is used
2373 * This allows a nicer look for upright images without the need to fix the width
2374 * by hardcoded px in wiki sourcecode.
2375 */
2376 $wgThumbUpright = 0.75;
2377
2378 /**
2379 * On category pages, show thumbnail gallery for images belonging to that
2380 * category instead of listing them as articles.
2381 */
2382 $wgCategoryMagicGallery = true;
2383
2384 /**
2385 * Paging limit for categories
2386 */
2387 $wgCategoryPagingLimit = 200;
2388
2389 /**
2390 * Browser Blacklist for unicode non compliant browsers
2391 * Contains a list of regexps : "/regexp/" matching problematic browsers
2392 */
2393 $wgBrowserBlackList = array(
2394 /**
2395 * Netscape 2-4 detection
2396 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2397 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2398 * with a negative assertion. The [UIN] identifier specifies the level of security
2399 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2400 * The language string is unreliable, it is missing on NS4 Mac.
2401 *
2402 * Reference: http://www.psychedelix.com/agents/index.shtml
2403 */
2404 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2405 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2406 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2407
2408 /**
2409 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2410 *
2411 * Known useragents:
2412 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2413 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2414 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2415 * - [...]
2416 *
2417 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2418 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2419 */
2420 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2421
2422 /**
2423 * Google wireless transcoder, seems to eat a lot of chars alive
2424 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2425 */
2426 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2427 );
2428
2429 /**
2430 * Fake out the timezone that the server thinks it's in. This will be used for
2431 * date display and not for what's stored in the DB. Leave to null to retain
2432 * your server's OS-based timezone value. This is the same as the timezone.
2433 *
2434 * This variable is currently used ONLY for signature formatting, not for
2435 * anything else.
2436 */
2437 # $wgLocaltimezone = 'GMT';
2438 # $wgLocaltimezone = 'PST8PDT';
2439 # $wgLocaltimezone = 'Europe/Sweden';
2440 # $wgLocaltimezone = 'CET';
2441 $wgLocaltimezone = null;
2442
2443 /**
2444 * Set an offset from UTC in minutes to use for the default timezone setting
2445 * for anonymous users and new user accounts.
2446 *
2447 * This setting is used for most date/time displays in the software, and is
2448 * overrideable in user preferences. It is *not* used for signature timestamps.
2449 *
2450 * You can set it to match the configured server timezone like this:
2451 * $wgLocalTZoffset = date("Z") / 60;
2452 *
2453 * If your server is not configured for the timezone you want, you can set
2454 * this in conjunction with the signature timezone and override the TZ
2455 * environment variable like so:
2456 * $wgLocaltimezone="Europe/Berlin";
2457 * putenv("TZ=$wgLocaltimezone");
2458 * $wgLocalTZoffset = date("Z") / 60;
2459 *
2460 * Leave at NULL to show times in universal time (UTC/GMT).
2461 */
2462 $wgLocalTZoffset = null;
2463
2464
2465 /**
2466 * When translating messages with wfMsg(), it is not always clear what should be
2467 * considered UI messages and what shoud be content messages.
2468 *
2469 * For example, for regular wikipedia site like en, there should be only one
2470 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2471 * it as content of the site and call wfMsgForContent(), while for rendering the
2472 * text of the link, we call wfMsg(). The code in default behaves this way.
2473 * However, sites like common do offer different versions of 'mainpage' and the
2474 * like for different languages. This array provides a way to override the
2475 * default behavior. For example, to allow language specific mainpage and
2476 * community portal, set
2477 *
2478 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2479 */
2480 $wgForceUIMsgAsContentMsg = array();
2481
2482
2483 /**
2484 * Authentication plugin.
2485 */
2486 $wgAuth = null;
2487
2488 /**
2489 * Global list of hooks.
2490 * Add a hook by doing:
2491 * $wgHooks['event_name'][] = $function;
2492 * or:
2493 * $wgHooks['event_name'][] = array($function, $data);
2494 * or:
2495 * $wgHooks['event_name'][] = array($object, 'method');
2496 */
2497 $wgHooks = array();
2498
2499 /**
2500 * The logging system has two levels: an event type, which describes the
2501 * general category and can be viewed as a named subset of all logs; and
2502 * an action, which is a specific kind of event that can exist in that
2503 * log type.
2504 */
2505 $wgLogTypes = array( '',
2506 'block',
2507 'protect',
2508 'rights',
2509 'delete',
2510 'upload',
2511 'move',
2512 'import',
2513 'patrol',
2514 'merge',
2515 'suppress',
2516 );
2517
2518 /**
2519 * This restricts log access to those who have a certain right
2520 * Users without this will not see it in the option menu and can not view it
2521 * Restricted logs are not added to recent changes
2522 * Logs should remain non-transcludable
2523 */
2524 $wgLogRestrictions = array(
2525 'suppress' => 'suppressionlog'
2526 );
2527
2528 /**
2529 * Lists the message key string for each log type. The localized messages
2530 * will be listed in the user interface.
2531 *
2532 * Extensions with custom log types may add to this array.
2533 */
2534 $wgLogNames = array(
2535 '' => 'all-logs-page',
2536 'block' => 'blocklogpage',
2537 'protect' => 'protectlogpage',
2538 'rights' => 'rightslog',
2539 'delete' => 'dellogpage',
2540 'upload' => 'uploadlogpage',
2541 'move' => 'movelogpage',
2542 'import' => 'importlogpage',
2543 'patrol' => 'patrol-log-page',
2544 'merge' => 'mergelog',
2545 'suppress' => 'suppressionlog',
2546 );
2547
2548 /**
2549 * Lists the message key string for descriptive text to be shown at the
2550 * top of each log type.
2551 *
2552 * Extensions with custom log types may add to this array.
2553 */
2554 $wgLogHeaders = array(
2555 '' => 'alllogstext',
2556 'block' => 'blocklogtext',
2557 'protect' => 'protectlogtext',
2558 'rights' => 'rightslogtext',
2559 'delete' => 'dellogpagetext',
2560 'upload' => 'uploadlogpagetext',
2561 'move' => 'movelogpagetext',
2562 'import' => 'importlogpagetext',
2563 'patrol' => 'patrol-log-header',
2564 'merge' => 'mergelogpagetext',
2565 'suppress' => 'suppressionlogtext',
2566 );
2567
2568 /**
2569 * Lists the message key string for formatting individual events of each
2570 * type and action when listed in the logs.
2571 *
2572 * Extensions with custom log types may add to this array.
2573 */
2574 $wgLogActions = array(
2575 'block/block' => 'blocklogentry',
2576 'block/unblock' => 'unblocklogentry',
2577 'protect/protect' => 'protectedarticle',
2578 'protect/modify' => 'modifiedarticleprotection',
2579 'protect/unprotect' => 'unprotectedarticle',
2580 'rights/rights' => 'rightslogentry',
2581 'delete/delete' => 'deletedarticle',
2582 'delete/restore' => 'undeletedarticle',
2583 'delete/revision' => 'revdelete-logentry',
2584 'delete/event' => 'logdelete-logentry',
2585 'upload/upload' => 'uploadedimage',
2586 'upload/overwrite' => 'overwroteimage',
2587 'upload/revert' => 'uploadedimage',
2588 'move/move' => '1movedto2',
2589 'move/move_redir' => '1movedto2_redir',
2590 'import/upload' => 'import-logentry-upload',
2591 'import/interwiki' => 'import-logentry-interwiki',
2592 'merge/merge' => 'pagemerge-logentry',
2593 'suppress/revision' => 'revdelete-logentry',
2594 'suppress/file' => 'revdelete-logentry',
2595 'suppress/event' => 'logdelete-logentry',
2596 'suppress/delete' => 'suppressedarticle',
2597 'suppress/block' => 'blocklogentry',
2598 );
2599
2600 /**
2601 * The same as above, but here values are names of functions,
2602 * not messages
2603 */
2604 $wgLogActionsHandlers = array();
2605
2606 /**
2607 * List of special pages, followed by what subtitle they should go under
2608 * at Special:SpecialPages
2609 */
2610 $wgSpecialPageGroups = array(
2611 'DoubleRedirects' => 'maintenance',
2612 'BrokenRedirects' => 'maintenance',
2613 'Lonelypages' => 'maintenance',
2614 'Uncategorizedpages' => 'maintenance',
2615 'Uncategorizedcategories' => 'maintenance',
2616 'Uncategorizedimages' => 'maintenance',
2617 'Uncategorizedtemplates' => 'maintenance',
2618 'Unusedcategories' => 'maintenance',
2619 'Unusedimages' => 'maintenance',
2620 'Protectedpages' => 'maintenance',
2621 'Protectedtitles' => 'maintenance',
2622 'Unusedtemplates' => 'maintenance',
2623 'Withoutinterwiki' => 'maintenance',
2624 'Longpages' => 'maintenance',
2625 'Shortpages' => 'maintenance',
2626 'Ancientpages' => 'maintenance',
2627 'Deadendpages' => 'maintenance',
2628 'Wantedpages' => 'maintenance',
2629 'Wantedcategories' => 'maintenance',
2630 'Unwatchedpages' => 'maintenance',
2631 'Fewestrevisions' => 'maintenance',
2632
2633 'Userlogin' => 'login',
2634 'Userlogout' => 'login',
2635 'CreateAccount' => 'login',
2636
2637 'Recentchanges' => 'changes',
2638 'Recentchangeslinked' => 'changes',
2639 'Watchlist' => 'changes',
2640 'Newimages' => 'changes',
2641 'Newpages' => 'changes',
2642 'Log' => 'changes',
2643
2644 'Upload' => 'media',
2645 'Imagelist' => 'media',
2646 'MIMEsearch' => 'media',
2647 'FileDuplicateSearch' => 'media',
2648 'Filepath' => 'media',
2649
2650 'Listusers' => 'users',
2651 'Listgrouprights' => 'users',
2652 'Ipblocklist' => 'users',
2653 'Contributions' => 'users',
2654 'Emailuser' => 'users',
2655 'Listadmins' => 'users',
2656 'Listbots' => 'users',
2657 'Userrights' => 'users',
2658 'Blockip' => 'users',
2659 'Preferences' => 'users',
2660 'Resetpass' => 'users',
2661
2662 'Mostlinked' => 'highuse',
2663 'Mostlinkedcategories' => 'highuse',
2664 'Mostlinkedtemplates' => 'highuse',
2665 'Mostcategories' => 'highuse',
2666 'Mostimages' => 'highuse',
2667 'Mostrevisions' => 'highuse',
2668
2669 'Allpages' => 'pages',
2670 'Prefixindex' => 'pages',
2671 'Listredirects' => 'pages',
2672 'Categories' => 'pages',
2673 'Disambiguations' => 'pages',
2674
2675 'Randompage' => 'redirects',
2676 'Randomredirect' => 'redirects',
2677 'Mypage' => 'redirects',
2678 'Mytalk' => 'redirects',
2679 'Mycontributions' => 'redirects',
2680 'Search' => 'redirects',
2681
2682 'Movepage' => 'pagetools',
2683 'MergeHistory' => 'pagetools',
2684 'Revisiondelete' => 'pagetools',
2685 'Undelete' => 'pagetools',
2686 'Export' => 'pagetools',
2687 'Import' => 'pagetools',
2688 'Whatlinkshere' => 'pagetools',
2689
2690 'Statistics' => 'wiki',
2691 'Version' => 'wiki',
2692 'Lockdb' => 'wiki',
2693 'Unlockdb' => 'wiki',
2694 'Allmessages' => 'wiki',
2695
2696 'Specialpages' => 'other',
2697 'Blockme' => 'other',
2698 'Booksources' => 'other',
2699 );
2700
2701 /**
2702 * Experimental preview feature to fetch rendered text
2703 * over an XMLHttpRequest from JavaScript instead of
2704 * forcing a submit and reload of the whole page.
2705 * Leave disabled unless you're testing it.
2706 */
2707 $wgLivePreview = false;
2708
2709 /**
2710 * Disable the internal MySQL-based search, to allow it to be
2711 * implemented by an extension instead.
2712 */
2713 $wgDisableInternalSearch = false;
2714
2715 /**
2716 * Set this to a URL to forward search requests to some external location.
2717 * If the URL includes '$1', this will be replaced with the URL-encoded
2718 * search term.
2719 *
2720 * For example, to forward to Google you'd have something like:
2721 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2722 * '&domains=http://example.com' .
2723 * '&sitesearch=http://example.com' .
2724 * '&ie=utf-8&oe=utf-8';
2725 */
2726 $wgSearchForwardUrl = null;
2727
2728 /**
2729 * If true, external URL links in wiki text will be given the
2730 * rel="nofollow" attribute as a hint to search engines that
2731 * they should not be followed for ranking purposes as they
2732 * are user-supplied and thus subject to spamming.
2733 */
2734 $wgNoFollowLinks = true;
2735
2736 /**
2737 * Namespaces in which $wgNoFollowLinks doesn't apply.
2738 * See Language.php for a list of namespaces.
2739 */
2740 $wgNoFollowNsExceptions = array();
2741
2742 /**
2743 * Default robot policy.
2744 * The default policy is to encourage indexing and following of links.
2745 * It may be overridden on a per-namespace and/or per-page basis.
2746 */
2747 $wgDefaultRobotPolicy = 'index,follow';
2748
2749 /**
2750 * Robot policies per namespaces.
2751 * The default policy is given above, the array is made of namespace
2752 * constants as defined in includes/Defines.php
2753 * Example:
2754 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2755 */
2756 $wgNamespaceRobotPolicies = array();
2757
2758 /**
2759 * Robot policies per article.
2760 * These override the per-namespace robot policies.
2761 * Must be in the form of an array where the key part is a properly
2762 * canonicalised text form title and the value is a robot policy.
2763 * Example:
2764 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex' );
2765 */
2766 $wgArticleRobotPolicies = array();
2767
2768 /**
2769 * Specifies the minimal length of a user password. If set to
2770 * 0, empty passwords are allowed.
2771 */
2772 $wgMinimalPasswordLength = 0;
2773
2774 /**
2775 * Activate external editor interface for files and pages
2776 * See http://meta.wikimedia.org/wiki/Help:External_editors
2777 */
2778 $wgUseExternalEditor = true;
2779
2780 /** Whether or not to sort special pages in Special:Specialpages */
2781
2782 $wgSortSpecialPages = true;
2783
2784 /**
2785 * Specify the name of a skin that should not be presented in the
2786 * list of available skins.
2787 * Use for blacklisting a skin which you do not want to remove
2788 * from the .../skins/ directory
2789 */
2790 $wgSkipSkin = '';
2791 $wgSkipSkins = array(); # More of the same
2792
2793 /**
2794 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2795 */
2796 $wgDisabledActions = array();
2797
2798 /**
2799 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2800 */
2801 $wgDisableHardRedirects = false;
2802
2803 /**
2804 * Use http.dnsbl.sorbs.net to check for open proxies
2805 */
2806 $wgEnableSorbs = false;
2807 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2808
2809 /**
2810 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2811 * methods might say
2812 */
2813 $wgProxyWhitelist = array();
2814
2815 /**
2816 * Simple rate limiter options to brake edit floods.
2817 * Maximum number actions allowed in the given number of seconds;
2818 * after that the violating client receives HTTP 500 error pages
2819 * until the period elapses.
2820 *
2821 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2822 *
2823 * This option set is experimental and likely to change.
2824 * Requires memcached.
2825 */
2826 $wgRateLimits = array(
2827 'edit' => array(
2828 'anon' => null, // for any and all anonymous edits (aggregate)
2829 'user' => null, // for each logged-in user
2830 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
2831 'ip' => null, // for each anon and recent account
2832 'subnet' => null, // ... with final octet removed
2833 ),
2834 'move' => array(
2835 'user' => null,
2836 'newbie' => null,
2837 'ip' => null,
2838 'subnet' => null,
2839 ),
2840 'mailpassword' => array(
2841 'anon' => NULL,
2842 ),
2843 'emailuser' => array(
2844 'user' => null,
2845 ),
2846 );
2847
2848 /**
2849 * Set to a filename to log rate limiter hits.
2850 */
2851 $wgRateLimitLog = null;
2852
2853 /**
2854 * Array of groups which should never trigger the rate limiter
2855 *
2856 * @deprecated as of 1.13.0, the preferred method is using
2857 * $wgGroupPermissions[]['noratelimit']. However, this will still
2858 * work if desired.
2859 *
2860 * $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2861 */
2862 $wgRateLimitsExcludedGroups = array();
2863
2864 /**
2865 * On Special:Unusedimages, consider images "used", if they are put
2866 * into a category. Default (false) is not to count those as used.
2867 */
2868 $wgCountCategorizedImagesAsUsed = false;
2869
2870 /**
2871 * External stores allow including content
2872 * from non database sources following URL links
2873 *
2874 * Short names of ExternalStore classes may be specified in an array here:
2875 * $wgExternalStores = array("http","file","custom")...
2876 *
2877 * CAUTION: Access to database might lead to code execution
2878 */
2879 $wgExternalStores = false;
2880
2881 /**
2882 * An array of external mysql servers, e.g.
2883 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2884 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
2885 */
2886 $wgExternalServers = array();
2887
2888 /**
2889 * The place to put new revisions, false to put them in the local text table.
2890 * Part of a URL, e.g. DB://cluster1
2891 *
2892 * Can be an array instead of a single string, to enable data distribution. Keys
2893 * must be consecutive integers, starting at zero. Example:
2894 *
2895 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2896 *
2897 */
2898 $wgDefaultExternalStore = false;
2899
2900 /**
2901 * Revision text may be cached in $wgMemc to reduce load on external storage
2902 * servers and object extraction overhead for frequently-loaded revisions.
2903 *
2904 * Set to 0 to disable, or number of seconds before cache expiry.
2905 */
2906 $wgRevisionCacheExpiry = 0;
2907
2908 /**
2909 * list of trusted media-types and mime types.
2910 * Use the MEDIATYPE_xxx constants to represent media types.
2911 * This list is used by Image::isSafeFile
2912 *
2913 * Types not listed here will have a warning about unsafe content
2914 * displayed on the images description page. It would also be possible
2915 * to use this for further restrictions, like disabling direct
2916 * [[media:...]] links for non-trusted formats.
2917 */
2918 $wgTrustedMediaFormats= array(
2919 MEDIATYPE_BITMAP, //all bitmap formats
2920 MEDIATYPE_AUDIO, //all audio formats
2921 MEDIATYPE_VIDEO, //all plain video formats
2922 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
2923 "application/pdf", //PDF files
2924 #"application/x-shockwave-flash", //flash/shockwave movie
2925 );
2926
2927 /**
2928 * Allow special page inclusions such as {{Special:Allpages}}
2929 */
2930 $wgAllowSpecialInclusion = true;
2931
2932 /**
2933 * Timeout for HTTP requests done via CURL
2934 */
2935 $wgHTTPTimeout = 3;
2936
2937 /**
2938 * Proxy to use for CURL requests.
2939 */
2940 $wgHTTPProxy = false;
2941
2942 /**
2943 * Enable interwiki transcluding. Only when iw_trans=1.
2944 */
2945 $wgEnableScaryTranscluding = false;
2946 /**
2947 * Expiry time for interwiki transclusion
2948 */
2949 $wgTranscludeCacheExpiry = 3600;
2950
2951 /**
2952 * Support blog-style "trackbacks" for articles. See
2953 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2954 */
2955 $wgUseTrackbacks = false;
2956
2957 /**
2958 * Enable filtering of categories in Recentchanges
2959 */
2960 $wgAllowCategorizedRecentChanges = false ;
2961
2962 /**
2963 * Number of jobs to perform per request. May be less than one in which case
2964 * jobs are performed probabalistically. If this is zero, jobs will not be done
2965 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2966 * be run periodically.
2967 */
2968 $wgJobRunRate = 1;
2969
2970 /**
2971 * Number of rows to update per job
2972 */
2973 $wgUpdateRowsPerJob = 500;
2974
2975 /**
2976 * Number of rows to update per query
2977 */
2978 $wgUpdateRowsPerQuery = 10;
2979
2980 /**
2981 * Enable AJAX framework
2982 */
2983 $wgUseAjax = true;
2984
2985 /**
2986 * Enable auto suggestion for the search bar
2987 * Requires $wgUseAjax to be true too.
2988 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2989 */
2990 $wgAjaxSearch = false;
2991
2992 /**
2993 * List of Ajax-callable functions.
2994 * Extensions acting as Ajax callbacks must register here
2995 */
2996 $wgAjaxExportList = array( );
2997
2998 /**
2999 * Enable watching/unwatching pages using AJAX.
3000 * Requires $wgUseAjax to be true too.
3001 * Causes wfAjaxWatch to be added to $wgAjaxExportList
3002 */
3003 $wgAjaxWatch = true;
3004
3005 /**
3006 * Enable AJAX check for file overwrite, pre-upload
3007 */
3008 $wgAjaxUploadDestCheck = true;
3009
3010 /**
3011 * Enable previewing licences via AJAX
3012 */
3013 $wgAjaxLicensePreview = true;
3014
3015 /**
3016 * Allow DISPLAYTITLE to change title display
3017 */
3018 $wgAllowDisplayTitle = true;
3019
3020 /**
3021 * Array of usernames which may not be registered or logged in from
3022 * Maintenance scripts can still use these
3023 */
3024 $wgReservedUsernames = array(
3025 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3026 'Conversion script', // Used for the old Wikipedia software upgrade
3027 'Maintenance script', // Maintenance scripts which perform editing, image import script
3028 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3029 );
3030
3031 /**
3032 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
3033 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
3034 * crap files as images. When this directive is on, <title> will be allowed in files with
3035 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
3036 * and doesn't send appropriate MIME types for SVG images.
3037 */
3038 $wgAllowTitlesInSVG = false;
3039
3040 /**
3041 * Array of namespaces which can be deemed to contain valid "content", as far
3042 * as the site statistics are concerned. Useful if additional namespaces also
3043 * contain "content" which should be considered when generating a count of the
3044 * number of articles in the wiki.
3045 */
3046 $wgContentNamespaces = array( NS_MAIN );
3047
3048 /**
3049 * Maximum amount of virtual memory available to shell processes under linux, in KB.
3050 */
3051 $wgMaxShellMemory = 102400;
3052
3053 /**
3054 * Maximum file size created by shell processes under linux, in KB
3055 * ImageMagick convert for example can be fairly hungry for scratch space
3056 */
3057 $wgMaxShellFileSize = 102400;
3058
3059 /**
3060 * DJVU settings
3061 * Path of the djvudump executable
3062 * Enable this and $wgDjvuRenderer to enable djvu rendering
3063 */
3064 # $wgDjvuDump = 'djvudump';
3065 $wgDjvuDump = null;
3066
3067 /**
3068 * Path of the ddjvu DJVU renderer
3069 * Enable this and $wgDjvuDump to enable djvu rendering
3070 */
3071 # $wgDjvuRenderer = 'ddjvu';
3072 $wgDjvuRenderer = null;
3073
3074 /**
3075 * Path of the djvutoxml executable
3076 * This works like djvudump except much, much slower as of version 3.5.
3077 *
3078 * For now I recommend you use djvudump instead. The djvuxml output is
3079 * probably more stable, so we'll switch back to it as soon as they fix
3080 * the efficiency problem.
3081 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
3082 */
3083 # $wgDjvuToXML = 'djvutoxml';
3084 $wgDjvuToXML = null;
3085
3086
3087 /**
3088 * Shell command for the DJVU post processor
3089 * Default: pnmtopng, since ddjvu generates ppm output
3090 * Set this to false to output the ppm file directly.
3091 */
3092 $wgDjvuPostProcessor = 'pnmtojpeg';
3093 /**
3094 * File extension for the DJVU post processor output
3095 */
3096 $wgDjvuOutputExtension = 'jpg';
3097
3098 /**
3099 * Enable the MediaWiki API for convenient access to
3100 * machine-readable data via api.php
3101 *
3102 * See http://www.mediawiki.org/wiki/API
3103 */
3104 $wgEnableAPI = true;
3105
3106 /**
3107 * Allow the API to be used to perform write operations
3108 * (page edits, rollback, etc.) when an authorised user
3109 * accesses it
3110 */
3111 $wgEnableWriteAPI = false;
3112
3113 /**
3114 * API module extensions
3115 * Associative array mapping module name to class name.
3116 * Extension modules may override the core modules.
3117 */
3118 $wgAPIModules = array();
3119
3120 /**
3121 * Maximum amount of rows to scan in a DB query in the API
3122 * The default value is generally fine
3123 */
3124 $wgAPIMaxDBRows = 5000;
3125
3126 /**
3127 * Parser test suite files to be run by parserTests.php when no specific
3128 * filename is passed to it.
3129 *
3130 * Extensions may add their own tests to this array, or site-local tests
3131 * may be added via LocalSettings.php
3132 *
3133 * Use full paths.
3134 */
3135 $wgParserTestFiles = array(
3136 "$IP/maintenance/parserTests.txt",
3137 );
3138
3139 /**
3140 * Break out of framesets. This can be used to prevent external sites from
3141 * framing your site with ads.
3142 */
3143 $wgBreakFrames = false;
3144
3145 /**
3146 * Set this to an array of special page names to prevent
3147 * maintenance/updateSpecialPages.php from updating those pages.
3148 */
3149 $wgDisableQueryPageUpdate = false;
3150
3151 /**
3152 * Set this to false to disable cascading protection
3153 */
3154 $wgEnableCascadingProtection = true;
3155
3156 /**
3157 * Disable output compression (enabled by default if zlib is available)
3158 */
3159 $wgDisableOutputCompression = false;
3160
3161 /**
3162 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
3163 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
3164 * show a more obvious warning.
3165 */
3166 $wgSlaveLagWarning = 10;
3167 $wgSlaveLagCritical = 30;
3168
3169 /**
3170 * Parser configuration. Associative array with the following members:
3171 *
3172 * class The class name
3173 * preprocessorClass The preprocessor class, by default it is Preprocessor_Hash.
3174 * Preprocessor_DOM is also available and better tested, but
3175 * it has a dependency of the dom module of PHP.
3176 * It has no effect with Parser_OldPP parser class.
3177 *
3178 *
3179 * The entire associative array will be passed through to the constructor as
3180 * the first parameter. Note that only Setup.php can use this variable --
3181 * the configuration will change at runtime via $wgParser member functions, so
3182 * the contents of this variable will be out-of-date. The variable can only be
3183 * changed during LocalSettings.php, in particular, it can't be changed during
3184 * an extension setup function.
3185 */
3186 $wgParserConf = array(
3187 'class' => 'Parser',
3188 'preprocessorClass' => 'Preprocessor_Hash',
3189 );
3190
3191 /**
3192 * Hooks that are used for outputting exceptions. Format is:
3193 * $wgExceptionHooks[] = $funcname
3194 * or:
3195 * $wgExceptionHooks[] = array( $class, $funcname )
3196 * Hooks should return strings or false
3197 */
3198 $wgExceptionHooks = array();
3199
3200 /**
3201 * Page property link table invalidation lists. Should only be set by exten-
3202 * sions.
3203 */
3204 $wgPagePropLinkInvalidations = array(
3205 'hiddencat' => 'categorylinks',
3206 );
3207
3208 /**
3209 * Maximum number of links to a redirect page listed on
3210 * Special:Whatlinkshere/RedirectDestination
3211 */
3212 $wgMaxRedirectLinksRetrieved = 500;
3213
3214 /**
3215 * Maximum number of calls per parse to expensive parser functions such as
3216 * PAGESINCATEGORY.
3217 */
3218 $wgExpensiveParserFunctionLimit = 100;
3219
3220 /**
3221 * Maximum number of pages to move at once when moving subpages with a page.
3222 */
3223 $wgMaximumMovedPages = 100;
3224
3225 /**
3226 * Array of namespaces to generate a sitemap for when the
3227 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
3228 * nerated for all namespaces.
3229 */
3230 $wgSitemapNamespaces = false;
3231
3232
3233 /**
3234 * If user doesn't specify any edit summary when making a an edit, MediaWiki
3235 * will try to automatically create one. This feature can be disabled by set-
3236 * ting this variable false.
3237 */
3238 $wgUseAutomaticEditSummaries = true;