Fix disabling of APC cache when loading message files: apc.enabled has been PHP_INI_S...
[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 if ( !defined( 'MW_PHP4' ) ) {
31 require_once( "$IP/includes/SiteConfiguration.php" );
32 $wgConf = new SiteConfiguration;
33 }
34
35 /** MediaWiki version number */
36 $wgVersion = '1.16alpha';
37
38 /** Name of the site. It must be changed in LocalSettings.php */
39 $wgSitename = 'MediaWiki';
40
41 /**
42 * Name of the project namespace. If left set to false, $wgSitename will be
43 * used instead.
44 */
45 $wgMetaNamespace = false;
46
47 /**
48 * Name of the project talk namespace.
49 *
50 * Normally you can ignore this and it will be something like
51 * $wgMetaNamespace . "_talk". In some languages, you may want to set this
52 * manually for grammatical reasons. It is currently only respected by those
53 * languages where it might be relevant and where no automatic grammar converter
54 * exists.
55 */
56 $wgMetaNamespaceTalk = false;
57
58
59 /** URL of the server. It will be automatically built including https mode */
60 $wgServer = '';
61
62 if( isset( $_SERVER['SERVER_NAME'] ) ) {
63 $wgServerName = $_SERVER['SERVER_NAME'];
64 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
65 $wgServerName = $_SERVER['HOSTNAME'];
66 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
67 $wgServerName = $_SERVER['HTTP_HOST'];
68 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
69 $wgServerName = $_SERVER['SERVER_ADDR'];
70 } else {
71 $wgServerName = 'localhost';
72 }
73
74 # check if server use https:
75 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
76
77 $wgServer = $wgProto.'://' . $wgServerName;
78 # If the port is a non-standard one, add it to the URL
79 if( isset( $_SERVER['SERVER_PORT'] )
80 && !strpos( $wgServerName, ':' )
81 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
82 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
83
84 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
85 }
86
87
88 /**
89 * The path we should point to.
90 * It might be a virtual path in case with use apache mod_rewrite for example
91 *
92 * This *needs* to be set correctly.
93 *
94 * Other paths will be set to defaults based on it unless they are directly
95 * set in LocalSettings.php
96 */
97 $wgScriptPath = '/wiki';
98
99 /**
100 * Whether to support URLs like index.php/Page_title These often break when PHP
101 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
102 * but then again it may not; lighttpd converts incoming path data to lowercase
103 * on systems with case-insensitive filesystems, and there have been reports of
104 * problems on Apache as well.
105 *
106 * To be safe we'll continue to keep it off by default.
107 *
108 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
109 * incorrect garbage, or to true if it is really correct.
110 *
111 * The default $wgArticlePath will be set based on this value at runtime, but if
112 * you have customized it, having this incorrectly set to true can cause
113 * redirect loops when "pretty URLs" are used.
114 */
115 $wgUsePathInfo =
116 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
117 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
118 ( strpos( php_sapi_name(), 'isapi' ) === false );
119
120
121 /**@{
122 * Script users will request to get articles
123 * ATTN: Old installations used wiki.phtml and redirect.phtml - make sure that
124 * LocalSettings.php is correctly set!
125 *
126 * Will be set based on $wgScriptPath in Setup.php if not overridden in
127 * LocalSettings.php. Generally you should not need to change this unless you
128 * don't like seeing "index.php".
129 */
130 $wgScriptExtension = '.php'; ///< extension to append to script names by default
131 $wgScript = false; ///< defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
132 $wgRedirectScript = false; ///< defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
133 /**@}*/
134
135
136 /**@{
137 * These various web and file path variables are set to their defaults
138 * in Setup.php if they are not explicitly set from LocalSettings.php.
139 * If you do override them, be sure to set them all!
140 *
141 * These will relatively rarely need to be set manually, unless you are
142 * splitting style sheets or images outside the main document root.
143 */
144 /**
145 * style path as seen by users
146 */
147 $wgStylePath = false; ///< defaults to "{$wgScriptPath}/skins"
148 /**
149 * filesystem stylesheets directory
150 */
151 $wgStyleDirectory = false; ///< defaults to "{$IP}/skins"
152 $wgStyleSheetPath = &$wgStylePath;
153 $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
154 $wgVariantArticlePath = false;
155 $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images"
156 $wgUploadDirectory = false; ///< defaults to "{$IP}/images"
157 $wgHashedUploadDirectory = true;
158 $wgLogo = false; ///< defaults to "{$wgStylePath}/common/images/wiki.png"
159 $wgFavicon = '/favicon.ico';
160 $wgAppleTouchIcon = false; ///< This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
161 $wgMathPath = false; ///< defaults to "{$wgUploadPath}/math"
162 $wgMathDirectory = false; ///< defaults to "{$wgUploadDirectory}/math"
163 $wgTmpDirectory = false; ///< defaults to "{$wgUploadDirectory}/tmp"
164 $wgUploadBaseUrl = "";
165 /**@}*/
166
167 /**
168 * Directory for caching data in the local filesystem. Should not be accessible
169 * from the web. Set this to false to not use any local caches.
170 *
171 * Note: if multiple wikis share the same localisation cache directory, they
172 * must all have the same set of extensions. You can set a directory just for
173 * the localisation cache using $wgLocalisationCacheConf['storeDirectory'].
174 */
175 $wgCacheDirectory = false;
176
177 /**
178 * Default value for chmoding of new directories.
179 */
180 $wgDirectoryMode = 0777;
181
182 /**
183 * New file storage paths; currently used only for deleted files.
184 * Set it like this:
185 *
186 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
187 *
188 */
189 $wgFileStore = array();
190 $wgFileStore['deleted']['directory'] = false;///< Defaults to $wgUploadDirectory/deleted
191 $wgFileStore['deleted']['url'] = null; ///< Private
192 $wgFileStore['deleted']['hash'] = 3; ///< 3-level subdirectory split
193
194
195 /**
196 * used only for img_auth script - see [[Image Authorization]]
197 */
198 $wgImgAuthDetails = false; ///< defaults to false - only set to true if you use img_auth and want the user to see details on why access failed
199 $wgImgAuthPublicTest = true; ///< defaults to true - if public read is turned on, no need for img_auth, config error unless other access is used
200
201
202 /**@{
203 * File repository structures
204 *
205 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
206 * an array of such structures. Each repository structure is an associative
207 * array of properties configuring the repository.
208 *
209 * Properties required for all repos:
210 * class The class name for the repository. May come from the core or an extension.
211 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
212 *
213 * name A unique name for the repository.
214 *
215 * For most core repos:
216 * url Base public URL
217 * hashLevels The number of directory levels for hash-based division of files
218 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
219 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
220 * handler instead.
221 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
222 * start with a capital letter. The current implementation may give incorrect
223 * description page links when the local $wgCapitalLinks and initialCapital
224 * are mismatched.
225 * pathDisclosureProtection
226 * May be 'paranoid' to remove all parameters from error messages, 'none' to
227 * leave the paths in unchanged, or 'simple' to replace paths with
228 * placeholders. Default for LocalRepo is 'simple'.
229 * fileMode This allows wikis to set the file mode when uploading/moving files. Default
230 * is 0644.
231 * directory The local filesystem directory where public files are stored. Not used for
232 * some remote repos.
233 * thumbDir The base thumbnail directory. Defaults to <directory>/thumb.
234 * thumbUrl The base thumbnail URL. Defaults to <url>/thumb.
235 *
236 *
237 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
238 * for local repositories:
239 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
240 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
241 * http://en.wikipedia.org/w
242 *
243 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
244 * fetchDescription Fetch the text of the remote file description page. Equivalent to
245 * $wgFetchCommonsDescriptions.
246 *
247 * ForeignDBRepo:
248 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
249 * equivalent to the corresponding member of $wgDBservers
250 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
251 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
252 *
253 * ForeignAPIRepo:
254 * apibase Use for the foreign API's URL
255 * apiThumbCacheExpiry How long to locally cache thumbs for
256 *
257 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
258 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
259 */
260 $wgLocalFileRepo = false;
261 $wgForeignFileRepos = array();
262 /**@}*/
263
264 /**
265 * Allowed title characters -- regex character class
266 * Don't change this unless you know what you're doing
267 *
268 * Problematic punctuation:
269 * []{}|# Are needed for link syntax, never enable these
270 * <> Causes problems with HTML escaping, don't use
271 * % Enabled by default, minor problems with path to query rewrite rules, see below
272 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
273 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
274 *
275 * All three of these punctuation problems can be avoided by using an alias, instead of a
276 * rewrite rule of either variety.
277 *
278 * The problem with % is that when using a path to query rewrite rule, URLs are
279 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
280 * %253F, for example, becomes "?". Our code does not double-escape to compensate
281 * for this, indeed double escaping would break if the double-escaped title was
282 * passed in the query string rather than the path. This is a minor security issue
283 * because articles can be created such that they are hard to view or edit.
284 *
285 * In some rare cases you may wish to remove + for compatibility with old links.
286 *
287 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
288 * this breaks interlanguage links
289 */
290 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
291
292 /**
293 * The external URL protocols
294 */
295 $wgUrlProtocols = array(
296 'http://',
297 'https://',
298 'ftp://',
299 'irc://',
300 'gopher://',
301 'telnet://', // Well if we're going to support the above.. -ævar
302 'nntp://', // @bug 3808 RFC 1738
303 'worldwind://',
304 'mailto:',
305 'news:',
306 'svn://',
307 );
308
309 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
310 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
311 */
312 $wgAntivirus= NULL;
313
314 /** Configuration for different virus scanners. This an associative array of associative arrays:
315 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
316 * valid values for $wgAntivirus are the keys defined in this array.
317 *
318 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
319 *
320 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
321 * file to scan. If not present, the filename will be appended to the command. Note that this must be
322 * overwritten if the scanner is not in the system path; in that case, plase set
323 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
324 *
325 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
326 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
327 * the file if $wgAntivirusRequired is not set.
328 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
329 * which is probably imune to virusses. This causes the file to pass.
330 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
331 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
332 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
333 *
334 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
335 * output. The relevant part should be matched as group one (\1).
336 * If not defined or the pattern does not match, the full message is shown to the user.
337 */
338 $wgAntivirusSetup = array(
339
340 #setup for clamav
341 'clamav' => array (
342 'command' => "clamscan --no-summary ",
343
344 'codemap' => array (
345 "0" => AV_NO_VIRUS, # no virus
346 "1" => AV_VIRUS_FOUND, # virus found
347 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
348 "*" => AV_SCAN_FAILED, # else scan failed
349 ),
350
351 'messagepattern' => '/.*?:(.*)/sim',
352 ),
353
354 #setup for f-prot
355 'f-prot' => array (
356 'command' => "f-prot ",
357
358 'codemap' => array (
359 "0" => AV_NO_VIRUS, # no virus
360 "3" => AV_VIRUS_FOUND, # virus found
361 "6" => AV_VIRUS_FOUND, # virus found
362 "*" => AV_SCAN_FAILED, # else scan failed
363 ),
364
365 'messagepattern' => '/.*?Infection:(.*)$/m',
366 ),
367 );
368
369
370 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
371 $wgAntivirusRequired= true;
372
373 /** Determines if the mime type of uploaded files should be checked */
374 $wgVerifyMimeType= true;
375
376 /** Sets the mime type definition file to use by MimeMagic.php. */
377 $wgMimeTypeFile= "includes/mime.types";
378 #$wgMimeTypeFile= "/etc/mime.types";
379 #$wgMimeTypeFile= NULL; #use built-in defaults only.
380
381 /** Sets the mime type info file to use by MimeMagic.php. */
382 $wgMimeInfoFile= "includes/mime.info";
383 #$wgMimeInfoFile= NULL; #use built-in defaults only.
384
385 /** Switch for loading the FileInfo extension by PECL at runtime.
386 * This should be used only if fileinfo is installed as a shared object
387 * or a dynamic libary
388 */
389 $wgLoadFileinfoExtension= false;
390
391 /** Sets an external mime detector program. The command must print only
392 * the mime type to standard output.
393 * The name of the file to process will be appended to the command given here.
394 * If not set or NULL, mime_content_type will be used if available.
395 */
396 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
397 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
398
399 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
400 * things, because only a few types of images are needed and file extensions
401 * can be trusted.
402 */
403 $wgTrivialMimeDetection= false;
404
405 /**
406 * Additional XML types we can allow via mime-detection.
407 * array = ( 'rootElement' => 'associatedMimeType' )
408 */
409 $wgXMLMimeTypes = array(
410 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
411 'svg' => 'image/svg+xml',
412 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
413 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
414 'html' => 'text/html', // application/xhtml+xml?
415 );
416
417 /**
418 * To set 'pretty' URL paths for actions other than
419 * plain page views, add to this array. For instance:
420 * 'edit' => "$wgScriptPath/edit/$1"
421 *
422 * There must be an appropriate script or rewrite rule
423 * in place to handle these URLs.
424 */
425 $wgActionPaths = array();
426
427 /**
428 * If you operate multiple wikis, you can define a shared upload path here.
429 * Uploads to this wiki will NOT be put there - they will be put into
430 * $wgUploadDirectory.
431 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
432 * no file of the given name is found in the local repository (for [[Image:..]],
433 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
434 * directory.
435 *
436 * Note that these configuration settings can now be defined on a per-
437 * repository basis for an arbitrary number of file repositories, using the
438 * $wgForeignFileRepos variable.
439 */
440 $wgUseSharedUploads = false;
441 /** Full path on the web server where shared uploads can be found */
442 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
443 /** Fetch commons image description pages and display them on the local wiki? */
444 $wgFetchCommonsDescriptions = false;
445 /** Path on the file system where shared uploads can be found. */
446 $wgSharedUploadDirectory = "/var/www/wiki3/images";
447 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
448 $wgSharedUploadDBname = false;
449 /** Optional table prefix used in database. */
450 $wgSharedUploadDBprefix = '';
451 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
452 $wgCacheSharedUploads = true;
453 /**
454 * Allow for upload to be copied from an URL. Requires Special:Upload?source=web
455 * timeout for Copy Uploads is set by wgAsyncHTTPTimeout & wgSyncHTTPTimeout
456 */
457 $wgAllowCopyUploads = false;
458
459 /**
460 * Max size for uploads, in bytes. Currently only works for uploads from URL
461 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
462 * normal uploads is currently to edit php.ini.
463 */
464 $wgMaxUploadSize = 1024*1024*100; # 100MB
465
466
467 /**
468 * Enable firefogg support
469 * add support for in-browser transcoding to ogg theora
470 * add support for chunk uploads for large image files
471 * add support for client side hash checks
472 *
473 * (requires the js2 code for the interface)
474 */
475 $wgEnableFirefogg = true;
476
477 /**
478 * Point the upload navigation link to an external URL
479 * Useful if you want to use a shared repository by default
480 * without disabling local uploads (use $wgEnableUploads = false for that)
481 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
482 */
483 $wgUploadNavigationUrl = false;
484
485 /**
486 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
487 * generating them on render and outputting a static URL. This is necessary if some of your
488 * apache servers don't have read/write access to the thumbnail path.
489 *
490 * Example:
491 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
492 */
493 $wgThumbnailScriptPath = false;
494 $wgSharedThumbnailScriptPath = false;
495
496 /**
497 * Set the following to false especially if you have a set of files that need to
498 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
499 * directory layout.
500 */
501 $wgHashedSharedUploadDirectory = true;
502
503 /**
504 * Base URL for a repository wiki. Leave this blank if uploads are just stored
505 * in a shared directory and not meant to be accessible through a separate wiki.
506 * Otherwise the image description pages on the local wiki will link to the
507 * image description page on this wiki.
508 *
509 * Please specify the namespace, as in the example below.
510 */
511 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
512
513 #
514 # Email settings
515 #
516
517 /**
518 * Site admin email address
519 * Default to wikiadmin@SERVER_NAME
520 */
521 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
522
523 /**
524 * Password reminder email address
525 * The address we should use as sender when a user is requesting his password
526 * Default to apache@SERVER_NAME
527 */
528 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
529
530 /**
531 * dummy address which should be accepted during mail send action
532 * It might be necessay to adapt the address or to set it equal
533 * to the $wgEmergencyContact address
534 */
535 #$wgNoReplyAddress = $wgEmergencyContact;
536 $wgNoReplyAddress = 'reply@not.possible';
537
538 /**
539 * Set to true to enable the e-mail basic features:
540 * Password reminders, etc. If sending e-mail on your
541 * server doesn't work, you might want to disable this.
542 */
543 $wgEnableEmail = true;
544
545 /**
546 * Set to true to enable user-to-user e-mail.
547 * This can potentially be abused, as it's hard to track.
548 */
549 $wgEnableUserEmail = true;
550
551 /**
552 * Set to true to put the sending user's email in a Reply-To header
553 * instead of From. ($wgEmergencyContact will be used as From.)
554 *
555 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
556 * which can cause problems with SPF validation and leak recipient addressses
557 * when bounces are sent to the sender.
558 */
559 $wgUserEmailUseReplyTo = false;
560
561 /**
562 * Minimum time, in hours, which must elapse between password reminder
563 * emails for a given account. This is to prevent abuse by mail flooding.
564 */
565 $wgPasswordReminderResendTime = 24;
566
567 /**
568 * The time, in seconds, when an emailed temporary password expires.
569 */
570 $wgNewPasswordExpiry = 3600 * 24 * 7;
571
572 /**
573 * SMTP Mode
574 * For using a direct (authenticated) SMTP server connection.
575 * Default to false or fill an array :
576 * <code>
577 * "host" => 'SMTP domain',
578 * "IDHost" => 'domain for MessageID',
579 * "port" => "25",
580 * "auth" => true/false,
581 * "username" => user,
582 * "password" => password
583 * </code>
584 */
585 $wgSMTP = false;
586
587
588 /**@{
589 * Database settings
590 */
591 /** database host name or ip address */
592 $wgDBserver = 'localhost';
593 /** database port number (for PostgreSQL) */
594 $wgDBport = 5432;
595 /** name of the database */
596 $wgDBname = 'my_wiki';
597 /** */
598 $wgDBconnection = '';
599 /** Database username */
600 $wgDBuser = 'wikiuser';
601 /** Database user's password */
602 $wgDBpassword = '';
603 /** Database type */
604 $wgDBtype = 'mysql';
605
606 /** Search type
607 * Leave as null to select the default search engine for the
608 * selected database type (eg SearchMySQL), or set to a class
609 * name to override to a custom search engine.
610 */
611 $wgSearchType = null;
612
613 /** Table name prefix */
614 $wgDBprefix = '';
615 /** MySQL table options to use during installation or update */
616 $wgDBTableOptions = 'ENGINE=InnoDB';
617
618 /** Mediawiki schema */
619 $wgDBmwschema = 'mediawiki';
620 /** Tsearch2 schema */
621 $wgDBts2schema = 'public';
622
623 /** To override default SQLite data directory ($docroot/../data) */
624 $wgSQLiteDataDir = '';
625
626 /** Default directory mode for SQLite data directory on creation.
627 * Note that this is different from the default directory mode used
628 * elsewhere.
629 */
630 $wgSQLiteDataDirMode = 0700;
631
632 /**
633 * Make all database connections secretly go to localhost. Fool the load balancer
634 * thinking there is an arbitrarily large cluster of servers to connect to.
635 * Useful for debugging.
636 */
637 $wgAllDBsAreLocalhost = false;
638
639 /**@}*/
640
641
642 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
643 $wgCheckDBSchema = true;
644
645
646 /**
647 * Shared database for multiple wikis. Commonly used for storing a user table
648 * for single sign-on. The server for this database must be the same as for the
649 * main database.
650 * For backwards compatibility the shared prefix is set to the same as the local
651 * prefix, and the user table is listed in the default list of shared tables.
652 *
653 * $wgSharedTables may be customized with a list of tables to share in the shared
654 * datbase. However it is advised to limit what tables you do share as many of
655 * MediaWiki's tables may have side effects if you try to share them.
656 * EXPERIMENTAL
657 */
658 $wgSharedDB = null;
659 $wgSharedPrefix = false; # Defaults to $wgDBprefix
660 $wgSharedTables = array( 'user' );
661
662 /**
663 * Database load balancer
664 * This is a two-dimensional array, an array of server info structures
665 * Fields are:
666 * host: Host name
667 * dbname: Default database name
668 * user: DB user
669 * password: DB password
670 * type: "mysql" or "postgres"
671 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
672 * groupLoads: array of load ratios, the key is the query group name. A query may belong
673 * to several groups, the most specific group defined here is used.
674 *
675 * flags: bit field
676 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
677 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
678 * DBO_TRX -- wrap entire request in a transaction
679 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
680 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
681 *
682 * max lag: (optional) Maximum replication lag before a slave will taken out of rotation
683 * max threads: (optional) Maximum number of running threads
684 *
685 * These and any other user-defined properties will be assigned to the mLBInfo member
686 * variable of the Database object.
687 *
688 * Leave at false to use the single-server variables above. If you set this
689 * variable, the single-server variables will generally be ignored (except
690 * perhaps in some command-line scripts).
691 *
692 * The first server listed in this array (with key 0) will be the master. The
693 * rest of the servers will be slaves. To prevent writes to your slaves due to
694 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
695 * slaves in my.cnf. You can set read_only mode at runtime using:
696 *
697 * SET @@read_only=1;
698 *
699 * Since the effect of writing to a slave is so damaging and difficult to clean
700 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
701 * our masters, and then set read_only=0 on masters at runtime.
702 */
703 $wgDBservers = false;
704
705 /**
706 * Load balancer factory configuration
707 * To set up a multi-master wiki farm, set the class here to something that
708 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
709 * The class identified here is responsible for reading $wgDBservers,
710 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
711 *
712 * The LBFactory_Multi class is provided for this purpose, please see
713 * includes/db/LBFactory_Multi.php for configuration information.
714 */
715 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
716
717 /** How long to wait for a slave to catch up to the master */
718 $wgMasterWaitTimeout = 10;
719
720 /** File to log database errors to */
721 $wgDBerrorLog = false;
722
723 /** When to give an error message */
724 $wgDBClusterTimeout = 10;
725
726 /**
727 * Scale load balancer polling time so that under overload conditions, the database server
728 * receives a SHOW STATUS query at an average interval of this many microseconds
729 */
730 $wgDBAvgStatusPoll = 2000;
731
732 /** Set to true if using InnoDB tables */
733 $wgDBtransactions = false;
734 /** Set to true for compatibility with extensions that might be checking.
735 * MySQL 3.23.x is no longer supported. */
736 $wgDBmysql4 = true;
737
738 /**
739 * Set to true to engage MySQL 4.1/5.0 charset-related features;
740 * for now will just cause sending of 'SET NAMES=utf8' on connect.
741 *
742 * WARNING: THIS IS EXPERIMENTAL!
743 *
744 * May break if you're not using the table defs from mysql5/tables.sql.
745 * May break if you're upgrading an existing wiki if set differently.
746 * Broken symptoms likely to include incorrect behavior with page titles,
747 * usernames, comments etc containing non-ASCII characters.
748 * Might also cause failures on the object cache and other things.
749 *
750 * Even correct usage may cause failures with Unicode supplementary
751 * characters (those not in the Basic Multilingual Plane) unless MySQL
752 * has enhanced their Unicode support.
753 */
754 $wgDBmysql5 = false;
755
756 /**
757 * Other wikis on this site, can be administered from a single developer
758 * account.
759 * Array numeric key => database name
760 */
761 $wgLocalDatabases = array();
762
763 /** @{
764 * Object cache settings
765 * See Defines.php for types
766 */
767 $wgMainCacheType = CACHE_NONE;
768 $wgMessageCacheType = CACHE_ANYTHING;
769 $wgParserCacheType = CACHE_ANYTHING;
770 /**@}*/
771
772 $wgParserCacheExpireTime = 86400;
773
774 $wgSessionsInMemcached = false;
775
776 /** This is used for setting php's session.save_handler. In practice, you will
777 * almost never need to change this ever. Other options might be 'user' or
778 * 'session_mysql.' Setting to null skips setting this entirely (which might be
779 * useful if you're doing cross-application sessions, see bug 11381) */
780 $wgSessionHandler = 'files';
781
782 /**@{
783 * Memcached-specific settings
784 * See docs/memcached.txt
785 */
786 $wgUseMemCached = false;
787 $wgMemCachedDebug = false; ///< Will be set to false in Setup.php, if the server isn't working
788 $wgMemCachedServers = array( '127.0.0.1:11000' );
789 $wgMemCachedPersistent = false;
790 /**@}*/
791
792 /**
793 * Set this to true to make a local copy of the message cache, for use in
794 * addition to memcached. The files will be put in $wgCacheDirectory.
795 */
796 $wgUseLocalMessageCache = false;
797
798 /**
799 * Defines format of local cache
800 * true - Serialized object
801 * false - PHP source file (Warning - security risk)
802 */
803 $wgLocalMessageCacheSerialized = true;
804
805 /**
806 * Localisation cache configuration. Associative array with keys:
807 * class: The class to use. May be overridden by extensions.
808 *
809 * store: The location to store cache data. May be 'files', 'db' or
810 * 'detect'. If set to "files", data will be in CDB files. If set
811 * to "db", data will be stored to the database. If set to
812 * "detect", files will be used if $wgCacheDirectory is set,
813 * otherwise the database will be used.
814 *
815 * storeClass: The class name for the underlying storage. If set to a class
816 * name, it overrides the "store" setting.
817 *
818 * storeDirectory: If the store class puts its data in files, this is the
819 * directory it will use. If this is false, $wgCacheDirectory
820 * will be used.
821 *
822 * manualRecache: Set this to true to disable cache updates on web requests.
823 * Use maintenance/rebuildLocalisationCache.php instead.
824 */
825 $wgLocalisationCacheConf = array(
826 'class' => 'LocalisationCache',
827 'store' => 'detect',
828 'storeClass' => false,
829 'storeDirectory' => false,
830 'manualRecache' => false,
831 );
832
833 # Language settings
834 #
835 /** Site language code, should be one of ./languages/Language(.*).php */
836 $wgLanguageCode = 'en';
837
838 /**
839 * Some languages need different word forms, usually for different cases.
840 * Used in Language::convertGrammar().
841 */
842 $wgGrammarForms = array();
843 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
844
845 /** Treat language links as magic connectors, not inline links */
846 $wgInterwikiMagic = true;
847
848 /** Hide interlanguage links from the sidebar */
849 $wgHideInterlanguageLinks = false;
850
851 /** List of language names or overrides for default names in Names.php */
852 $wgExtraLanguageNames = array();
853
854 /** We speak UTF-8 all the time now, unless some oddities happen */
855 $wgInputEncoding = 'UTF-8';
856 $wgOutputEncoding = 'UTF-8';
857 $wgEditEncoding = '';
858
859 /**
860 * Locale for LC_CTYPE, to work around http://bugs.php.net/bug.php?id=45132
861 * For Unix-like operating systems, set this to to a locale that has a UTF-8
862 * character set. Only the character set is relevant.
863 */
864 $wgShellLocale = 'en_US.utf8';
865
866 /**
867 * Set this to eg 'ISO-8859-1' to perform character set
868 * conversion when loading old revisions not marked with
869 * "utf-8" flag. Use this when converting wiki to UTF-8
870 * without the burdensome mass conversion of old text data.
871 *
872 * NOTE! This DOES NOT touch any fields other than old_text.
873 * Titles, comments, user names, etc still must be converted
874 * en masse in the database before continuing as a UTF-8 wiki.
875 */
876 $wgLegacyEncoding = false;
877
878 /**
879 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
880 * create stub reference rows in the text table instead of copying
881 * the full text of all current entries from 'cur' to 'text'.
882 *
883 * This will speed up the conversion step for large sites, but
884 * requires that the cur table be kept around for those revisions
885 * to remain viewable.
886 *
887 * maintenance/migrateCurStubs.php can be used to complete the
888 * migration in the background once the wiki is back online.
889 *
890 * This option affects the updaters *only*. Any present cur stub
891 * revisions will be readable at runtime regardless of this setting.
892 */
893 $wgLegacySchemaConversion = false;
894
895 $wgMimeType = 'text/html';
896 $wgJsMimeType = 'text/javascript';
897 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
898 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
899 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
900
901 /**
902 * Should we output an HTML 5 doctype? This mode is still experimental, but
903 * all indications are that it should be usable, so it's enabled by default.
904 * If all goes well, it will be removed and become always true before the 1.16
905 * release.
906 */
907 $wgHtml5 = true;
908
909 /**
910 * Should we try to make our HTML output well-formed XML? If set to false,
911 * output will be a few bytes shorter, and the HTML will arguably be more
912 * readable. If set to true, life will be much easier for the authors of
913 * screen-scraping bots, and the HTML will arguably be more readable.
914 *
915 * Setting this to false may omit quotation marks on some attributes, omit
916 * slashes from some self-closing tags, omit some ending tags, etc., where
917 * permitted by HTML 5. Setting it to true will not guarantee that all pages
918 * will be well-formed, although non-well-formed pages should be rare and it's
919 * a bug if you find one. Conversely, setting it to false doesn't mean that
920 * all XML-y constructs will be omitted, just that they might be.
921 *
922 * Because of compatibility with screen-scraping bots, and because it's
923 * controversial, this is currently left to true by default.
924 */
925 $wgWellFormedXml = true;
926
927 /**
928 * Permit other namespaces in addition to the w3.org default.
929 * Use the prefix for the key and the namespace for the value. For
930 * example:
931 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
932 * Normally we wouldn't have to define this in the root <html>
933 * element, but IE needs it there in some circumstances.
934 */
935 $wgXhtmlNamespaces = array();
936
937 /** Enable to allow rewriting dates in page text.
938 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
939 $wgUseDynamicDates = false;
940 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
941 * the interface is set to English
942 */
943 $wgAmericanDates = false;
944 /**
945 * For Hindi and Arabic use local numerals instead of Western style (0-9)
946 * numerals in interface.
947 */
948 $wgTranslateNumerals = true;
949
950 /**
951 * Translation using MediaWiki: namespace.
952 * Interface messages will be loaded from the database.
953 */
954 $wgUseDatabaseMessages = true;
955
956 /**
957 * Expiry time for the message cache key
958 */
959 $wgMsgCacheExpiry = 86400;
960
961 /**
962 * Maximum entry size in the message cache, in bytes
963 */
964 $wgMaxMsgCacheEntrySize = 10000;
965
966 /**
967 * If true, serialized versions of the messages arrays will be
968 * read from the 'serialized' subdirectory if they are present.
969 * Set to false to always use the Messages files, regardless of
970 * whether they are up to date or not.
971 */
972 $wgEnableSerializedMessages = true;
973
974 /**
975 * Set to false if you are thorough system admin who always remembers to keep
976 * serialized files up to date to save few mtime calls.
977 */
978 $wgCheckSerialized = true;
979
980 /** Whether to enable language variant conversion. */
981 $wgDisableLangConversion = false;
982
983 /** Whether to enable language variant conversion for links. */
984 $wgDisableTitleConversion = false;
985
986 /** Default variant code, if false, the default will be the language code */
987 $wgDefaultLanguageVariant = false;
988
989 /**
990 * Show a bar of language selection links in the user login and user
991 * registration forms; edit the "loginlanguagelinks" message to
992 * customise these
993 */
994 $wgLoginLanguageSelector = false;
995
996 /**
997 * Whether to use zhdaemon to perform Chinese text processing
998 * zhdaemon is under developement, so normally you don't want to
999 * use it unless for testing
1000 */
1001 $wgUseZhdaemon = false;
1002 $wgZhdaemonHost="localhost";
1003 $wgZhdaemonPort=2004;
1004
1005
1006 # Miscellaneous configuration settings
1007 #
1008
1009 $wgLocalInterwiki = 'w';
1010 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
1011
1012 /** Interwiki caching settings.
1013 $wgInterwikiCache specifies path to constant database file
1014 This cdb database is generated by dumpInterwiki from maintenance
1015 and has such key formats:
1016 dbname:key - a simple key (e.g. enwiki:meta)
1017 _sitename:key - site-scope key (e.g. wiktionary:meta)
1018 __global:key - global-scope key (e.g. __global:meta)
1019 __sites:dbname - site mapping (e.g. __sites:enwiki)
1020 Sites mapping just specifies site name, other keys provide
1021 "local url" data layout.
1022 $wgInterwikiScopes specify number of domains to check for messages:
1023 1 - Just wiki(db)-level
1024 2 - wiki and global levels
1025 3 - site levels
1026 $wgInterwikiFallbackSite - if unable to resolve from cache
1027 */
1028 $wgInterwikiCache = false;
1029 $wgInterwikiScopes = 3;
1030 $wgInterwikiFallbackSite = 'wiki';
1031
1032 /**
1033 * If local interwikis are set up which allow redirects,
1034 * set this regexp to restrict URLs which will be displayed
1035 * as 'redirected from' links.
1036 *
1037 * It might look something like this:
1038 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
1039 *
1040 * Leave at false to avoid displaying any incoming redirect markers.
1041 * This does not affect intra-wiki redirects, which don't change
1042 * the URL.
1043 */
1044 $wgRedirectSources = false;
1045
1046
1047 $wgShowIPinHeader = true; # For non-logged in users
1048 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
1049 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
1050 # Maximum number of bytes in username. You want to run the maintenance
1051 # script ./maintenancecheckUsernames.php once you have changed this value
1052 $wgMaxNameChars = 255;
1053
1054 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
1055
1056 /**
1057 * Maximum recursion depth for templates within templates.
1058 * The current parser adds two levels to the PHP call stack for each template,
1059 * and xdebug limits the call stack to 100 by default. So this should hopefully
1060 * stop the parser before it hits the xdebug limit.
1061 */
1062 $wgMaxTemplateDepth = 40;
1063 $wgMaxPPExpandDepth = 40;
1064
1065 /**
1066 * If true, removes (substitutes) templates in "~~~~" signatures.
1067 */
1068 $wgCleanSignatures = true;
1069
1070 $wgExtraSubtitle = '';
1071 $wgSiteSupportPage = ''; # A page where you users can receive donations
1072
1073 /**
1074 * Set this to a string to put the wiki into read-only mode. The text will be
1075 * used as an explanation to users.
1076 *
1077 * This prevents most write operations via the web interface. Cache updates may
1078 * still be possible. To prevent database writes completely, use the read_only
1079 * option in MySQL.
1080 */
1081 $wgReadOnly = null;
1082
1083 /***
1084 * If this lock file exists (size > 0), the wiki will be forced into read-only mode.
1085 * Its contents will be shown to users as part of the read-only warning
1086 * message.
1087 */
1088 $wgReadOnlyFile = false; ///< defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
1089
1090 /**
1091 * Filename for debug logging. See http://www.mediawiki.org/wiki/How_to_debug
1092 * The debug log file should be not be publicly accessible if it is used, as it
1093 * may contain private data.
1094 */
1095 $wgDebugLogFile = '';
1096
1097 /**
1098 * Prefix for debug log lines
1099 */
1100 $wgDebugLogPrefix = '';
1101
1102 /**
1103 * If true, instead of redirecting, show a page with a link to the redirect
1104 * destination. This allows for the inspection of PHP error messages, and easy
1105 * resubmission of form data. For developer use only.
1106 */
1107 $wgDebugRedirects = false;
1108
1109 /**
1110 * If true, log debugging data from action=raw.
1111 * This is normally false to avoid overlapping debug entries due to gen=css and
1112 * gen=js requests.
1113 */
1114 $wgDebugRawPage = false;
1115
1116 /**
1117 * Send debug data to an HTML comment in the output.
1118 *
1119 * This may occasionally be useful when supporting a non-technical end-user. It's
1120 * more secure than exposing the debug log file to the web, since the output only
1121 * contains private data for the current user. But it's not ideal for development
1122 * use since data is lost on fatal errors and redirects.
1123 */
1124 $wgDebugComments = false;
1125
1126 /** Does nothing. Obsolete? */
1127 $wgLogQueries = false;
1128
1129 /**
1130 * Write SQL queries to the debug log
1131 */
1132 $wgDebugDumpSql = false;
1133
1134 /**
1135 * Set to an array of log group keys to filenames.
1136 * If set, wfDebugLog() output for that group will go to that file instead
1137 * of the regular $wgDebugLogFile. Useful for enabling selective logging
1138 * in production.
1139 */
1140 $wgDebugLogGroups = array();
1141
1142 /**
1143 * Display debug data at the bottom of the main content area.
1144 *
1145 * Useful for developers and technical users trying to working on a closed wiki.
1146 */
1147 $wgShowDebug = false;
1148
1149 /**
1150 * Show the contents of $wgHooks in Special:Version
1151 */
1152 $wgSpecialVersionShowHooks = false;
1153
1154 /**
1155 * By default, only show the MediaWiki, PHP, Database versions.
1156 * Setting this to true will try and determine versions of all helper programs.
1157 */
1158 $wgSpecialVersionExtended = false;
1159
1160 /**
1161 * Whether to show "we're sorry, but there has been a database error" pages.
1162 * Displaying errors aids in debugging, but may display information useful
1163 * to an attacker.
1164 */
1165 $wgShowSQLErrors = false;
1166
1167 /**
1168 * If true, some error messages will be colorized when running scripts on the
1169 * command line; this can aid picking important things out when debugging.
1170 * Ignored when running on Windows or when output is redirected to a file.
1171 */
1172 $wgColorErrors = true;
1173
1174 /**
1175 * If set to true, uncaught exceptions will print a complete stack trace
1176 * to output. This should only be used for debugging, as it may reveal
1177 * private information in function parameters due to PHP's backtrace
1178 * formatting.
1179 */
1180 $wgShowExceptionDetails = false;
1181
1182 /**
1183 * If true, show a backtrace for database errors
1184 */
1185 $wgShowDBErrorBacktrace = false;
1186
1187 /**
1188 * Expose backend server host names through the API and various HTML comments
1189 */
1190 $wgShowHostnames = false;
1191
1192 /**
1193 * If set to true MediaWiki will throw notices for some possible error
1194 * conditions and for deprecated functions.
1195 */
1196 $wgDevelopmentWarnings = false;
1197
1198 /**
1199 * Use experimental, DMOZ-like category browser
1200 */
1201 $wgUseCategoryBrowser = false;
1202
1203 /**
1204 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
1205 * to speed up output of the same page viewed by another user with the
1206 * same options.
1207 *
1208 * This can provide a significant speedup for medium to large pages,
1209 * so you probably want to keep it on. Extensions that conflict with the
1210 * parser cache should disable the cache on a per-page basis instead.
1211 */
1212 $wgEnableParserCache = true;
1213
1214 /**
1215 * Append a configured value to the parser cache and the sitenotice key so
1216 * that they can be kept separate for some class of activity.
1217 */
1218 $wgRenderHashAppend = '';
1219
1220 /**
1221 * If on, the sidebar navigation links are cached for users with the
1222 * current language set. This can save a touch of load on a busy site
1223 * by shaving off extra message lookups.
1224 *
1225 * However it is also fragile: changing the site configuration, or
1226 * having a variable $wgArticlePath, can produce broken links that
1227 * don't update as expected.
1228 */
1229 $wgEnableSidebarCache = false;
1230
1231 /**
1232 * Expiry time for the sidebar cache, in seconds
1233 */
1234 $wgSidebarCacheExpiry = 86400;
1235
1236 /**
1237 * Under which condition should a page in the main namespace be counted
1238 * as a valid article? If $wgUseCommaCount is set to true, it will be
1239 * counted if it contains at least one comma. If it is set to false
1240 * (default), it will only be counted if it contains at least one [[wiki
1241 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
1242 *
1243 * Retroactively changing this variable will not affect
1244 * the existing count (cf. maintenance/recount.sql).
1245 */
1246 $wgUseCommaCount = false;
1247
1248 /**
1249 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
1250 * values are easier on the database. A value of 1 causes the counters to be
1251 * updated on every hit, any higher value n cause them to update *on average*
1252 * every n hits. Should be set to either 1 or something largish, eg 1000, for
1253 * maximum efficiency.
1254 */
1255 $wgHitcounterUpdateFreq = 1;
1256
1257 # Basic user rights and block settings
1258 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1259 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1260 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1261 $wgBlockAllowsUTEdit = false; # Default setting for option on block form to allow self talkpage editing whilst blocked
1262 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1263
1264 # Pages anonymous user may see as an array, e.g.:
1265 # array ( "Main Page", "Wikipedia:Help");
1266 # Special:Userlogin and Special:Resetpass are always whitelisted.
1267 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1268 # is false -- see below. Otherwise, ALL pages are accessible,
1269 # regardless of this setting.
1270 # Also note that this will only protect _pages in the wiki_.
1271 # Uploaded files will remain readable. Make your upload
1272 # directory name unguessable, or use .htaccess to protect it.
1273 $wgWhitelistRead = false;
1274
1275 /**
1276 * Should editors be required to have a validated e-mail
1277 * address before being allowed to edit?
1278 */
1279 $wgEmailConfirmToEdit=false;
1280
1281 /**
1282 * Permission keys given to users in each group.
1283 * All users are implicitly in the '*' group including anonymous visitors;
1284 * logged-in users are all implicitly in the 'user' group. These will be
1285 * combined with the permissions of all groups that a given user is listed
1286 * in in the user_groups table.
1287 *
1288 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1289 * doing! This will wipe all permissions, and may mean that your users are
1290 * unable to perform certain essential tasks or access new functionality
1291 * when new permissions are introduced and default grants established.
1292 *
1293 * Functionality to make pages inaccessible has not been extensively tested
1294 * for security. Use at your own risk!
1295 *
1296 * This replaces wgWhitelistAccount and wgWhitelistEdit
1297 */
1298 $wgGroupPermissions = array();
1299
1300 // Implicit group for all visitors
1301 $wgGroupPermissions['*']['createaccount'] = true;
1302 $wgGroupPermissions['*']['read'] = true;
1303 $wgGroupPermissions['*']['edit'] = true;
1304 $wgGroupPermissions['*']['createpage'] = true;
1305 $wgGroupPermissions['*']['createtalk'] = true;
1306 $wgGroupPermissions['*']['writeapi'] = true;
1307 //$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
1308
1309 // Implicit group for all logged-in accounts
1310 $wgGroupPermissions['user']['move'] = true;
1311 $wgGroupPermissions['user']['move-subpages'] = true;
1312 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
1313 //$wgGroupPermissions['user']['movefile'] = true; // Disabled for now due to possible bugs and security concerns
1314 $wgGroupPermissions['user']['read'] = true;
1315 $wgGroupPermissions['user']['edit'] = true;
1316 $wgGroupPermissions['user']['createpage'] = true;
1317 $wgGroupPermissions['user']['createtalk'] = true;
1318 $wgGroupPermissions['user']['writeapi'] = true;
1319 $wgGroupPermissions['user']['upload'] = true;
1320 $wgGroupPermissions['user']['reupload'] = true;
1321 $wgGroupPermissions['user']['reupload-shared'] = true;
1322 $wgGroupPermissions['user']['minoredit'] = true;
1323 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok"
1324
1325 // Implicit group for accounts that pass $wgAutoConfirmAge
1326 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1327
1328 // Users with bot privilege can have their edits hidden
1329 // from various log pages by default
1330 $wgGroupPermissions['bot']['bot'] = true;
1331 $wgGroupPermissions['bot']['autoconfirmed'] = true;
1332 $wgGroupPermissions['bot']['nominornewtalk'] = true;
1333 $wgGroupPermissions['bot']['autopatrol'] = true;
1334 $wgGroupPermissions['bot']['suppressredirect'] = true;
1335 $wgGroupPermissions['bot']['apihighlimits'] = true;
1336 $wgGroupPermissions['bot']['writeapi'] = true;
1337 #$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled
1338
1339 // Most extra permission abilities go to this group
1340 $wgGroupPermissions['sysop']['block'] = true;
1341 $wgGroupPermissions['sysop']['createaccount'] = true;
1342 $wgGroupPermissions['sysop']['delete'] = true;
1343 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
1344 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1345 $wgGroupPermissions['sysop']['undelete'] = true;
1346 $wgGroupPermissions['sysop']['editinterface'] = true;
1347 $wgGroupPermissions['sysop']['editusercss'] = true;
1348 $wgGroupPermissions['sysop']['edituserjs'] = true;
1349 $wgGroupPermissions['sysop']['import'] = true;
1350 $wgGroupPermissions['sysop']['importupload'] = true;
1351 $wgGroupPermissions['sysop']['move'] = true;
1352 $wgGroupPermissions['sysop']['move-subpages'] = true;
1353 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
1354 $wgGroupPermissions['sysop']['patrol'] = true;
1355 $wgGroupPermissions['sysop']['autopatrol'] = true;
1356 $wgGroupPermissions['sysop']['protect'] = true;
1357 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1358 $wgGroupPermissions['sysop']['rollback'] = true;
1359 $wgGroupPermissions['sysop']['trackback'] = true;
1360 $wgGroupPermissions['sysop']['upload'] = true;
1361 $wgGroupPermissions['sysop']['reupload'] = true;
1362 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1363 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1364 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1365 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1366 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1367 $wgGroupPermissions['sysop']['blockemail'] = true;
1368 $wgGroupPermissions['sysop']['markbotedits'] = true;
1369 $wgGroupPermissions['sysop']['apihighlimits'] = true;
1370 $wgGroupPermissions['sysop']['browsearchive'] = true;
1371 $wgGroupPermissions['sysop']['noratelimit'] = true;
1372 $wgGroupPermissions['sysop']['versiondetail'] = true;
1373 $wgGroupPermissions['sysop']['movefile'] = true;
1374 #$wgGroupPermissions['sysop']['mergehistory'] = true;
1375
1376 // Permission to change users' group assignments
1377 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1378 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
1379 // Permission to change users' groups assignments across wikis
1380 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
1381 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
1382 #$wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
1383
1384 #$wgGroupPermissions['sysop']['deleterevision'] = true;
1385 // To hide usernames from users and Sysops
1386 #$wgGroupPermissions['suppress']['hideuser'] = true;
1387 // To hide revisions/log items from users and Sysops
1388 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
1389 // For private suppression log access
1390 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
1391
1392 /**
1393 * The developer group is deprecated, but can be activated if need be
1394 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1395 * that a lock file be defined and creatable/removable by the web
1396 * server.
1397 */
1398 # $wgGroupPermissions['developer']['siteadmin'] = true;
1399
1400 /**
1401 * Permission keys revoked from users in each group.
1402 * This acts the same way as wgGroupPermissions above, except that
1403 * if the user is in a group here, the permission will be removed from them.
1404 *
1405 * Improperly setting this could mean that your users will be unable to perform
1406 * certain essential tasks, so use at your own risk!
1407 */
1408 $wgRevokePermissions = array();
1409
1410 /**
1411 * Implicit groups, aren't shown on Special:Listusers or somewhere else
1412 */
1413 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
1414
1415 /**
1416 * A map of group names that the user is in, to group names that those users
1417 * are allowed to add or revoke.
1418 *
1419 * Setting the list of groups to add or revoke to true is equivalent to "any group".
1420 *
1421 * For example, to allow sysops to add themselves to the "bot" group:
1422 *
1423 * $wgGroupsAddToSelf = array( 'sysop' => array( 'bot' ) );
1424 *
1425 * Implicit groups may be used for the source group, for instance:
1426 *
1427 * $wgGroupsRemoveFromSelf = array( '*' => true );
1428 *
1429 * This allows users in the '*' group (i.e. any user) to remove themselves from
1430 * any group that they happen to be in.
1431 *
1432 */
1433 $wgGroupsAddToSelf = array();
1434 $wgGroupsRemoveFromSelf = array();
1435
1436 /**
1437 * Set of available actions that can be restricted via action=protect
1438 * You probably shouldn't change this.
1439 * Translated through restriction-* messages.
1440 */
1441 $wgRestrictionTypes = array( 'edit', 'move' );
1442
1443 /**
1444 * Rights which can be required for each protection level (via action=protect)
1445 *
1446 * You can add a new protection level that requires a specific
1447 * permission by manipulating this array. The ordering of elements
1448 * dictates the order on the protection form's lists.
1449 *
1450 * '' will be ignored (i.e. unprotected)
1451 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1452 */
1453 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1454
1455 /**
1456 * Set the minimum permissions required to edit pages in each
1457 * namespace. If you list more than one permission, a user must
1458 * have all of them to edit pages in that namespace.
1459 *
1460 * Note: NS_MEDIAWIKI is implicitly restricted to editinterface.
1461 */
1462 $wgNamespaceProtection = array();
1463
1464 /**
1465 * Pages in namespaces in this array can not be used as templates.
1466 * Elements must be numeric namespace ids.
1467 * Among other things, this may be useful to enforce read-restrictions
1468 * which may otherwise be bypassed by using the template machanism.
1469 */
1470 $wgNonincludableNamespaces = array();
1471
1472 /**
1473 * Number of seconds an account is required to age before
1474 * it's given the implicit 'autoconfirm' group membership.
1475 * This can be used to limit privileges of new accounts.
1476 *
1477 * Accounts created by earlier versions of the software
1478 * may not have a recorded creation date, and will always
1479 * be considered to pass the age test.
1480 *
1481 * When left at 0, all registered accounts will pass.
1482 */
1483 $wgAutoConfirmAge = 0;
1484 //$wgAutoConfirmAge = 600; // ten minutes
1485 //$wgAutoConfirmAge = 3600*24; // one day
1486
1487 # Number of edits an account requires before it is autoconfirmed
1488 # Passing both this AND the time requirement is needed
1489 $wgAutoConfirmCount = 0;
1490 //$wgAutoConfirmCount = 50;
1491
1492 /**
1493 * Automatically add a usergroup to any user who matches certain conditions.
1494 * The format is
1495 * array( '&' or '|' or '^', cond1, cond2, ... )
1496 * where cond1, cond2, ... are themselves conditions; *OR*
1497 * APCOND_EMAILCONFIRMED, *OR*
1498 * array( APCOND_EMAILCONFIRMED ), *OR*
1499 * array( APCOND_EDITCOUNT, number of edits ), *OR*
1500 * array( APCOND_AGE, seconds since registration ), *OR*
1501 * array( APCOND_INGROUPS, group1, group2, ... ), *OR*
1502 * array( APCOND_ISIP, ip ), *OR*
1503 * array( APCOND_IPINRANGE, range ), *OR*
1504 * array( APCOND_AGE_FROM_EDIT, seconds since first edit ), *OR*
1505 * array( APCOND_BLOCKED ), *OR*
1506 * similar constructs defined by extensions.
1507 *
1508 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
1509 * user who has provided an e-mail address.
1510 */
1511 $wgAutopromote = array(
1512 'autoconfirmed' => array( '&',
1513 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
1514 array( APCOND_AGE, &$wgAutoConfirmAge ),
1515 ),
1516 );
1517
1518 /**
1519 * These settings can be used to give finer control over who can assign which
1520 * groups at Special:Userrights. Example configuration:
1521 *
1522 * // Bureaucrat can add any group
1523 * $wgAddGroups['bureaucrat'] = true;
1524 * // Bureaucrats can only remove bots and sysops
1525 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1526 * // Sysops can make bots
1527 * $wgAddGroups['sysop'] = array( 'bot' );
1528 * // Sysops can disable other sysops in an emergency, and disable bots
1529 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1530 */
1531 $wgAddGroups = array();
1532 $wgRemoveGroups = array();
1533
1534 /**
1535 * A list of available rights, in addition to the ones defined by the core.
1536 * For extensions only.
1537 */
1538 $wgAvailableRights = array();
1539
1540 /**
1541 * Optional to restrict deletion of pages with higher revision counts
1542 * to users with the 'bigdelete' permission. (Default given to sysops.)
1543 */
1544 $wgDeleteRevisionsLimit = 0;
1545
1546 # Proxy scanner settings
1547 #
1548
1549 /**
1550 * If you enable this, every editor's IP address will be scanned for open HTTP
1551 * proxies.
1552 *
1553 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1554 * ISP and ask for your server to be shut down.
1555 *
1556 * You have been warned.
1557 */
1558 $wgBlockOpenProxies = false;
1559 /** Port we want to scan for a proxy */
1560 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1561 /** Script used to scan */
1562 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1563 /** */
1564 $wgProxyMemcExpiry = 86400;
1565 /** This should always be customised in LocalSettings.php */
1566 $wgSecretKey = false;
1567 /** big list of banned IP addresses, in the keys not the values */
1568 $wgProxyList = array();
1569 /** deprecated */
1570 $wgProxyKey = false;
1571
1572 /** Number of accounts each IP address may create, 0 to disable.
1573 * Requires memcached */
1574 $wgAccountCreationThrottle = 0;
1575
1576 # Client-side caching:
1577
1578 /** Allow client-side caching of pages */
1579 $wgCachePages = true;
1580
1581 /**
1582 * Set this to current time to invalidate all prior cached pages. Affects both
1583 * client- and server-side caching.
1584 * You can get the current date on your server by using the command:
1585 * date +%Y%m%d%H%M%S
1586 */
1587 $wgCacheEpoch = '20030516000000';
1588
1589 /**
1590 * Bump this number when changing the global style sheets and JavaScript.
1591 * It should be appended in the query string of static CSS and JS includes,
1592 * to ensure that client-side caches do not keep obsolete copies of global
1593 * styles.
1594 */
1595 $wgStyleVersion = '239';
1596
1597
1598 # Server-side caching:
1599
1600 /**
1601 * This will cache static pages for non-logged-in users to reduce
1602 * database traffic on public sites.
1603 * Must set $wgShowIPinHeader = false
1604 */
1605 $wgUseFileCache = false;
1606
1607 /** Directory where the cached page will be saved */
1608 $wgFileCacheDirectory = false; ///< defaults to "$wgCacheDirectory/html";
1609
1610 /**
1611 * When using the file cache, we can store the cached HTML gzipped to save disk
1612 * space. Pages will then also be served compressed to clients that support it.
1613 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1614 * the default LocalSettings.php! If you enable this, remove that setting first.
1615 *
1616 * Requires zlib support enabled in PHP.
1617 */
1618 $wgUseGzip = false;
1619
1620 /** Whether MediaWiki should send an ETag header */
1621 $wgUseETag = false;
1622
1623 # Email notification settings
1624 #
1625
1626 /** For email notification on page changes */
1627 $wgPasswordSender = $wgEmergencyContact;
1628
1629 # true: from page editor if s/he opted-in
1630 # false: Enotif mails appear to come from $wgEmergencyContact
1631 $wgEnotifFromEditor = false;
1632
1633 // TODO move UPO to preferences probably ?
1634 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1635 # If set to false, the corresponding input form on the user preference page is suppressed
1636 # It call this to be a "user-preferences-option (UPO)"
1637 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1638 $wgEnotifWatchlist = false; # UPO
1639 $wgEnotifUserTalk = false; # UPO
1640 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1641 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1642 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1643
1644 # Send a generic mail instead of a personalised mail for each user. This
1645 # always uses UTC as the time zone, and doesn't include the username.
1646 #
1647 # For pages with many users watching, this can significantly reduce mail load.
1648 # Has no effect when using sendmail rather than SMTP;
1649
1650 $wgEnotifImpersonal = false;
1651
1652 # Maximum number of users to mail at once when using impersonal mail. Should
1653 # match the limit on your mail server.
1654 $wgEnotifMaxRecips = 500;
1655
1656 # Send mails via the job queue.
1657 $wgEnotifUseJobQ = false;
1658
1659 # Use real name instead of username in e-mail "from" field
1660 $wgEnotifUseRealName = false;
1661
1662 /**
1663 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1664 */
1665 $wgUsersNotifiedOnAllChanges = array();
1666
1667 /** Show watching users in recent changes, watchlist and page history views */
1668 $wgRCShowWatchingUsers = false; # UPO
1669 /** Show watching users in Page views */
1670 $wgPageShowWatchingUsers = false;
1671 /** Show the amount of changed characters in recent changes */
1672 $wgRCShowChangedSize = true;
1673
1674 /**
1675 * If the difference between the character counts of the text
1676 * before and after the edit is below that value, the value will be
1677 * highlighted on the RC page.
1678 */
1679 $wgRCChangedSizeThreshold = 500;
1680
1681 /**
1682 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1683 * view for watched pages with new changes */
1684 $wgShowUpdatedMarker = true;
1685
1686 /**
1687 * Default cookie expiration time. Setting to 0 makes all cookies session-only.
1688 */
1689 $wgCookieExpiration = 30*86400;
1690
1691 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1692 * problems when the user requests two pages within a short period of time. This
1693 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1694 * a grace period.
1695 */
1696 $wgClockSkewFudge = 5;
1697
1698 # Squid-related settings
1699 #
1700
1701 /** Enable/disable Squid */
1702 $wgUseSquid = false;
1703
1704 /** If you run Squid3 with ESI support, enable this (default:false): */
1705 $wgUseESI = false;
1706
1707 /** Send X-Vary-Options header for better caching (requires patched Squid) */
1708 $wgUseXVO = false;
1709
1710 /** Internal server name as known to Squid, if different */
1711 # $wgInternalServer = 'http://yourinternal.tld:8000';
1712 $wgInternalServer = $wgServer;
1713
1714 /**
1715 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1716 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1717 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1718 * days
1719 */
1720 $wgSquidMaxage = 18000;
1721
1722 /**
1723 * Default maximum age for raw CSS/JS accesses
1724 */
1725 $wgForcedRawSMaxage = 300;
1726
1727 /**
1728 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1729 *
1730 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1731 * headers sent/modified from these proxies when obtaining the remote IP address
1732 *
1733 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1734 */
1735 $wgSquidServers = array();
1736
1737 /**
1738 * As above, except these servers aren't purged on page changes; use to set a
1739 * list of trusted proxies, etc.
1740 */
1741 $wgSquidServersNoPurge = array();
1742
1743 /** Maximum number of titles to purge in any one client operation */
1744 $wgMaxSquidPurgeTitles = 400;
1745
1746 /** HTCP multicast purging */
1747 $wgHTCPPort = 4827;
1748 $wgHTCPMulticastTTL = 1;
1749 # $wgHTCPMulticastAddress = "224.0.0.85";
1750 $wgHTCPMulticastAddress = false;
1751
1752 /** Should forwarded Private IPs be accepted? */
1753 $wgUsePrivateIPs = false;
1754
1755 # Cookie settings:
1756 #
1757 /**
1758 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1759 * or ".any.subdomain.net"
1760 */
1761 $wgCookieDomain = '';
1762 $wgCookiePath = '/';
1763 $wgCookieSecure = ($wgProto == 'https');
1764 $wgDisableCookieCheck = false;
1765
1766 /**
1767 * Set $wgCookiePrefix to use a custom one. Setting to false sets the default of
1768 * using the database name.
1769 */
1770 $wgCookiePrefix = false;
1771
1772 /**
1773 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
1774 * in browsers that support this feature. This can mitigates some classes of
1775 * XSS attack.
1776 *
1777 * Only supported on PHP 5.2 or higher.
1778 */
1779 $wgCookieHttpOnly = version_compare("5.2", PHP_VERSION, "<");
1780
1781 /**
1782 * If the requesting browser matches a regex in this blacklist, we won't
1783 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
1784 */
1785 $wgHttpOnlyBlacklist = array(
1786 // Internet Explorer for Mac; sometimes the cookies work, sometimes
1787 // they don't. It's difficult to predict, as combinations of path
1788 // and expiration options affect its parsing.
1789 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
1790 );
1791
1792 /** A list of cookies that vary the cache (for use by extensions) */
1793 $wgCacheVaryCookies = array();
1794
1795 /** Override to customise the session name */
1796 $wgSessionName = false;
1797
1798 /** Whether to allow inline image pointing to other websites */
1799 $wgAllowExternalImages = false;
1800
1801 /** If the above is false, you can specify an exception here. Image URLs
1802 * that start with this string are then rendered, while all others are not.
1803 * You can use this to set up a trusted, simple repository of images.
1804 * You may also specify an array of strings to allow multiple sites
1805 *
1806 * Examples:
1807 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1808 * $wgAllowExternalImagesFrom = array( 'http://127.0.0.1/', 'http://example.com' );
1809 */
1810 $wgAllowExternalImagesFrom = '';
1811
1812 /** If $wgAllowExternalImages is false, you can allow an on-wiki
1813 * whitelist of regular expression fragments to match the image URL
1814 * against. If the image matches one of the regular expression fragments,
1815 * The image will be displayed.
1816 *
1817 * Set this to true to enable the on-wiki whitelist (MediaWiki:External image whitelist)
1818 * Or false to disable it
1819 */
1820 $wgEnableImageWhitelist = true;
1821
1822 /** Allows to move images and other media files */
1823 $wgAllowImageMoving = true;
1824
1825 /** Disable database-intensive features */
1826 $wgMiserMode = false;
1827 /** Disable all query pages if miser mode is on, not just some */
1828 $wgDisableQueryPages = false;
1829 /** Number of rows to cache in 'querycache' table when miser mode is on */
1830 $wgQueryCacheLimit = 1000;
1831 /** Number of links to a page required before it is deemed "wanted" */
1832 $wgWantedPagesThreshold = 1;
1833 /** Enable slow parser functions */
1834 $wgAllowSlowParserFunctions = false;
1835
1836 /**
1837 * Maps jobs to their handling classes; extensions
1838 * can add to this to provide custom jobs
1839 */
1840 $wgJobClasses = array(
1841 'refreshLinks' => 'RefreshLinksJob',
1842 'refreshLinks2' => 'RefreshLinksJob2',
1843 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1844 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1845 'sendMail' => 'EmaillingJob',
1846 'enotifNotify' => 'EnotifNotifyJob',
1847 'fixDoubleRedirect' => 'DoubleRedirectJob',
1848 );
1849
1850 /**
1851 * Additional functions to be performed with updateSpecialPages.
1852 * Expensive Querypages are already updated.
1853 */
1854 $wgSpecialPageCacheUpdates = array(
1855 'Statistics' => array('SiteStatsUpdate','cacheUpdate')
1856 );
1857
1858 /**
1859 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1860 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1861 * (ImageMagick) installed and available in the PATH.
1862 * Please see math/README for more information.
1863 */
1864 $wgUseTeX = false;
1865 /** Location of the texvc binary */
1866 $wgTexvc = './math/texvc';
1867
1868 #
1869 # Profiling / debugging
1870 #
1871 # You have to create a 'profiling' table in your database before using
1872 # profiling see maintenance/archives/patch-profiling.sql .
1873 #
1874 # To enable profiling, edit StartProfiler.php
1875
1876 /** Only record profiling info for pages that took longer than this */
1877 $wgProfileLimit = 0.0;
1878 /** Don't put non-profiling info into log file */
1879 $wgProfileOnly = false;
1880 /** Log sums from profiling into "profiling" table in db. */
1881 $wgProfileToDatabase = false;
1882 /** If true, print a raw call tree instead of per-function report */
1883 $wgProfileCallTree = false;
1884 /** Should application server host be put into profiling table */
1885 $wgProfilePerHost = false;
1886
1887 /** Settings for UDP profiler */
1888 $wgUDPProfilerHost = '127.0.0.1';
1889 $wgUDPProfilerPort = '3811';
1890
1891 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1892 $wgDebugProfiling = false;
1893 /** Output debug message on every wfProfileIn/wfProfileOut */
1894 $wgDebugFunctionEntry = 0;
1895 /** Lots of debugging output from SquidUpdate.php */
1896 $wgDebugSquid = false;
1897
1898 /*
1899 * Destination for wfIncrStats() data...
1900 * 'cache' to go into the system cache, if enabled (memcached)
1901 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
1902 * false to disable
1903 */
1904 $wgStatsMethod = 'cache';
1905
1906 /** Whereas to count the number of time an article is viewed.
1907 * Does not work if pages are cached (for example with squid).
1908 */
1909 $wgDisableCounters = false;
1910
1911 $wgDisableTextSearch = false;
1912 $wgDisableSearchContext = false;
1913
1914
1915 /**
1916 * Set to true to have nicer highligted text in search results,
1917 * by default off due to execution overhead
1918 */
1919 $wgAdvancedSearchHighlighting = false;
1920
1921 /**
1922 * Regexp to match word boundaries, defaults for non-CJK languages
1923 * should be empty for CJK since the words are not separate
1924 */
1925 $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
1926 : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround
1927
1928 /**
1929 * Set to true to have the default MySQL search engine count total
1930 * search matches to present in the Special:Search UI.
1931 *
1932 * This could however be slow on larger wikis, and is pretty flaky
1933 * with the current title vs content split. Recommend avoiding until
1934 * that's been worked out cleanly; but this may aid in testing the
1935 * search UI and API to confirm that the result count works.
1936 */
1937 $wgSearchMySQLTotalHits = false;
1938
1939 /**
1940 * Template for OpenSearch suggestions, defaults to API action=opensearch
1941 *
1942 * Sites with heavy load would tipically have these point to a custom
1943 * PHP wrapper to avoid firing up mediawiki for every keystroke
1944 *
1945 * Placeholders: {searchTerms}
1946 *
1947 */
1948 $wgOpenSearchTemplate = false;
1949
1950 /**
1951 * Enable suggestions while typing in search boxes
1952 * (results are passed around in OpenSearch format)
1953 */
1954 $wgEnableMWSuggest = false;
1955
1956 /**
1957 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
1958 *
1959 * Placeholders: {searchTerms}, {namespaces}, {dbname}
1960 *
1961 */
1962 $wgMWSuggestTemplate = false;
1963
1964 /**
1965 * If you've disabled search semi-permanently, this also disables updates to the
1966 * table. If you ever re-enable, be sure to rebuild the search table.
1967 */
1968 $wgDisableSearchUpdate = false;
1969 /** Uploads have to be specially set up to be secure */
1970 $wgEnableUploads = false;
1971 /**
1972 * Show EXIF data, on by default if available.
1973 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1974 *
1975 * NOTE FOR WINDOWS USERS:
1976 * To enable EXIF functions, add the folloing lines to the
1977 * "Windows extensions" section of php.ini:
1978 *
1979 * extension=extensions/php_mbstring.dll
1980 * extension=extensions/php_exif.dll
1981 */
1982 $wgShowEXIF = function_exists( 'exif_read_data' );
1983
1984 /**
1985 * Set to true to enable the upload _link_ while local uploads are disabled.
1986 * Assumes that the special page link will be bounced to another server where
1987 * uploads do work.
1988 */
1989 $wgRemoteUploads = false;
1990
1991 /**
1992 * Disable links to talk pages of anonymous users (IPs) in listings on special
1993 * pages like page history, Special:Recentchanges, etc.
1994 */
1995 $wgDisableAnonTalk = false;
1996 /**
1997 * Do DELETE/INSERT for link updates instead of incremental
1998 */
1999 $wgUseDumbLinkUpdate = false;
2000
2001 /**
2002 * Anti-lock flags - bitfield
2003 * ALF_PRELOAD_LINKS
2004 * Preload links during link update for save
2005 * ALF_PRELOAD_EXISTENCE
2006 * Preload cur_id during replaceLinkHolders
2007 * ALF_NO_LINK_LOCK
2008 * Don't use locking reads when updating the link table. This is
2009 * necessary for wikis with a high edit rate for performance
2010 * reasons, but may cause link table inconsistency
2011 * ALF_NO_BLOCK_LOCK
2012 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
2013 * wikis.
2014 */
2015 $wgAntiLockFlags = 0;
2016
2017 /**
2018 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
2019 * fall back to the old behaviour (no merging).
2020 */
2021 $wgDiff3 = '/usr/bin/diff3';
2022
2023 /**
2024 * Path to the GNU diff utility.
2025 */
2026 $wgDiff = '/usr/bin/diff';
2027
2028 /**
2029 * We can also compress text stored in the 'text' table. If this is set on, new
2030 * revisions will be compressed on page save if zlib support is available. Any
2031 * compressed revisions will be decompressed on load regardless of this setting
2032 * *but will not be readable at all* if zlib support is not available.
2033 */
2034 $wgCompressRevisions = false;
2035
2036 /**
2037 * This is the list of preferred extensions for uploading files. Uploading files
2038 * with extensions not in this list will trigger a warning.
2039 */
2040 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
2041
2042 /** Files with these extensions will never be allowed as uploads. */
2043 $wgFileBlacklist = array(
2044 # HTML may contain cookie-stealing JavaScript and web bugs
2045 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
2046 # PHP scripts may execute arbitrary code on the server
2047 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
2048 # Other types that may be interpreted by some servers
2049 'shtml', 'jhtml', 'pl', 'py', 'cgi',
2050 # May contain harmful executables for Windows victims
2051 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
2052
2053 /** Files with these mime types will never be allowed as uploads
2054 * if $wgVerifyMimeType is enabled.
2055 */
2056 $wgMimeTypeBlacklist= array(
2057 # HTML may contain cookie-stealing JavaScript and web bugs
2058 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
2059 # PHP scripts may execute arbitrary code on the server
2060 'application/x-php', 'text/x-php',
2061 # Other types that may be interpreted by some servers
2062 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
2063 # Client-side hazards on Internet Explorer
2064 'text/scriptlet', 'application/x-msdownload',
2065 # Windows metafile, client-side vulnerability on some systems
2066 'application/x-msmetafile',
2067 # A ZIP file may be a valid Java archive containing an applet which exploits the
2068 # same-origin policy to steal cookies
2069 'application/zip',
2070 );
2071
2072 /** This is a flag to determine whether or not to check file extensions on upload. */
2073 $wgCheckFileExtensions = true;
2074
2075 /**
2076 * If this is turned off, users may override the warning for files not covered
2077 * by $wgFileExtensions.
2078 */
2079 $wgStrictFileExtensions = true;
2080
2081 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
2082 $wgUploadSizeWarning = false;
2083
2084 /** For compatibility with old installations set to false */
2085 $wgPasswordSalt = true;
2086
2087 /** Which namespaces should support subpages?
2088 * See Language.php for a list of namespaces.
2089 */
2090 $wgNamespacesWithSubpages = array(
2091 NS_TALK => true,
2092 NS_USER => true,
2093 NS_USER_TALK => true,
2094 NS_PROJECT_TALK => true,
2095 NS_FILE_TALK => true,
2096 NS_MEDIAWIKI => true,
2097 NS_MEDIAWIKI_TALK => true,
2098 NS_TEMPLATE_TALK => true,
2099 NS_HELP_TALK => true,
2100 NS_CATEGORY_TALK => true
2101 );
2102
2103 $wgNamespacesToBeSearchedDefault = array(
2104 NS_MAIN => true,
2105 );
2106
2107 /**
2108 * Namespaces to be searched when user clicks the "Help" tab
2109 * on Special:Search
2110 *
2111 * Same format as $wgNamespacesToBeSearchedDefault
2112 */
2113 $wgNamespacesToBeSearchedHelp = array(
2114 NS_PROJECT => true,
2115 NS_HELP => true,
2116 );
2117
2118 /**
2119 * If set to true the 'searcheverything' preference will be effective only for logged-in users.
2120 * Useful for big wikis to maintain different search profiles for anonymous and logged-in users.
2121 *
2122 */
2123 $wgSearchEverythingOnlyLoggedIn = false;
2124
2125 /**
2126 * Site notice shown at the top of each page
2127 *
2128 * MediaWiki:Sitenotice page, which will override this. You can also
2129 * provide a separate message for logged-out users using the
2130 * MediaWiki:Anonnotice page.
2131 */
2132 $wgSiteNotice = '';
2133
2134 #
2135 # Images settings
2136 #
2137
2138 /**
2139 * Plugins for media file type handling.
2140 * Each entry in the array maps a MIME type to a class name
2141 */
2142 $wgMediaHandlers = array(
2143 'image/jpeg' => 'BitmapHandler',
2144 'image/png' => 'BitmapHandler',
2145 'image/gif' => 'GIFHandler',
2146 'image/tiff' => 'TiffHandler',
2147 'image/x-ms-bmp' => 'BmpHandler',
2148 'image/x-bmp' => 'BmpHandler',
2149 'image/svg+xml' => 'SvgHandler', // official
2150 'image/svg' => 'SvgHandler', // compat
2151 'image/vnd.djvu' => 'DjVuHandler', // official
2152 'image/x.djvu' => 'DjVuHandler', // compat
2153 'image/x-djvu' => 'DjVuHandler', // compat
2154 );
2155
2156
2157 /**
2158 * Resizing can be done using PHP's internal image libraries or using
2159 * ImageMagick or another third-party converter, e.g. GraphicMagick.
2160 * These support more file formats than PHP, which only supports PNG,
2161 * GIF, JPG, XBM and WBMP.
2162 *
2163 * Use Image Magick instead of PHP builtin functions.
2164 */
2165 $wgUseImageMagick = false;
2166 /** The convert command shipped with ImageMagick */
2167 $wgImageMagickConvertCommand = '/usr/bin/convert';
2168
2169 /** Sharpening parameter to ImageMagick */
2170 $wgSharpenParameter = '0x0.4';
2171
2172 /** Reduction in linear dimensions below which sharpening will be enabled */
2173 $wgSharpenReductionThreshold = 0.85;
2174
2175 /**
2176 * Temporary directory used for ImageMagick. The directory must exist. Leave
2177 * this set to false to let ImageMagick decide for itself.
2178 */
2179 $wgImageMagickTempDir = false;
2180
2181 /**
2182 * Use another resizing converter, e.g. GraphicMagick
2183 * %s will be replaced with the source path, %d with the destination
2184 * %w and %h will be replaced with the width and height
2185 *
2186 * An example is provided for GraphicMagick
2187 * Leave as false to skip this
2188 */
2189 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
2190 $wgCustomConvertCommand = false;
2191
2192 # Scalable Vector Graphics (SVG) may be uploaded as images.
2193 # Since SVG support is not yet standard in browsers, it is
2194 # necessary to rasterize SVGs to PNG as a fallback format.
2195 #
2196 # An external program is required to perform this conversion:
2197 $wgSVGConverters = array(
2198 'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output',
2199 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
2200 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
2201 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
2202 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
2203 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
2204 );
2205 /** Pick one of the above */
2206 $wgSVGConverter = 'ImageMagick';
2207 /** If not in the executable PATH, specify */
2208 $wgSVGConverterPath = '';
2209 /** Don't scale a SVG larger than this */
2210 $wgSVGMaxSize = 2048;
2211 /**
2212 * Don't thumbnail an image if it will use too much working memory
2213 * Default is 50 MB if decompressed to RGBA form, which corresponds to
2214 * 12.5 million pixels or 3500x3500
2215 */
2216 $wgMaxImageArea = 1.25e7;
2217 /**
2218 * Force thumbnailing of animated GIFs above this size to a single
2219 * frame instead of an animated thumbnail. ImageMagick seems to
2220 * get real unhappy and doesn't play well with resource limits. :P
2221 * Defaulting to 1 megapixel (1000x1000)
2222 */
2223 $wgMaxAnimatedGifArea = 1.0e6;
2224 /**
2225 * Browsers don't support TIFF inline generally...
2226 * For inline display, we need to convert to PNG or JPEG.
2227 * Note scaling should work with ImageMagick, but may not with GD scaling.
2228 * // PNG is lossless, but inefficient for photos
2229 * $wgTiffThumbnailType = array( 'png', 'image/png' );
2230 * // JPEG is good for photos, but has no transparency support. Bad for diagrams.
2231 * $wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );
2232 */
2233 $wgTiffThumbnailType = false;
2234
2235 /**
2236 * If rendered thumbnail files are older than this timestamp, they
2237 * will be rerendered on demand as if the file didn't already exist.
2238 * Update if there is some need to force thumbs and SVG rasterizations
2239 * to rerender, such as fixes to rendering bugs.
2240 */
2241 $wgThumbnailEpoch = '20030516000000';
2242
2243 /**
2244 * If set, inline scaled images will still produce <img> tags ready for
2245 * output instead of showing an error message.
2246 *
2247 * This may be useful if errors are transitory, especially if the site
2248 * is configured to automatically render thumbnails on request.
2249 *
2250 * On the other hand, it may obscure error conditions from debugging.
2251 * Enable the debug log or the 'thumbnail' log group to make sure errors
2252 * are logged to a file for review.
2253 */
2254 $wgIgnoreImageErrors = false;
2255
2256 /**
2257 * Allow thumbnail rendering on page view. If this is false, a valid
2258 * thumbnail URL is still output, but no file will be created at
2259 * the target location. This may save some time if you have a
2260 * thumb.php or 404 handler set up which is faster than the regular
2261 * webserver(s).
2262 */
2263 $wgGenerateThumbnailOnParse = true;
2264
2265 /**
2266 * Show thumbnails for old images on the image description page
2267 */
2268 $wgShowArchiveThumbnails = true;
2269
2270 /** Obsolete, always true, kept for compatibility with extensions */
2271 $wgUseImageResize = true;
2272
2273
2274 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
2275 if( !isset( $wgCommandLineMode ) ) {
2276 $wgCommandLineMode = false;
2277 }
2278
2279 /** For colorized maintenance script output, is your terminal background dark ? */
2280 $wgCommandLineDarkBg = false;
2281
2282 /**
2283 * Array for extensions to register their maintenance scripts with the
2284 * system. The key is the name of the class and the value is the full
2285 * path to the file
2286 */
2287 $wgMaintenanceScripts = array();
2288
2289 #
2290 # Recent changes settings
2291 #
2292
2293 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
2294 $wgPutIPinRC = true;
2295
2296 /**
2297 * Recentchanges items are periodically purged; entries older than this many
2298 * seconds will go.
2299 * Default: 13 weeks = about three months
2300 */
2301 $wgRCMaxAge = 13 * 7 * 24 * 3600;
2302
2303 /**
2304 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
2305 * Note that this is disabled by default because we sometimes do have RC data which is beyond the limit
2306 * for some reason, and some users may use the high numbers to display that data which is still there.
2307 */
2308 $wgRCFilterByAge = false;
2309
2310 /**
2311 * List of Days and Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
2312 */
2313 $wgRCLinkLimits = array( 50, 100, 250, 500 );
2314 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
2315
2316 /**
2317 * Send recent changes updates via UDP. The updates will be formatted for IRC.
2318 * Set this to the IP address of the receiver.
2319 */
2320 $wgRC2UDPAddress = false;
2321
2322 /**
2323 * Port number for RC updates
2324 */
2325 $wgRC2UDPPort = false;
2326
2327 /**
2328 * Prefix to prepend to each UDP packet.
2329 * This can be used to identify the wiki. A script is available called
2330 * mxircecho.py which listens on a UDP port, and uses a prefix ending in a
2331 * tab to identify the IRC channel to send the log line to.
2332 */
2333 $wgRC2UDPPrefix = '';
2334
2335 /**
2336 * If this is set to true, $wgLocalInterwiki will be prepended to links in the
2337 * IRC feed. If this is set to a string, that string will be used as the prefix.
2338 */
2339 $wgRC2UDPInterwikiPrefix = false;
2340
2341 /**
2342 * Set to true to omit "bot" edits (by users with the bot permission) from the
2343 * UDP feed.
2344 */
2345 $wgRC2UDPOmitBots = false;
2346
2347 /**
2348 * Enable user search in Special:Newpages
2349 * This is really a temporary hack around an index install bug on some Wikipedias.
2350 * Kill it once fixed.
2351 */
2352 $wgEnableNewpagesUserFilter = true;
2353
2354 /**
2355 * Whether to use metadata edition
2356 * This will put categories, language links and allowed templates in a separate text box
2357 * while editing pages
2358 * EXPERIMENTAL
2359 */
2360 $wgUseMetadataEdit = false;
2361 /** Full name (including namespace) of the page containing templates names that will be allowed as metadata */
2362 $wgMetadataWhitelist = '';
2363
2364 #
2365 # Copyright and credits settings
2366 #
2367
2368 /** RDF metadata toggles */
2369 $wgEnableDublinCoreRdf = false;
2370 $wgEnableCreativeCommonsRdf = false;
2371
2372 /** Override for copyright metadata.
2373 * TODO: these options need documentation
2374 */
2375 $wgRightsPage = NULL;
2376 $wgRightsUrl = NULL;
2377 $wgRightsText = NULL;
2378 $wgRightsIcon = NULL;
2379
2380 /** Set this to some HTML to override the rights icon with an arbitrary logo */
2381 $wgCopyrightIcon = NULL;
2382
2383 /** Set this to true if you want detailed copyright information forms on Upload. */
2384 $wgUseCopyrightUpload = false;
2385
2386 /** Set this to false if you want to disable checking that detailed copyright
2387 * information values are not empty. */
2388 $wgCheckCopyrightUpload = true;
2389
2390 /**
2391 * Set this to the number of authors that you want to be credited below an
2392 * article text. Set it to zero to hide the attribution block, and a negative
2393 * number (like -1) to show all authors. Note that this will require 2-3 extra
2394 * database hits, which can have a not insignificant impact on performance for
2395 * large wikis.
2396 */
2397 $wgMaxCredits = 0;
2398
2399 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
2400 * Otherwise, link to a separate credits page. */
2401 $wgShowCreditsIfMax = true;
2402
2403
2404
2405 /**
2406 * Set this to false to avoid forcing the first letter of links to capitals.
2407 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
2408 * appearing with a capital at the beginning of a sentence will *not* go to the
2409 * same place as links in the middle of a sentence using a lowercase initial.
2410 */
2411 $wgCapitalLinks = true;
2412
2413 /**
2414 * List of interwiki prefixes for wikis we'll accept as sources for
2415 * Special:Import (for sysops). Since complete page history can be imported,
2416 * these should be 'trusted'.
2417 *
2418 * If a user has the 'import' permission but not the 'importupload' permission,
2419 * they will only be able to run imports through this transwiki interface.
2420 */
2421 $wgImportSources = array();
2422
2423 /**
2424 * Optional default target namespace for interwiki imports.
2425 * Can use this to create an incoming "transwiki"-style queue.
2426 * Set to numeric key, not the name.
2427 *
2428 * Users may override this in the Special:Import dialog.
2429 */
2430 $wgImportTargetNamespace = null;
2431
2432 /**
2433 * If set to false, disables the full-history option on Special:Export.
2434 * This is currently poorly optimized for long edit histories, so is
2435 * disabled on Wikimedia's sites.
2436 */
2437 $wgExportAllowHistory = true;
2438
2439 /**
2440 * If set nonzero, Special:Export requests for history of pages with
2441 * more revisions than this will be rejected. On some big sites things
2442 * could get bogged down by very very long pages.
2443 */
2444 $wgExportMaxHistory = 0;
2445
2446 /**
2447 * Return distinct author list (when not returning full history)
2448 */
2449 $wgExportAllowListContributors = false ;
2450
2451 /**
2452 * If non-zero, Special:Export accepts a "pagelink-depth" parameter
2453 * up to this specified level, which will cause it to include all
2454 * pages linked to from the pages you specify. Since this number
2455 * can become *insanely large* and could easily break your wiki,
2456 * it's disabled by default for now.
2457 *
2458 * There's a HARD CODED limit of 5 levels of recursion to prevent a
2459 * crazy-big export from being done by someone setting the depth
2460 * number too high. In other words, last resort safety net.
2461 */
2462 $wgExportMaxLinkDepth = 0;
2463
2464 /**
2465 * Whether to allow the "export all pages in namespace" option
2466 */
2467 $wgExportFromNamespaces = false;
2468
2469 /**
2470 * Edits matching these regular expressions in body text
2471 * will be recognised as spam and rejected automatically.
2472 *
2473 * There's no administrator override on-wiki, so be careful what you set. :)
2474 * May be an array of regexes or a single string for backwards compatibility.
2475 *
2476 * See http://en.wikipedia.org/wiki/Regular_expression
2477 * Note that each regex needs a beginning/end delimiter, eg: # or /
2478 */
2479 $wgSpamRegex = array();
2480
2481 /** Same as the above except for edit summaries */
2482 $wgSummarySpamRegex = array();
2483
2484 /** Similarly you can get a function to do the job. The function will be given
2485 * the following args:
2486 * - a Title object for the article the edit is made on
2487 * - the text submitted in the textarea (wpTextbox1)
2488 * - the section number.
2489 * The return should be boolean indicating whether the edit matched some evilness:
2490 * - true : block it
2491 * - false : let it through
2492 *
2493 * For a complete example, have a look at the SpamBlacklist extension.
2494 */
2495 $wgFilterCallback = false;
2496
2497 /** Go button goes straight to the edit screen if the article doesn't exist. */
2498 $wgGoToEdit = false;
2499
2500 /** Allow raw, unchecked HTML in <html>...</html> sections.
2501 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
2502 * TO RESTRICT EDITING to only those that you trust
2503 */
2504 $wgRawHtml = false;
2505
2506 /**
2507 * $wgUseTidy: use tidy to make sure HTML output is sane.
2508 * Tidy is a free tool that fixes broken HTML.
2509 * See http://www.w3.org/People/Raggett/tidy/
2510 * $wgTidyBin should be set to the path of the binary and
2511 * $wgTidyConf to the path of the configuration file.
2512 * $wgTidyOpts can include any number of parameters.
2513 *
2514 * $wgTidyInternal controls the use of the PECL extension to use an in-
2515 * process tidy library instead of spawning a separate program.
2516 * Normally you shouldn't need to override the setting except for
2517 * debugging. To install, use 'pear install tidy' and add a line
2518 * 'extension=tidy.so' to php.ini.
2519 */
2520 $wgUseTidy = false;
2521 $wgAlwaysUseTidy = false;
2522 $wgTidyBin = 'tidy';
2523 $wgTidyConf = $IP.'/includes/tidy.conf';
2524 $wgTidyOpts = '';
2525 $wgTidyInternal = extension_loaded( 'tidy' );
2526
2527 /**
2528 * Put tidy warnings in HTML comments
2529 * Only works for internal tidy.
2530 */
2531 $wgDebugTidy = false;
2532
2533 /**
2534 * Validate the overall output using tidy and refuse
2535 * to display the page if it's not valid.
2536 */
2537 $wgValidateAllHtml = false;
2538
2539 /** See list of skins and their symbolic names in languages/Language.php */
2540 $wgDefaultSkin = 'monobook';
2541
2542 /**
2543 * Should we allow the user's to select their own skin that will override the default?
2544 * @deprecated in 1.16, use $wgHiddenPrefs[] = 'skin' to disable it
2545 */
2546 $wgAllowUserSkin = true;
2547
2548 /**
2549 * Optionally, we can specify a stylesheet to use for media="handheld".
2550 * This is recognized by some, but not all, handheld/mobile/PDA browsers.
2551 * If left empty, compliant handheld browsers won't pick up the skin
2552 * stylesheet, which is specified for 'screen' media.
2553 *
2554 * Can be a complete URL, base-relative path, or $wgStylePath-relative path.
2555 * Try 'chick/main.css' to apply the Chick styles to the MonoBook HTML.
2556 *
2557 * Will also be switched in when 'handheld=yes' is added to the URL, like
2558 * the 'printable=yes' mode for print media.
2559 */
2560 $wgHandheldStyle = false;
2561
2562 /**
2563 * If set, 'screen' and 'handheld' media specifiers for stylesheets are
2564 * transformed such that they apply to the iPhone/iPod Touch Mobile Safari,
2565 * which doesn't recognize 'handheld' but does support media queries on its
2566 * screen size.
2567 *
2568 * Consider only using this if you have a *really good* handheld stylesheet,
2569 * as iPhone users won't have any way to disable it and use the "grown-up"
2570 * styles instead.
2571 */
2572 $wgHandheldForIPhone = false;
2573
2574 /**
2575 * Settings added to this array will override the default globals for the user
2576 * preferences used by anonymous visitors and newly created accounts.
2577 * For instance, to disable section editing links:
2578 * $wgDefaultUserOptions ['editsection'] = 0;
2579 *
2580 */
2581 $wgDefaultUserOptions = array(
2582 'quickbar' => 1,
2583 'underline' => 2,
2584 'cols' => 80,
2585 'rows' => 25,
2586 'searchlimit' => 20,
2587 'contextlines' => 5,
2588 'contextchars' => 50,
2589 'disablesuggest' => 0,
2590 'skin' => false,
2591 'math' => 1,
2592 'usenewrc' => 0,
2593 'rcdays' => 7,
2594 'rclimit' => 50,
2595 'wllimit' => 250,
2596 'hideminor' => 0,
2597 'hidepatrolled' => 0,
2598 'newpageshidepatrolled' => 0,
2599 'highlightbroken' => 1,
2600 'stubthreshold' => 0,
2601 'previewontop' => 1,
2602 'previewonfirst' => 0,
2603 'editsection' => 1,
2604 'editsectiononrightclick' => 0,
2605 'editondblclick' => 0,
2606 'editwidth' => 0,
2607 'showtoc' => 1,
2608 'showtoolbar' => 1,
2609 'minordefault' => 0,
2610 'date' => 'default',
2611 'imagesize' => 2,
2612 'thumbsize' => 2,
2613 'rememberpassword' => 0,
2614 'nocache' => 0,
2615 'diffonly' => 0,
2616 'showhiddencats' => 0,
2617 'norollbackdiff' => 0,
2618 'enotifwatchlistpages' => 0,
2619 'enotifusertalkpages' => 1,
2620 'enotifminoredits' => 0,
2621 'enotifrevealaddr' => 0,
2622 'shownumberswatching' => 1,
2623 'fancysig' => 0,
2624 'externaleditor' => 0,
2625 'externaldiff' => 0,
2626 'forceeditsummary' => 0,
2627 'showjumplinks' => 1,
2628 'justify' => 0,
2629 'numberheadings' => 0,
2630 'uselivepreview' => 0,
2631 'watchlistdays' => 3.0,
2632 'extendwatchlist' => 0,
2633 'watchlisthideminor' => 0,
2634 'watchlisthidebots' => 0,
2635 'watchlisthideown' => 0,
2636 'watchlisthideanons' => 0,
2637 'watchlisthideliu' => 0,
2638 'watchlisthidepatrolled' => 0,
2639 'watchcreations' => 0,
2640 'watchdefault' => 0,
2641 'watchmoves' => 0,
2642 'watchdeletion' => 0,
2643 'noconvertlink' => 0,
2644 'gender' => 'unknown',
2645 'ccmeonemails' => 0,
2646 'disablemail' => 0,
2647 'editfont' => 'default',
2648 );
2649
2650 /**
2651 * Whether or not to allow and use real name fields.
2652 * @deprecated in 1.16, use $wgHiddenPrefs[] = 'realname' below to disable real
2653 * names
2654 */
2655 $wgAllowRealName = true;
2656
2657 /** An array of preferences to not show for the user */
2658 $wgHiddenPrefs = array();
2659
2660 /*****************************************************************************
2661 * Extensions
2662 */
2663
2664 /**
2665 * A list of callback functions which are called once MediaWiki is fully initialised
2666 */
2667 $wgExtensionFunctions = array();
2668
2669 /**
2670 * Extension functions for initialisation of skins. This is called somewhat earlier
2671 * than $wgExtensionFunctions.
2672 */
2673 $wgSkinExtensionFunctions = array();
2674
2675 /**
2676 * Extension messages files.
2677 *
2678 * Associative array mapping extension name to the filename where messages can be
2679 * found. The file should contain variable assignments. Any of the variables
2680 * present in languages/messages/MessagesEn.php may be defined, but $messages
2681 * is the most common.
2682 *
2683 * Variables defined in extensions will override conflicting variables defined
2684 * in the core.
2685 *
2686 * Example:
2687 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
2688 *
2689 */
2690 $wgExtensionMessagesFiles = array();
2691
2692 /**
2693 * Aliases for special pages provided by extensions.
2694 * @deprecated Use $specialPageAliases in a file referred to by $wgExtensionMessagesFiles
2695 */
2696 $wgExtensionAliasesFiles = array();
2697
2698 /**
2699 * Parser output hooks.
2700 * This is an associative array where the key is an extension-defined tag
2701 * (typically the extension name), and the value is a PHP callback.
2702 * These will be called as an OutputPageParserOutput hook, if the relevant
2703 * tag has been registered with the parser output object.
2704 *
2705 * Registration is done with $pout->addOutputHook( $tag, $data ).
2706 *
2707 * The callback has the form:
2708 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
2709 */
2710 $wgParserOutputHooks = array();
2711
2712 /**
2713 * List of valid skin names.
2714 * The key should be the name in all lower case, the value should be a display name.
2715 * The default skins will be added later, by Skin::getSkinNames(). Use
2716 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
2717 */
2718 $wgValidSkinNames = array();
2719
2720 /**
2721 * Special page list.
2722 * See the top of SpecialPage.php for documentation.
2723 */
2724 $wgSpecialPages = array();
2725
2726 /**
2727 * Array mapping class names to filenames, for autoloading.
2728 */
2729 $wgAutoloadClasses = array();
2730
2731
2732 /*
2733 * Array mapping javascript class to web path for autoloading js
2734 * this var is populated in AutoLoader.php
2735 */
2736 $wgJSAutoloadClasses = array();
2737
2738 /*
2739 * boolean; if the script loader should be used to group all javascript requests.
2740 * more about the script loader: http://www.mediawiki.org/wiki/ScriptLoader
2741 *
2742 * (its recommended you DO NOT enable the script loader without also enabling $wgUseFileCache
2743 * (or have mediaWiki behind a proxy) otherwise all new js requests will result in script server js processing.
2744 */
2745 $wgEnableScriptLoader = false;
2746
2747 /*
2748 * enable js2 Script System
2749 * if enabled we include jquery, mv_embed and js2 versions of editPage.js
2750 */
2751 $wgEnableJS2system = false;
2752
2753 /*
2754 * boolean; if relative file paths can be used (in addition to the autoload js classes listed in: $wgJSAutoloadClasses
2755 */
2756 $wgEnableScriptLoaderJsFile = false;
2757
2758 /*
2759 * boolean; if we should minify the output. (note if you send ?debug=true in the page request it will automatically not group and not minify)
2760 */
2761 $wgEnableScriptMinify = true;
2762
2763 /*
2764 * boolean; if we should enable javascript localization (it loads loadGM json call with mediaWiki msgs)
2765 */
2766 $wgEnableScriptLocalization = true;
2767
2768 /*
2769 * path for mwEmbed normally js2/mwEmbed/
2770 */
2771 $wgMwEmbedDirectory = "js2/mwEmbed/";
2772
2773 /*
2774 * wgDebugJavaScript used to turn on debuging for the javascript script-loader
2775 * & forces fresh copies of javascript
2776 */
2777
2778 $wgDebugJavaScript = false;
2779
2780
2781 /**
2782 * An array of extension types and inside that their names, versions, authors,
2783 * urls, descriptions and pointers to localized description msgs. Note that
2784 * the version, url, description and descriptionmsg key can be omitted.
2785 *
2786 * <code>
2787 * $wgExtensionCredits[$type][] = array(
2788 * 'name' => 'Example extension',
2789 * 'version' => 1.9,
2790 * 'path' => __FILE__,
2791 * 'author' => 'Foo Barstein',
2792 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2793 * 'description' => 'An example extension',
2794 * 'descriptionmsg' => 'exampleextension-desc',
2795 * );
2796 * </code>
2797 *
2798 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
2799 * Where 'descriptionmsg' can be an array with message key and parameters:
2800 * 'descriptionmsg' => array( 'exampleextension-desc', param1, param2, ... ),
2801 */
2802 $wgExtensionCredits = array();
2803 /*
2804 * end extensions
2805 ******************************************************************************/
2806
2807 /**
2808 * Allow user Javascript page?
2809 * This enables a lot of neat customizations, but may
2810 * increase security risk to users and server load.
2811 */
2812 $wgAllowUserJs = false;
2813
2814 /**
2815 * Allow user Cascading Style Sheets (CSS)?
2816 * This enables a lot of neat customizations, but may
2817 * increase security risk to users and server load.
2818 */
2819 $wgAllowUserCss = false;
2820
2821 /** Use the site's Javascript page? */
2822 $wgUseSiteJs = true;
2823
2824 /** Use the site's Cascading Style Sheets (CSS)? */
2825 $wgUseSiteCss = true;
2826
2827 /**
2828 * Filter for Special:Randompage. Part of a WHERE clause
2829 * @deprecated as of 1.16, use the SpecialRandomGetRandomTitle hook
2830 */
2831
2832 $wgExtraRandompageSQL = false;
2833
2834 /** Allow the "info" action, very inefficient at the moment */
2835 $wgAllowPageInfo = false;
2836
2837 /** Maximum indent level of toc. */
2838 $wgMaxTocLevel = 999;
2839
2840 /** Name of the external diff engine to use */
2841 $wgExternalDiffEngine = false;
2842
2843 /** Whether to use inline diff */
2844 $wgEnableHtmlDiff = false;
2845
2846 /** Use RC Patrolling to check for vandalism */
2847 $wgUseRCPatrol = true;
2848
2849 /** Use new page patrolling to check new pages on Special:Newpages */
2850 $wgUseNPPatrol = true;
2851
2852 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
2853 $wgFeed = true;
2854
2855 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2856 * eg Recentchanges, Newpages. */
2857 $wgFeedLimit = 50;
2858
2859 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2860 * A cached version will continue to be served out even if changes
2861 * are made, until this many seconds runs out since the last render.
2862 *
2863 * If set to 0, feed caching is disabled. Use this for debugging only;
2864 * feed generation can be pretty slow with diffs.
2865 */
2866 $wgFeedCacheTimeout = 60;
2867
2868 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2869 * pages larger than this size. */
2870 $wgFeedDiffCutoff = 32768;
2871
2872 /** Override the site's default RSS/ATOM feed for recentchanges that appears on
2873 * every page. Some sites might have a different feed they'd like to promote
2874 * instead of the RC feed (maybe like a "Recent New Articles" or "Breaking news" one).
2875 * Ex: $wgSiteFeed['format'] = "http://example.com/somefeed.xml"; Format can be one
2876 * of either 'rss' or 'atom'.
2877 */
2878 $wgOverrideSiteFeed = array();
2879
2880 /**
2881 * Additional namespaces. If the namespaces defined in Language.php and
2882 * Namespace.php are insufficient, you can create new ones here, for example,
2883 * to import Help files in other languages.
2884 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2885 * no longer be accessible. If you rename it, then you can access them through
2886 * the new namespace name.
2887 *
2888 * Custom namespaces should start at 100 to avoid conflicting with standard
2889 * namespaces, and should always follow the even/odd main/talk pattern.
2890 */
2891 #$wgExtraNamespaces =
2892 # array(100 => "Hilfe",
2893 # 101 => "Hilfe_Diskussion",
2894 # 102 => "Aide",
2895 # 103 => "Discussion_Aide"
2896 # );
2897 $wgExtraNamespaces = NULL;
2898
2899 /**
2900 * Namespace aliases
2901 * These are alternate names for the primary localised namespace names, which
2902 * are defined by $wgExtraNamespaces and the language file. If a page is
2903 * requested with such a prefix, the request will be redirected to the primary
2904 * name.
2905 *
2906 * Set this to a map from namespace names to IDs.
2907 * Example:
2908 * $wgNamespaceAliases = array(
2909 * 'Wikipedian' => NS_USER,
2910 * 'Help' => 100,
2911 * );
2912 */
2913 $wgNamespaceAliases = array();
2914
2915 /**
2916 * Limit images on image description pages to a user-selectable limit. In order
2917 * to reduce disk usage, limits can only be selected from a list.
2918 * The user preference is saved as an array offset in the database, by default
2919 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2920 * change it if you alter the array (see bug 8858).
2921 * This is the list of settings the user can choose from:
2922 */
2923 $wgImageLimits = array (
2924 array(320,240),
2925 array(640,480),
2926 array(800,600),
2927 array(1024,768),
2928 array(1280,1024),
2929 array(10000,10000) );
2930
2931 /**
2932 * Adjust thumbnails on image pages according to a user setting. In order to
2933 * reduce disk usage, the values can only be selected from a list. This is the
2934 * list of settings the user can choose from:
2935 */
2936 $wgThumbLimits = array(
2937 120,
2938 150,
2939 180,
2940 200,
2941 250,
2942 300
2943 );
2944
2945 /**
2946 * Adjust width of upright images when parameter 'upright' is used
2947 * This allows a nicer look for upright images without the need to fix the width
2948 * by hardcoded px in wiki sourcecode.
2949 */
2950 $wgThumbUpright = 0.75;
2951
2952 /**
2953 * On category pages, show thumbnail gallery for images belonging to that
2954 * category instead of listing them as articles.
2955 */
2956 $wgCategoryMagicGallery = true;
2957
2958 /**
2959 * Paging limit for categories
2960 */
2961 $wgCategoryPagingLimit = 200;
2962
2963 /**
2964 * Should the default category sortkey be the prefixed title?
2965 * Run maintenance/refreshLinks.php after changing this.
2966 */
2967 $wgCategoryPrefixedDefaultSortkey = true;
2968
2969 /**
2970 * Browser Blacklist for unicode non compliant browsers
2971 * Contains a list of regexps : "/regexp/" matching problematic browsers
2972 */
2973 $wgBrowserBlackList = array(
2974 /**
2975 * Netscape 2-4 detection
2976 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2977 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2978 * with a negative assertion. The [UIN] identifier specifies the level of security
2979 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2980 * The language string is unreliable, it is missing on NS4 Mac.
2981 *
2982 * Reference: http://www.psychedelix.com/agents/index.shtml
2983 */
2984 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2985 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2986 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2987
2988 /**
2989 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2990 *
2991 * Known useragents:
2992 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2993 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2994 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2995 * - [...]
2996 *
2997 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2998 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2999 */
3000 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
3001
3002 /**
3003 * Google wireless transcoder, seems to eat a lot of chars alive
3004 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
3005 */
3006 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
3007 );
3008
3009 /**
3010 * Fake out the timezone that the server thinks it's in. This will be used for
3011 * date display and not for what's stored in the DB. Leave to null to retain
3012 * your server's OS-based timezone value. This is the same as the timezone.
3013 *
3014 * This variable is currently used ONLY for signature formatting, not for
3015 * anything else.
3016 *
3017 * Timezones can be translated by editing MediaWiki messages of type
3018 * timezone-nameinlowercase like timezone-utc.
3019 */
3020 # $wgLocaltimezone = 'GMT';
3021 # $wgLocaltimezone = 'PST8PDT';
3022 # $wgLocaltimezone = 'Europe/Sweden';
3023 # $wgLocaltimezone = 'CET';
3024 $wgLocaltimezone = null;
3025
3026 /**
3027 * Set an offset from UTC in minutes to use for the default timezone setting
3028 * for anonymous users and new user accounts.
3029 *
3030 * This setting is used for most date/time displays in the software, and is
3031 * overrideable in user preferences. It is *not* used for signature timestamps.
3032 *
3033 * You can set it to match the configured server timezone like this:
3034 * $wgLocalTZoffset = date("Z") / 60;
3035 *
3036 * If your server is not configured for the timezone you want, you can set
3037 * this in conjunction with the signature timezone and override the TZ
3038 * environment variable like so:
3039 * $wgLocaltimezone="Europe/Berlin";
3040 * putenv("TZ=$wgLocaltimezone");
3041 * $wgLocalTZoffset = date("Z") / 60;
3042 *
3043 * Leave at NULL to show times in universal time (UTC/GMT).
3044 */
3045 $wgLocalTZoffset = null;
3046
3047
3048 /**
3049 * When translating messages with wfMsg(), it is not always clear what should
3050 * be considered UI messages and what should be content messages.
3051 *
3052 * For example, for the English Wikipedia, there should be only one 'mainpage',
3053 * so when getting the link for 'mainpage', we should treat it as site content
3054 * and call wfMsgForContent(), but for rendering the text of the link, we call
3055 * wfMsg(). The code behaves this way by default. However, sites like the
3056 * Wikimedia Commons do offer different versions of 'mainpage' and the like for
3057 * different languages. This array provides a way to override the default
3058 * behavior. For example, to allow language-specific main page and community
3059 * portal, set
3060 *
3061 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
3062 */
3063 $wgForceUIMsgAsContentMsg = array();
3064
3065
3066 /**
3067 * Authentication plugin.
3068 */
3069 $wgAuth = null;
3070
3071 /**
3072 * Global list of hooks.
3073 * Add a hook by doing:
3074 * $wgHooks['event_name'][] = $function;
3075 * or:
3076 * $wgHooks['event_name'][] = array($function, $data);
3077 * or:
3078 * $wgHooks['event_name'][] = array($object, 'method');
3079 */
3080 $wgHooks = array();
3081
3082 /**
3083 * The logging system has two levels: an event type, which describes the
3084 * general category and can be viewed as a named subset of all logs; and
3085 * an action, which is a specific kind of event that can exist in that
3086 * log type.
3087 */
3088 $wgLogTypes = array( '',
3089 'block',
3090 'protect',
3091 'rights',
3092 'delete',
3093 'upload',
3094 'move',
3095 'import',
3096 'patrol',
3097 'merge',
3098 'suppress',
3099 );
3100
3101 /**
3102 * This restricts log access to those who have a certain right
3103 * Users without this will not see it in the option menu and can not view it
3104 * Restricted logs are not added to recent changes
3105 * Logs should remain non-transcludable
3106 * Format: logtype => permissiontype
3107 */
3108 $wgLogRestrictions = array(
3109 'suppress' => 'suppressionlog'
3110 );
3111
3112 /**
3113 * Show/hide links on Special:Log will be shown for these log types.
3114 *
3115 * This is associative array of log type => boolean "hide by default"
3116 *
3117 * See $wgLogTypes for a list of available log types.
3118 *
3119 * For example:
3120 * $wgFilterLogTypes => array(
3121 * 'move' => true,
3122 * 'import' => false,
3123 * );
3124 *
3125 * Will display show/hide links for the move and import logs. Move logs will be
3126 * hidden by default unless the link is clicked. Import logs will be shown by
3127 * default, and hidden when the link is clicked.
3128 *
3129 * A message of the form log-show-hide-<type> should be added, and will be used
3130 * for the link text.
3131 */
3132 $wgFilterLogTypes = array(
3133 'patrol' => true
3134 );
3135
3136 /**
3137 * Lists the message key string for each log type. The localized messages
3138 * will be listed in the user interface.
3139 *
3140 * Extensions with custom log types may add to this array.
3141 */
3142 $wgLogNames = array(
3143 '' => 'all-logs-page',
3144 'block' => 'blocklogpage',
3145 'protect' => 'protectlogpage',
3146 'rights' => 'rightslog',
3147 'delete' => 'dellogpage',
3148 'upload' => 'uploadlogpage',
3149 'move' => 'movelogpage',
3150 'import' => 'importlogpage',
3151 'patrol' => 'patrol-log-page',
3152 'merge' => 'mergelog',
3153 'suppress' => 'suppressionlog',
3154 );
3155
3156 /**
3157 * Lists the message key string for descriptive text to be shown at the
3158 * top of each log type.
3159 *
3160 * Extensions with custom log types may add to this array.
3161 */
3162 $wgLogHeaders = array(
3163 '' => 'alllogstext',
3164 'block' => 'blocklogtext',
3165 'protect' => 'protectlogtext',
3166 'rights' => 'rightslogtext',
3167 'delete' => 'dellogpagetext',
3168 'upload' => 'uploadlogpagetext',
3169 'move' => 'movelogpagetext',
3170 'import' => 'importlogpagetext',
3171 'patrol' => 'patrol-log-header',
3172 'merge' => 'mergelogpagetext',
3173 'suppress' => 'suppressionlogtext',
3174 );
3175
3176 /**
3177 * Lists the message key string for formatting individual events of each
3178 * type and action when listed in the logs.
3179 *
3180 * Extensions with custom log types may add to this array.
3181 */
3182 $wgLogActions = array(
3183 'block/block' => 'blocklogentry',
3184 'block/unblock' => 'unblocklogentry',
3185 'block/reblock' => 'reblock-logentry',
3186 'protect/protect' => 'protectedarticle',
3187 'protect/modify' => 'modifiedarticleprotection',
3188 'protect/unprotect' => 'unprotectedarticle',
3189 'protect/move_prot' => 'movedarticleprotection',
3190 'rights/rights' => 'rightslogentry',
3191 'delete/delete' => 'deletedarticle',
3192 'delete/restore' => 'undeletedarticle',
3193 'delete/revision' => 'revdelete-logentry',
3194 'delete/event' => 'logdelete-logentry',
3195 'upload/upload' => 'uploadedimage',
3196 'upload/overwrite' => 'overwroteimage',
3197 'upload/revert' => 'uploadedimage',
3198 'move/move' => '1movedto2',
3199 'move/move_redir' => '1movedto2_redir',
3200 'import/upload' => 'import-logentry-upload',
3201 'import/interwiki' => 'import-logentry-interwiki',
3202 'merge/merge' => 'pagemerge-logentry',
3203 'suppress/revision' => 'revdelete-logentry',
3204 'suppress/file' => 'revdelete-logentry',
3205 'suppress/event' => 'logdelete-logentry',
3206 'suppress/delete' => 'suppressedarticle',
3207 'suppress/block' => 'blocklogentry',
3208 'suppress/reblock' => 'reblock-logentry',
3209 );
3210
3211 /**
3212 * The same as above, but here values are names of functions,
3213 * not messages
3214 */
3215 $wgLogActionsHandlers = array();
3216
3217 /**
3218 * Maintain a log of newusers at Log/newusers?
3219 */
3220 $wgNewUserLog = true;
3221
3222 /**
3223 * List of special pages, followed by what subtitle they should go under
3224 * at Special:SpecialPages
3225 */
3226 $wgSpecialPageGroups = array(
3227 'DoubleRedirects' => 'maintenance',
3228 'BrokenRedirects' => 'maintenance',
3229 'Lonelypages' => 'maintenance',
3230 'Uncategorizedpages' => 'maintenance',
3231 'Uncategorizedcategories' => 'maintenance',
3232 'Uncategorizedimages' => 'maintenance',
3233 'Uncategorizedtemplates' => 'maintenance',
3234 'Unusedcategories' => 'maintenance',
3235 'Unusedimages' => 'maintenance',
3236 'Protectedpages' => 'maintenance',
3237 'Protectedtitles' => 'maintenance',
3238 'Unusedtemplates' => 'maintenance',
3239 'Withoutinterwiki' => 'maintenance',
3240 'Longpages' => 'maintenance',
3241 'Shortpages' => 'maintenance',
3242 'Ancientpages' => 'maintenance',
3243 'Deadendpages' => 'maintenance',
3244 'Wantedpages' => 'maintenance',
3245 'Wantedcategories' => 'maintenance',
3246 'Wantedfiles' => 'maintenance',
3247 'Wantedtemplates' => 'maintenance',
3248 'Unwatchedpages' => 'maintenance',
3249 'Fewestrevisions' => 'maintenance',
3250
3251 'Userlogin' => 'login',
3252 'Userlogout' => 'login',
3253 'CreateAccount' => 'login',
3254
3255 'Recentchanges' => 'changes',
3256 'Recentchangeslinked' => 'changes',
3257 'Watchlist' => 'changes',
3258 'Newimages' => 'changes',
3259 'Newpages' => 'changes',
3260 'Log' => 'changes',
3261 'Tags' => 'changes',
3262
3263 'Upload' => 'media',
3264 'Listfiles' => 'media',
3265 'MIMEsearch' => 'media',
3266 'FileDuplicateSearch' => 'media',
3267 'Filepath' => 'media',
3268
3269 'Listusers' => 'users',
3270 'Activeusers' => 'users',
3271 'Listgrouprights' => 'users',
3272 'Ipblocklist' => 'users',
3273 'Contributions' => 'users',
3274 'Emailuser' => 'users',
3275 'Listadmins' => 'users',
3276 'Listbots' => 'users',
3277 'Userrights' => 'users',
3278 'Blockip' => 'users',
3279 'Preferences' => 'users',
3280 'Resetpass' => 'users',
3281 'DeletedContributions' => 'users',
3282
3283 'Mostlinked' => 'highuse',
3284 'Mostlinkedcategories' => 'highuse',
3285 'Mostlinkedtemplates' => 'highuse',
3286 'Mostcategories' => 'highuse',
3287 'Mostimages' => 'highuse',
3288 'Mostrevisions' => 'highuse',
3289
3290 'Allpages' => 'pages',
3291 'Prefixindex' => 'pages',
3292 'Listredirects' => 'pages',
3293 'Categories' => 'pages',
3294 'Disambiguations' => 'pages',
3295
3296 'Randompage' => 'redirects',
3297 'Randomredirect' => 'redirects',
3298 'Mypage' => 'redirects',
3299 'Mytalk' => 'redirects',
3300 'Mycontributions' => 'redirects',
3301 'Search' => 'redirects',
3302 'LinkSearch' => 'redirects',
3303
3304 'Movepage' => 'pagetools',
3305 'MergeHistory' => 'pagetools',
3306 'Revisiondelete' => 'pagetools',
3307 'Undelete' => 'pagetools',
3308 'Export' => 'pagetools',
3309 'Import' => 'pagetools',
3310 'Whatlinkshere' => 'pagetools',
3311
3312 'Statistics' => 'wiki',
3313 'Version' => 'wiki',
3314 'Lockdb' => 'wiki',
3315 'Unlockdb' => 'wiki',
3316 'Allmessages' => 'wiki',
3317 'Popularpages' => 'wiki',
3318
3319 'Specialpages' => 'other',
3320 'Blockme' => 'other',
3321 'Booksources' => 'other',
3322 );
3323
3324 /**
3325 * Experimental preview feature to fetch rendered text
3326 * over an XMLHttpRequest from JavaScript instead of
3327 * forcing a submit and reload of the whole page.
3328 * Leave disabled unless you're testing it.
3329 * Needs JS2 ($wgEnableJS2) to be activated.
3330 */
3331 $wgLivePreview = false;
3332
3333 /**
3334 * Disable the internal MySQL-based search, to allow it to be
3335 * implemented by an extension instead.
3336 */
3337 $wgDisableInternalSearch = false;
3338
3339 /**
3340 * Set this to a URL to forward search requests to some external location.
3341 * If the URL includes '$1', this will be replaced with the URL-encoded
3342 * search term.
3343 *
3344 * For example, to forward to Google you'd have something like:
3345 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
3346 * '&domains=http://example.com' .
3347 * '&sitesearch=http://example.com' .
3348 * '&ie=utf-8&oe=utf-8';
3349 */
3350 $wgSearchForwardUrl = null;
3351
3352 /**
3353 * Set a default target for external links, e.g. _blank to pop up a new window
3354 */
3355 $wgExternalLinkTarget = false;
3356
3357 /**
3358 * If true, external URL links in wiki text will be given the
3359 * rel="nofollow" attribute as a hint to search engines that
3360 * they should not be followed for ranking purposes as they
3361 * are user-supplied and thus subject to spamming.
3362 */
3363 $wgNoFollowLinks = true;
3364
3365 /**
3366 * Namespaces in which $wgNoFollowLinks doesn't apply.
3367 * See Language.php for a list of namespaces.
3368 */
3369 $wgNoFollowNsExceptions = array();
3370
3371 /**
3372 * If this is set to an array of domains, external links to these domain names
3373 * (or any subdomains) will not be set to rel="nofollow" regardless of the
3374 * value of $wgNoFollowLinks. For instance:
3375 *
3376 * $wgNoFollowDomainExceptions = array( 'en.wikipedia.org', 'wiktionary.org' );
3377 *
3378 * This would add rel="nofollow" to links to de.wikipedia.org, but not
3379 * en.wikipedia.org, wiktionary.org, en.wiktionary.org, us.en.wikipedia.org,
3380 * etc.
3381 */
3382 $wgNoFollowDomainExceptions = array();
3383
3384 /**
3385 * Default robot policy. The default policy is to encourage indexing and fol-
3386 * lowing of links. It may be overridden on a per-namespace and/or per-page
3387 * basis.
3388 */
3389 $wgDefaultRobotPolicy = 'index,follow';
3390
3391 /**
3392 * Robot policies per namespaces. The default policy is given above, the array
3393 * is made of namespace constants as defined in includes/Defines.php. You can-
3394 * not specify a different default policy for NS_SPECIAL: it is always noindex,
3395 * nofollow. This is because a number of special pages (e.g., ListPages) have
3396 * many permutations of options that display the same data under redundant
3397 * URLs, so search engine spiders risk getting lost in a maze of twisty special
3398 * pages, all alike, and never reaching your actual content.
3399 *
3400 * Example:
3401 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
3402 */
3403 $wgNamespaceRobotPolicies = array();
3404
3405 /**
3406 * Robot policies per article. These override the per-namespace robot policies.
3407 * Must be in the form of an array where the key part is a properly canonical-
3408 * ised text form title and the value is a robot policy.
3409 * Example:
3410 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex,follow',
3411 * 'User:Bob' => 'index,follow' );
3412 * Example that DOES NOT WORK because the names are not canonical text forms:
3413 * $wgArticleRobotPolicies = array(
3414 * # Underscore, not space!
3415 * 'Main_Page' => 'noindex,follow',
3416 * # "Project", not the actual project name!
3417 * 'Project:X' => 'index,follow',
3418 * # Needs to be "Abc", not "abc" (unless $wgCapitalLinks is false)!
3419 * 'abc' => 'noindex,nofollow'
3420 * );
3421 */
3422 $wgArticleRobotPolicies = array();
3423
3424 /**
3425 * An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words
3426 * will not function, so users can't decide whether pages in that namespace are
3427 * indexed by search engines. If set to null, default to $wgContentNamespaces.
3428 * Example:
3429 * $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );
3430 */
3431 $wgExemptFromUserRobotsControl = null;
3432
3433 /**
3434 * Specifies the minimal length of a user password. If set to 0, empty pass-
3435 * words are allowed.
3436 */
3437 $wgMinimalPasswordLength = 1;
3438
3439 /**
3440 * Activate external editor interface for files and pages
3441 * See http://meta.wikimedia.org/wiki/Help:External_editors
3442 */
3443 $wgUseExternalEditor = true;
3444
3445 /** Whether or not to sort special pages in Special:Specialpages */
3446
3447 $wgSortSpecialPages = true;
3448
3449 /**
3450 * Specify the name of a skin that should not be presented in the list of a-
3451 * vailable skins. Use for blacklisting a skin which you do not want to remove
3452 * from the .../skins/ directory
3453 */
3454 $wgSkipSkin = '';
3455 $wgSkipSkins = array(); # More of the same
3456
3457 /**
3458 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
3459 */
3460 $wgDisabledActions = array();
3461
3462 /**
3463 * Disable redirects to special pages and interwiki redirects, which use a 302
3464 * and have no "redirected from" link.
3465 */
3466 $wgDisableHardRedirects = false;
3467
3468 /**
3469 * Use http.dnsbl.sorbs.net to check for open proxies
3470 */
3471 $wgEnableSorbs = false;
3472 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
3473
3474 /**
3475 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite
3476 * what the other methods might say.
3477 */
3478 $wgProxyWhitelist = array();
3479
3480 /**
3481 * Simple rate limiter options to brake edit floods. Maximum number actions
3482 * allowed in the given number of seconds; after that the violating client re-
3483 * ceives HTTP 500 error pages until the period elapses.
3484 *
3485 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
3486 *
3487 * This option set is experimental and likely to change. Requires memcached.
3488 */
3489 $wgRateLimits = array(
3490 'edit' => array(
3491 'anon' => null, // for any and all anonymous edits (aggregate)
3492 'user' => null, // for each logged-in user
3493 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
3494 'ip' => null, // for each anon and recent account
3495 'subnet' => null, // ... with final octet removed
3496 ),
3497 'move' => array(
3498 'user' => null,
3499 'newbie' => null,
3500 'ip' => null,
3501 'subnet' => null,
3502 ),
3503 'mailpassword' => array(
3504 'anon' => NULL,
3505 ),
3506 'emailuser' => array(
3507 'user' => null,
3508 ),
3509 );
3510
3511 /**
3512 * Set to a filename to log rate limiter hits.
3513 */
3514 $wgRateLimitLog = null;
3515
3516 /**
3517 * Array of groups which should never trigger the rate limiter
3518 *
3519 * @deprecated as of 1.13.0, the preferred method is using
3520 * $wgGroupPermissions[]['noratelimit']. However, this will still
3521 * work if desired.
3522 *
3523 * $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
3524 */
3525 $wgRateLimitsExcludedGroups = array();
3526
3527 /**
3528 * On Special:Unusedimages, consider images "used", if they are put
3529 * into a category. Default (false) is not to count those as used.
3530 */
3531 $wgCountCategorizedImagesAsUsed = false;
3532
3533 /**
3534 * External stores allow including content
3535 * from non database sources following URL links
3536 *
3537 * Short names of ExternalStore classes may be specified in an array here:
3538 * $wgExternalStores = array("http","file","custom")...
3539 *
3540 * CAUTION: Access to database might lead to code execution
3541 */
3542 $wgExternalStores = false;
3543
3544 /**
3545 * An array of external mysql servers, e.g.
3546 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
3547 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
3548 */
3549 $wgExternalServers = array();
3550
3551 /**
3552 * The place to put new revisions, false to put them in the local text table.
3553 * Part of a URL, e.g. DB://cluster1
3554 *
3555 * Can be an array instead of a single string, to enable data distribution. Keys
3556 * must be consecutive integers, starting at zero. Example:
3557 *
3558 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
3559 *
3560 */
3561 $wgDefaultExternalStore = false;
3562
3563 /**
3564 * Revision text may be cached in $wgMemc to reduce load on external storage
3565 * servers and object extraction overhead for frequently-loaded revisions.
3566 *
3567 * Set to 0 to disable, or number of seconds before cache expiry.
3568 */
3569 $wgRevisionCacheExpiry = 0;
3570
3571 /**
3572 * list of trusted media-types and mime types.
3573 * Use the MEDIATYPE_xxx constants to represent media types.
3574 * This list is used by Image::isSafeFile
3575 *
3576 * Types not listed here will have a warning about unsafe content
3577 * displayed on the images description page. It would also be possible
3578 * to use this for further restrictions, like disabling direct
3579 * [[media:...]] links for non-trusted formats.
3580 */
3581 $wgTrustedMediaFormats= array(
3582 MEDIATYPE_BITMAP, //all bitmap formats
3583 MEDIATYPE_AUDIO, //all audio formats
3584 MEDIATYPE_VIDEO, //all plain video formats
3585 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
3586 "application/pdf", //PDF files
3587 #"application/x-shockwave-flash", //flash/shockwave movie
3588 );
3589
3590 /**
3591 * Allow special page inclusions such as {{Special:Allpages}}
3592 */
3593 $wgAllowSpecialInclusion = true;
3594
3595 /**
3596 * Timeout for HTTP requests done at script execution time
3597 * default is (default php.ini script time 30s - 5s for everything else)
3598 */
3599 $wgSyncHTTPTimeout = 25;
3600 /**
3601 * Timeout for asynchronous http request that run in a background php proccess
3602 * default set to 20 min
3603 */
3604 $wgAsyncHTTPTimeout = 60*20;
3605
3606 /*
3607 * if AsyncDownload is enabled (works on unix platforms)
3608 * fix for windows is pending.
3609 */
3610 $wgEnableAsyncDownload = false;
3611
3612 /**
3613 * Proxy to use for CURL requests.
3614 */
3615 $wgHTTPProxy = false;
3616
3617 /**
3618 * Enable interwiki transcluding. Only when iw_trans=1.
3619 */
3620 $wgEnableScaryTranscluding = false;
3621 /**
3622 * Expiry time for interwiki transclusion
3623 */
3624 $wgTranscludeCacheExpiry = 3600;
3625
3626 /**
3627 * Support blog-style "trackbacks" for articles. See
3628 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
3629 */
3630 $wgUseTrackbacks = false;
3631
3632 /**
3633 * Enable filtering of categories in Recentchanges
3634 */
3635 $wgAllowCategorizedRecentChanges = false ;
3636
3637 /**
3638 * Number of jobs to perform per request. May be less than one in which case
3639 * jobs are performed probabalistically. If this is zero, jobs will not be done
3640 * during ordinary apache requests. In this case, maintenance/runJobs.php should
3641 * be run periodically.
3642 */
3643 $wgJobRunRate = 1;
3644
3645 /**
3646 * Number of rows to update per job
3647 */
3648 $wgUpdateRowsPerJob = 500;
3649
3650 /**
3651 * Number of rows to update per query
3652 */
3653 $wgUpdateRowsPerQuery = 100;
3654
3655 /**
3656 * Enable AJAX framework
3657 */
3658 $wgUseAjax = true;
3659
3660 /**
3661 * List of Ajax-callable functions.
3662 * Extensions acting as Ajax callbacks must register here
3663 */
3664 $wgAjaxExportList = array( 'wfAjaxGetThumbnailUrl', 'wfAjaxGetFileUrl' );
3665
3666 /**
3667 * Enable watching/unwatching pages using AJAX.
3668 * Requires $wgUseAjax to be true too.
3669 * Causes wfAjaxWatch to be added to $wgAjaxExportList
3670 */
3671 $wgAjaxWatch = true;
3672
3673 /**
3674 * Enable AJAX check for file overwrite, pre-upload
3675 */
3676 $wgAjaxUploadDestCheck = true;
3677
3678 /**
3679 * Enable AJAX upload interface (need for large http uploads & to display progress on uploads for browsers that support it)
3680 */
3681 $wgAjaxUploadInterface = true;
3682
3683 /**
3684 * Enable previewing licences via AJAX
3685 */
3686 $wgAjaxLicensePreview = true;
3687
3688 /**
3689 * Allow DISPLAYTITLE to change title display
3690 */
3691 $wgAllowDisplayTitle = true;
3692
3693 /**
3694 * for consistency, restrict DISPLAYTITLE to titles that normalize to the same canonical DB key
3695 */
3696 $wgRestrictDisplayTitle = true;
3697
3698 /**
3699 * Array of usernames which may not be registered or logged in from
3700 * Maintenance scripts can still use these
3701 */
3702 $wgReservedUsernames = array(
3703 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3704 'Conversion script', // Used for the old Wikipedia software upgrade
3705 'Maintenance script', // Maintenance scripts which perform editing, image import script
3706 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3707 'msg:double-redirect-fixer', // Automatic double redirect fix
3708 );
3709
3710 /**
3711 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
3712 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
3713 * crap files as images. When this directive is on, <title> will be allowed in files with
3714 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
3715 * and doesn't send appropriate MIME types for SVG images.
3716 */
3717 $wgAllowTitlesInSVG = false;
3718
3719 /**
3720 * Array of namespaces which can be deemed to contain valid "content", as far
3721 * as the site statistics are concerned. Useful if additional namespaces also
3722 * contain "content" which should be considered when generating a count of the
3723 * number of articles in the wiki.
3724 */
3725 $wgContentNamespaces = array( NS_MAIN );
3726
3727 /**
3728 * Maximum amount of virtual memory available to shell processes under linux, in KB.
3729 */
3730 $wgMaxShellMemory = 102400;
3731
3732 /**
3733 * Maximum file size created by shell processes under linux, in KB
3734 * ImageMagick convert for example can be fairly hungry for scratch space
3735 */
3736 $wgMaxShellFileSize = 102400;
3737
3738 /**
3739 * Maximum CPU time in seconds for shell processes under linux
3740 */
3741 $wgMaxShellTime = 180;
3742
3743 /**
3744 * Executable Path of PHP cli client (php/php5) (should be setup on install)
3745 */
3746 $wgPhpCli = '/usr/bin/php';
3747
3748 /**
3749 * DJVU settings
3750 * Path of the djvudump executable
3751 * Enable this and $wgDjvuRenderer to enable djvu rendering
3752 */
3753 # $wgDjvuDump = 'djvudump';
3754 $wgDjvuDump = null;
3755
3756 /**
3757 * Path of the ddjvu DJVU renderer
3758 * Enable this and $wgDjvuDump to enable djvu rendering
3759 */
3760 # $wgDjvuRenderer = 'ddjvu';
3761 $wgDjvuRenderer = null;
3762
3763 /**
3764 * Path of the djvutxt DJVU text extraction utility
3765 * Enable this and $wgDjvuDump to enable text layer extraction from djvu files
3766 */
3767 # $wgDjvuTxt = 'djvutxt';
3768 $wgDjvuTxt = null;
3769
3770 /**
3771 * Path of the djvutoxml executable
3772 * This works like djvudump except much, much slower as of version 3.5.
3773 *
3774 * For now I recommend you use djvudump instead. The djvuxml output is
3775 * probably more stable, so we'll switch back to it as soon as they fix
3776 * the efficiency problem.
3777 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
3778 */
3779 # $wgDjvuToXML = 'djvutoxml';
3780 $wgDjvuToXML = null;
3781
3782
3783 /**
3784 * Shell command for the DJVU post processor
3785 * Default: pnmtopng, since ddjvu generates ppm output
3786 * Set this to false to output the ppm file directly.
3787 */
3788 $wgDjvuPostProcessor = 'pnmtojpeg';
3789 /**
3790 * File extension for the DJVU post processor output
3791 */
3792 $wgDjvuOutputExtension = 'jpg';
3793
3794 /**
3795 * Enable the MediaWiki API for convenient access to
3796 * machine-readable data via api.php
3797 *
3798 * See http://www.mediawiki.org/wiki/API
3799 */
3800 $wgEnableAPI = true;
3801
3802 /**
3803 * Allow the API to be used to perform write operations
3804 * (page edits, rollback, etc.) when an authorised user
3805 * accesses it
3806 */
3807 $wgEnableWriteAPI = true;
3808
3809 /**
3810 * API module extensions
3811 * Associative array mapping module name to class name.
3812 * Extension modules may override the core modules.
3813 */
3814 $wgAPIModules = array();
3815 $wgAPIMetaModules = array();
3816 $wgAPIPropModules = array();
3817 $wgAPIListModules = array();
3818
3819 /**
3820 * Maximum amount of rows to scan in a DB query in the API
3821 * The default value is generally fine
3822 */
3823 $wgAPIMaxDBRows = 5000;
3824
3825 /**
3826 * The maximum size (in bytes) of an API result.
3827 * Don't set this lower than $wgMaxArticleSize*1024
3828 */
3829 $wgAPIMaxResultSize = 8388608;
3830
3831 /**
3832 * The maximum number of uncached diffs that can be retrieved in one API
3833 * request. Set this to 0 to disable API diffs altogether
3834 */
3835 $wgAPIMaxUncachedDiffs = 1;
3836
3837 /**
3838 * Log file or URL (TCP or UDP) to log API requests to, or false to disable
3839 * API request logging
3840 */
3841 $wgAPIRequestLog = false;
3842
3843 /**
3844 * Parser test suite files to be run by parserTests.php when no specific
3845 * filename is passed to it.
3846 *
3847 * Extensions may add their own tests to this array, or site-local tests
3848 * may be added via LocalSettings.php
3849 *
3850 * Use full paths.
3851 */
3852 $wgParserTestFiles = array(
3853 "$IP/maintenance/parserTests.txt",
3854 );
3855
3856 /**
3857 * If configured, specifies target CodeReview installation to send test
3858 * result data from 'parserTests.php --upload'
3859 *
3860 * Something like this:
3861 * $wgParserTestRemote = array(
3862 * 'api-url' => 'http://www.mediawiki.org/w/api.php',
3863 * 'repo' => 'MediaWiki',
3864 * 'suite' => 'ParserTests',
3865 * 'path' => '/trunk/phase3', // not used client-side; for reference
3866 * 'secret' => 'qmoicj3mc4mcklmqw', // Shared secret used in HMAC validation
3867 * );
3868 */
3869 $wgParserTestRemote = false;
3870
3871 /**
3872 * Break out of framesets. This can be used to prevent external sites from
3873 * framing your site with ads.
3874 */
3875 $wgBreakFrames = false;
3876
3877 /**
3878 * Set this to an array of special page names to prevent
3879 * maintenance/updateSpecialPages.php from updating those pages.
3880 */
3881 $wgDisableQueryPageUpdate = false;
3882
3883 /**
3884 * Disable output compression (enabled by default if zlib is available)
3885 */
3886 $wgDisableOutputCompression = false;
3887
3888 /**
3889 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
3890 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
3891 * show a more obvious warning.
3892 */
3893 $wgSlaveLagWarning = 10;
3894 $wgSlaveLagCritical = 30;
3895
3896 /**
3897 * Parser configuration. Associative array with the following members:
3898 *
3899 * class The class name
3900 *
3901 * preprocessorClass The preprocessor class. Two classes are currently available:
3902 * Preprocessor_Hash, which uses plain PHP arrays for tempoarary
3903 * storage, and Preprocessor_DOM, which uses the DOM module for
3904 * temporary storage. Preprocessor_DOM generally uses less memory;
3905 * the speed of the two is roughly the same.
3906 *
3907 * If this parameter is not given, it uses Preprocessor_DOM if the
3908 * DOM module is available, otherwise it uses Preprocessor_Hash.
3909 *
3910 * The entire associative array will be passed through to the constructor as
3911 * the first parameter. Note that only Setup.php can use this variable --
3912 * the configuration will change at runtime via $wgParser member functions, so
3913 * the contents of this variable will be out-of-date. The variable can only be
3914 * changed during LocalSettings.php, in particular, it can't be changed during
3915 * an extension setup function.
3916 */
3917 $wgParserConf = array(
3918 'class' => 'Parser',
3919 #'preprocessorClass' => 'Preprocessor_Hash',
3920 );
3921
3922 /**
3923 * LinkHolderArray batch size
3924 * For debugging
3925 */
3926 $wgLinkHolderBatchSize = 1000;
3927
3928 /**
3929 * By default MediaWiki does not register links pointing to same server in externallinks dataset,
3930 * use this value to override:
3931 */
3932 $wgRegisterInternalExternals = false;
3933
3934 /**
3935 * Hooks that are used for outputting exceptions. Format is:
3936 * $wgExceptionHooks[] = $funcname
3937 * or:
3938 * $wgExceptionHooks[] = array( $class, $funcname )
3939 * Hooks should return strings or false
3940 */
3941 $wgExceptionHooks = array();
3942
3943 /**
3944 * Page property link table invalidation lists. When a page property
3945 * changes, this may require other link tables to be updated (eg
3946 * adding __HIDDENCAT__ means the hiddencat tracking category will
3947 * have been added, so the categorylinks table needs to be rebuilt).
3948 * This array can be added to by extensions.
3949 */
3950 $wgPagePropLinkInvalidations = array(
3951 'hiddencat' => 'categorylinks',
3952 );
3953
3954 /**
3955 * Maximum number of links to a redirect page listed on
3956 * Special:Whatlinkshere/RedirectDestination
3957 */
3958 $wgMaxRedirectLinksRetrieved = 500;
3959
3960 /**
3961 * Maximum number of calls per parse to expensive parser functions such as
3962 * PAGESINCATEGORY.
3963 */
3964 $wgExpensiveParserFunctionLimit = 100;
3965
3966 /**
3967 * Maximum number of pages to move at once when moving subpages with a page.
3968 */
3969 $wgMaximumMovedPages = 100;
3970
3971 /**
3972 * Fix double redirects after a page move.
3973 * Tends to conflict with page move vandalism, use only on a private wiki.
3974 */
3975 $wgFixDoubleRedirects = false;
3976
3977 /**
3978 * Max number of redirects to follow when resolving redirects.
3979 * 1 means only the first redirect is followed (default behavior).
3980 * 0 or less means no redirects are followed.
3981 */
3982 $wgMaxRedirects = 1;
3983
3984 /**
3985 * Array of invalid page redirect targets.
3986 * Attempting to create a redirect to any of the pages in this array
3987 * will make the redirect fail.
3988 * Userlogout is hard-coded, so it does not need to be listed here.
3989 * (bug 10569) Disallow Mypage and Mytalk as well.
3990 *
3991 * As of now, this only checks special pages. Redirects to pages in
3992 * other namespaces cannot be invalidated by this variable.
3993 */
3994 $wgInvalidRedirectTargets = array( 'Filepath', 'Mypage', 'Mytalk' );
3995
3996 /**
3997 * Array of namespaces to generate a sitemap for when the
3998 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
3999 * nerated for all namespaces.
4000 */
4001 $wgSitemapNamespaces = false;
4002
4003
4004 /**
4005 * If user doesn't specify any edit summary when making a an edit, MediaWiki
4006 * will try to automatically create one. This feature can be disabled by set-
4007 * ting this variable false.
4008 */
4009 $wgUseAutomaticEditSummaries = true;
4010
4011 /**
4012 * Limit password attempts to X attempts per Y seconds per IP per account.
4013 * Requires memcached.
4014 */
4015 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );
4016
4017 /**
4018 * Display user edit counts in various prominent places.
4019 */
4020 $wgEdititis = false;
4021
4022 /**
4023 * Enable the UniversalEditButton for browsers that support it
4024 * (currently only Firefox with an extension)
4025 * See http://universaleditbutton.org for more background information
4026 */
4027 $wgUniversalEditButton = true;
4028
4029 /**
4030 * Allow id's that don't conform to HTML4 backward compatibility requirements.
4031 * This is currently for testing; if all goes well, this option will be removed
4032 * and the functionality will be enabled universally.
4033 */
4034 $wgEnforceHtmlIds = true;
4035
4036 /**
4037 * Search form behavior
4038 * true = use Go & Search buttons
4039 * false = use Go button & Advanced search link
4040 */
4041 $wgUseTwoButtonsSearchForm = true;
4042
4043 /**
4044 * Search form behavior for Vector skin only
4045 * true = use an icon search button
4046 * false = use Go & Search buttons
4047 */
4048 $wgVectorUseSimpleSearch = false;
4049
4050 /**
4051 * Preprocessor caching threshold
4052 */
4053 $wgPreprocessorCacheThreshold = 1000;
4054
4055 /**
4056 * Allow filtering by change tag in recentchanges, history, etc
4057 * Has no effect if no tags are defined in valid_tag.
4058 */
4059 $wgUseTagFilter = true;
4060
4061 /**
4062 * Allow redirection to another page when a user logs in.
4063 * To enable, set to a string like 'Main Page'
4064 */
4065 $wgRedirectOnLogin = null;
4066
4067 /**
4068 * Characters to prevent during new account creations.
4069 * This is used in a regular expression character class during
4070 * registration (regex metacharacters like / are escaped).
4071 */
4072 $wgInvalidUsernameCharacters = '@';
4073
4074 /**
4075 * Character used as a delimiter when testing for interwiki userrights
4076 * (In Special:UserRights, it is possible to modify users on different
4077 * databases if the delimiter is used, e.g. Someuser@enwiki).
4078 *
4079 * It is recommended that you have this delimiter in
4080 * $wgInvalidUsernameCharacters above, or you will not be able to
4081 * modify the user rights of those users via Special:UserRights
4082 */
4083 $wgUserrightsInterwikiDelimiter = '@';
4084
4085 /**
4086 * Configuration for processing pool control, for use in high-traffic wikis.
4087 * An implementation is provided in the PoolCounter extension.
4088 *
4089 * This configuration array maps pool types to an associative array. The only
4090 * defined key in the associative array is "class", which gives the class name.
4091 * The remaining elements are passed through to the class as constructor
4092 * parameters. Example:
4093 *
4094 * $wgPoolCounterConf = array( 'Article::view' => array(
4095 * 'class' => 'PoolCounter_Client',
4096 * ... any extension-specific options...
4097 * );
4098 */
4099 $wgPoolCounterConf = null;
4100
4101 /**
4102 * Use some particular type of external authentication. The specific
4103 * authentication module you use will normally require some extra settings to
4104 * be specified.
4105 *
4106 * null indicates no external authentication is to be used. Otherwise,
4107 * "ExternalUser_$wgExternalAuthType" must be the name of a non-abstract class
4108 * that extends ExternalUser.
4109 *
4110 * Core authentication modules can be found in includes/extauth/.
4111 */
4112 $wgExternalAuthType = null;
4113
4114 /**
4115 * Configuration for the external authentication. This may include arbitrary
4116 * keys that depend on the authentication mechanism. For instance,
4117 * authentication against another web app might require that the database login
4118 * info be provided. Check the file where your auth mechanism is defined for
4119 * info on what to put here.
4120 */
4121 $wgExternalAuthConfig = array();
4122
4123 /**
4124 * When should we automatically create local accounts when external accounts
4125 * already exist, if using ExternalAuth? Can have three values: 'never',
4126 * 'login', 'view'. 'view' requires the external database to support cookies,
4127 * and implies 'login'.
4128 *
4129 * TODO: Implement 'view' (currently behaves like 'login').
4130 */
4131 $wgAutocreatePolicy = 'login';
4132
4133 /**
4134 * Policies for how each preference is allowed to be changed, in the presence
4135 * of external authentication. The keys are preference keys, e.g., 'password'
4136 * or 'emailaddress' (see Preferences.php et al.). The value can be one of the
4137 * following:
4138 *
4139 * - local: Allow changes to this pref through the wiki interface but only
4140 * apply them locally (default).
4141 * - semiglobal: Allow changes through the wiki interface and try to apply them
4142 * to the foreign database, but continue on anyway if that fails.
4143 * - global: Allow changes through the wiki interface, but only let them go
4144 * through if they successfully update the foreign database.
4145 * - message: Allow no local changes for linked accounts; replace the change
4146 * form with a message provided by the auth plugin, telling the user how to
4147 * change the setting externally (maybe providing a link, etc.). If the auth
4148 * plugin provides no message for this preference, hide it entirely.
4149 *
4150 * Accounts that are not linked to an external account are never affected by
4151 * this setting. You may want to look at $wgHiddenPrefs instead.
4152 * $wgHiddenPrefs supersedes this option.
4153 *
4154 * TODO: Implement message, global.
4155 */
4156 $wgAllowPrefChange = array();
4157
4158
4159 /**
4160 * Settings for incoming cross-site AJAX requests:
4161 * Newer browsers support cross-site AJAX when the target resource allows requests
4162 * from the origin domain by the Access-Control-Allow-Origin header.
4163 * This is currently only used by the API (requests to api.php)
4164 * $wgCrossSiteAJAXdomains can be set using a wildcard syntax:
4165 *
4166 * '*' matches any number of characters
4167 * '?' matches any 1 character
4168 *
4169 * Example:
4170 $wgCrossSiteAJAXdomains = array(
4171 'www.mediawiki.org',
4172 '*.wikipedia.org',
4173 '*.wikimedia.org',
4174 '*.wiktionary.org',
4175 );
4176 *
4177 */
4178 $wgCrossSiteAJAXdomains = array();
4179
4180 /**
4181 * Domains that should not be allowed to make AJAX requests,
4182 * even if they match one of the domains allowed by $wgCrossSiteAJAXdomains
4183 * Uses the same syntax as $wgCrossSiteAJAXdomains
4184 */
4185
4186 $wgCrossSiteAJAXdomainExceptions = array();
4187
4188 /**
4189 * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit if it's below this amount.
4190 */
4191 $wgMemoryLimit = "50M";