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