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