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