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