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