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