Added configuration global $wgDisableQueryPageUpdate to disable certain pages from...
[mediawiki.git] / includes / DefaultSettings.php
blob01acc5138cd68ce60060553b825b3032422d68ad
1 <?php
2 /**
4 * NEVER EDIT THIS FILE
7 * To customize your installation, edit "LocalSettings.php". If you make
8 * changes here, they will be lost on next upgrade of MediaWiki!
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.
15 * Documentation is in the source and on:
16 * http://www.mediawiki.org/wiki/Help:Configuration_settings
18 * @package MediaWiki
21 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
22 if( !defined( 'MEDIAWIKI' ) ) {
23 echo "This file is part of MediaWiki and is not a valid entry point\n";
24 die( 1 );
27 /**
28 * Create a site configuration object
29 * Not used for much in a default install
31 require_once( 'includes/SiteConfiguration.php' );
32 $wgConf = new SiteConfiguration;
34 /** MediaWiki version number */
35 $wgVersion = '1.9alpha';
37 /** Name of the site. It must be changed in LocalSettings.php */
38 $wgSitename = 'MediaWiki';
40 /**
41 * Name of the project namespace. If left set to false, $wgSitename will be
42 * used instead.
44 $wgMetaNamespace = false;
46 /**
47 * Name of the project talk namespace. If left set to false, a name derived
48 * from the name of the project namespace will be used.
50 $wgMetaNamespaceTalk = false;
53 /** URL of the server. It will be automatically built including https mode */
54 $wgServer = '';
56 if( isset( $_SERVER['SERVER_NAME'] ) ) {
57 $wgServerName = $_SERVER['SERVER_NAME'];
58 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
59 $wgServerName = $_SERVER['HOSTNAME'];
60 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
61 $wgServerName = $_SERVER['HTTP_HOST'];
62 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
63 $wgServerName = $_SERVER['SERVER_ADDR'];
64 } else {
65 $wgServerName = 'localhost';
68 # check if server use https:
69 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
71 $wgServer = $wgProto.'://' . $wgServerName;
72 # If the port is a non-standard one, add it to the URL
73 if( isset( $_SERVER['SERVER_PORT'] )
74 && !strpos( $wgServerName, ':' )
75 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
76 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
78 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
82 /**
83 * The path we should point to.
84 * It might be a virtual path in case with use apache mod_rewrite for example
86 $wgScriptPath = '/wiki';
88 /**
89 * Whether to support URLs like index.php/Page_title
90 * These often break when PHP is set up in CGI mode, so
91 * ignore PATH_INFO for CGI unless cgi.fix_pathinfo is
92 * set.
94 * Override this to false if $_SERVER['PATH_INFO']
95 * contains unexpectedly incorrect garbage.
97 * Note that having this incorrectly set to true can
98 * cause redirect loops when "pretty URLs" are used.
100 $wgUsePathInfo =
101 ( strpos( php_sapi_name(), 'cgi' ) === false ) ||
102 isset( $_SERVER['ORIG_PATH_INFO'] );
104 /**#@+
105 * Script users will request to get articles
106 * ATTN: Old installations used wiki.phtml and redirect.phtml -
107 * make sure that LocalSettings.php is correctly set!
108 * @deprecated
110 $wgScript = "{$wgScriptPath}/index.php";
111 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
112 /**#@-*/
115 /**#@+
116 * @global string
119 * style path as seen by users
121 $wgStylePath = "{$wgScriptPath}/skins";
123 * filesystem stylesheets directory
125 $wgStyleDirectory = "{$IP}/skins";
126 $wgStyleSheetPath = &$wgStylePath;
127 $wgArticlePath = "{$wgScript}?title=$1";
128 $wgVariantArticlePath = false;
129 $wgUploadPath = "{$wgScriptPath}/images";
130 $wgUploadDirectory = "{$IP}/images";
131 $wgHashedUploadDirectory = true;
132 $wgLogo = "{$wgUploadPath}/wiki.png";
133 $wgFavicon = '/favicon.ico';
134 $wgMathPath = "{$wgUploadPath}/math";
135 $wgMathDirectory = "{$wgUploadDirectory}/math";
136 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
137 $wgUploadBaseUrl = "";
138 /**#@-*/
142 * By default deleted files are simply discarded; to save them and
143 * make it possible to undelete images, create a directory which
144 * is writable to the web server but is not exposed to the internet.
146 * Set $wgSaveDeletedFiles to true and set up the save path in
147 * $wgFileStore['deleted']['directory'].
149 $wgSaveDeletedFiles = false;
152 * New file storage paths; currently used only for deleted files.
153 * Set it like this:
155 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
158 $wgFileStore = array();
159 $wgFileStore['deleted']['directory'] = null; // Don't forget to set this.
160 $wgFileStore['deleted']['url'] = null; // Private
161 $wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split
164 * Allowed title characters -- regex character class
165 * Don't change this unless you know what you're doing
167 * Problematic punctuation:
168 * []{}|# Are needed for link syntax, never enable these
169 * % Enabled by default, minor problems with path to query rewrite rules, see below
170 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
171 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
173 * All three of these punctuation problems can be avoided by using an alias, instead of a
174 * rewrite rule of either variety.
176 * The problem with % is that when using a path to query rewrite rule, URLs are
177 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
178 * %253F, for example, becomes "?". Our code does not double-escape to compensate
179 * for this, indeed double escaping would break if the double-escaped title was
180 * passed in the query string rather than the path. This is a minor security issue
181 * because articles can be created such that they are hard to view or edit.
183 * In some rare cases you may wish to remove + for compatibility with old links.
185 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
186 * this breaks interlanguage links
188 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
192 * The external URL protocols
194 $wgUrlProtocols = array(
195 'http://',
196 'https://',
197 'ftp://',
198 'irc://',
199 'gopher://',
200 'telnet://', // Well if we're going to support the above.. -ævar
201 'nntp://', // @bug 3808 RFC 1738
202 'worldwind://',
203 'mailto:',
204 'news:'
207 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
208 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
209 * @global string $wgAntivirus
211 $wgAntivirus= NULL;
213 /** Configuration for different virus scanners. This an associative array of associative arrays:
214 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
215 * valid values for $wgAntivirus are the keys defined in this array.
217 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
219 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
220 * file to scan. If not present, the filename will be appended to the command. Note that this must be
221 * overwritten if the scanner is not in the system path; in that case, plase set
222 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
224 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
225 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
226 * the file if $wgAntivirusRequired is not set.
227 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
228 * which is probably imune to virusses. This causes the file to pass.
229 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
230 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
231 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
233 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
234 * output. The relevant part should be matched as group one (\1).
235 * If not defined or the pattern does not match, the full message is shown to the user.
237 * @global array $wgAntivirusSetup
239 $wgAntivirusSetup= array(
241 #setup for clamav
242 'clamav' => array (
243 'command' => "clamscan --no-summary ",
245 'codemap'=> array (
246 "0"=> AV_NO_VIRUS, #no virus
247 "1"=> AV_VIRUS_FOUND, #virus found
248 "52"=> AV_SCAN_ABORTED, #unsupported file format (probably imune)
249 "*"=> AV_SCAN_FAILED, #else scan failed
252 'messagepattern'=> '/.*?:(.*)/sim',
255 #setup for f-prot
256 'f-prot' => array (
257 'command' => "f-prot ",
259 'codemap'=> array (
260 "0"=> AV_NO_VIRUS, #no virus
261 "3"=> AV_VIRUS_FOUND, #virus found
262 "6"=> AV_VIRUS_FOUND, #virus found
263 "*"=> AV_SCAN_FAILED, #else scan failed
266 'messagepattern'=> '/.*?Infection:(.*)$/m',
271 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
272 * @global boolean $wgAntivirusRequired
274 $wgAntivirusRequired= true;
276 /** Determines if the mime type of uploaded files should be checked
277 * @global boolean $wgVerifyMimeType
279 $wgVerifyMimeType= true;
281 /** Sets the mime type definition file to use by MimeMagic.php.
282 * @global string $wgMimeTypeFile
284 #$wgMimeTypeFile= "/etc/mime.types";
285 $wgMimeTypeFile= "includes/mime.types";
286 #$wgMimeTypeFile= NULL; #use built-in defaults only.
288 /** Sets the mime type info file to use by MimeMagic.php.
289 * @global string $wgMimeInfoFile
291 $wgMimeInfoFile= "includes/mime.info";
292 #$wgMimeInfoFile= NULL; #use built-in defaults only.
294 /** Switch for loading the FileInfo extension by PECL at runtime.
295 * This should be used only if fileinfo is installed as a shared object
296 * or a dynamic libary
297 * @global string $wgLoadFileinfoExtension
299 $wgLoadFileinfoExtension= false;
301 /** Sets an external mime detector program. The command must print only
302 * the mime type to standard output.
303 * The name of the file to process will be appended to the command given here.
304 * If not set or NULL, mime_content_type will be used if available.
306 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
307 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
309 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
310 * things, because only a few types of images are needed and file extensions
311 * can be trusted.
313 $wgTrivialMimeDetection= false;
316 * To set 'pretty' URL paths for actions other than
317 * plain page views, add to this array. For instance:
318 * 'edit' => "$wgScriptPath/edit/$1"
320 * There must be an appropriate script or rewrite rule
321 * in place to handle these URLs.
323 $wgActionPaths = array();
326 * If you operate multiple wikis, you can define a shared upload path here.
327 * Uploads to this wiki will NOT be put there - they will be put into
328 * $wgUploadDirectory.
329 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
330 * no file of the given name is found in the local repository (for [[Image:..]],
331 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
332 * directory.
334 $wgUseSharedUploads = false;
335 /** Full path on the web server where shared uploads can be found */
336 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
337 /** Fetch commons image description pages and display them on the local wiki? */
338 $wgFetchCommonsDescriptions = false;
339 /** Path on the file system where shared uploads can be found. */
340 $wgSharedUploadDirectory = "/var/www/wiki3/images";
341 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
342 $wgSharedUploadDBname = false;
343 /** Optional table prefix used in database. */
344 $wgSharedUploadDBprefix = '';
345 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
346 $wgCacheSharedUploads = true;
347 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
348 $wgAllowCopyUploads = false;
349 /** Max size for uploads, in bytes */
350 $wgMaxUploadSize = 1024*1024*100; # 100MB
353 * Point the upload navigation link to an external URL
354 * Useful if you want to use a shared repository by default
355 * without disabling local uploads (use $wgEnableUploads = false for that)
356 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
358 $wgUploadNavigationUrl = false;
361 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
362 * generating them on render and outputting a static URL. This is necessary if some of your
363 * apache servers don't have read/write access to the thumbnail path.
365 * Example:
366 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
368 $wgThumbnailScriptPath = false;
369 $wgSharedThumbnailScriptPath = false;
372 * Set the following to false especially if you have a set of files that need to
373 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
374 * directory layout.
376 $wgHashedSharedUploadDirectory = true;
379 * Base URL for a repository wiki. Leave this blank if uploads are just stored
380 * in a shared directory and not meant to be accessible through a separate wiki.
381 * Otherwise the image description pages on the local wiki will link to the
382 * image description page on this wiki.
384 * Please specify the namespace, as in the example below.
386 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
390 # Email settings
394 * Site admin email address
395 * Default to wikiadmin@SERVER_NAME
396 * @global string $wgEmergencyContact
398 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
401 * Password reminder email address
402 * The address we should use as sender when a user is requesting his password
403 * Default to apache@SERVER_NAME
404 * @global string $wgPasswordSender
406 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
409 * dummy address which should be accepted during mail send action
410 * It might be necessay to adapt the address or to set it equal
411 * to the $wgEmergencyContact address
413 #$wgNoReplyAddress = $wgEmergencyContact;
414 $wgNoReplyAddress = 'reply@not.possible';
417 * Set to true to enable the e-mail basic features:
418 * Password reminders, etc. If sending e-mail on your
419 * server doesn't work, you might want to disable this.
420 * @global bool $wgEnableEmail
422 $wgEnableEmail = true;
425 * Set to true to enable user-to-user e-mail.
426 * This can potentially be abused, as it's hard to track.
427 * @global bool $wgEnableUserEmail
429 $wgEnableUserEmail = true;
432 * Minimum time, in hours, which must elapse between password reminder
433 * emails for a given account. This is to prevent abuse by mail flooding.
435 $wgPasswordReminderResendTime = 24;
438 * SMTP Mode
439 * For using a direct (authenticated) SMTP server connection.
440 * Default to false or fill an array :
441 * <code>
442 * "host" => 'SMTP domain',
443 * "IDHost" => 'domain for MessageID',
444 * "port" => "25",
445 * "auth" => true/false,
446 * "username" => user,
447 * "password" => password
448 * </code>
450 * @global mixed $wgSMTP
452 $wgSMTP = false;
455 /**#@+
456 * Database settings
458 /** database host name or ip address */
459 $wgDBserver = 'localhost';
460 /** database port number */
461 $wgDBport = '';
462 /** name of the database */
463 $wgDBname = 'wikidb';
464 /** */
465 $wgDBconnection = '';
466 /** Database username */
467 $wgDBuser = 'wikiuser';
468 /** Database type
470 $wgDBtype = "mysql";
471 /** Search type
472 * Leave as null to select the default search engine for the
473 * selected database type (eg SearchMySQL4), or set to a class
474 * name to override to a custom search engine.
476 $wgSearchType = null;
477 /** Table name prefix */
478 $wgDBprefix = '';
479 /**#@-*/
481 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
482 $wgCheckDBSchema = true;
486 * Shared database for multiple wikis. Presently used for storing a user table
487 * for single sign-on. The server for this database must be the same as for the
488 * main database.
489 * EXPERIMENTAL
491 $wgSharedDB = null;
493 # Database load balancer
494 # This is a two-dimensional array, an array of server info structures
495 # Fields are:
496 # host: Host name
497 # dbname: Default database name
498 # user: DB user
499 # password: DB password
500 # type: "mysql" or "postgres"
501 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
502 # groupLoads: array of load ratios, the key is the query group name. A query may belong
503 # to several groups, the most specific group defined here is used.
505 # flags: bit field
506 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
507 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
508 # DBO_TRX -- wrap entire request in a transaction
509 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
510 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
512 # max lag: (optional) Maximum replication lag before a slave will taken out of rotation
513 # max threads: (optional) Maximum number of running threads
515 # These and any other user-defined properties will be assigned to the mLBInfo member
516 # variable of the Database object.
518 # Leave at false to use the single-server variables above
519 $wgDBservers = false;
521 /** How long to wait for a slave to catch up to the master */
522 $wgMasterWaitTimeout = 10;
524 /** File to log database errors to */
525 $wgDBerrorLog = false;
527 /** When to give an error message */
528 $wgDBClusterTimeout = 10;
531 * wgDBminWordLen :
532 * MySQL 3.x : used to discard words that MySQL will not return any results for
533 * shorter values configure mysql directly.
534 * MySQL 4.x : ignore it and configure mySQL
535 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
537 $wgDBminWordLen = 4;
538 /** Set to true if using InnoDB tables */
539 $wgDBtransactions = false;
540 /** Set to true for compatibility with extensions that might be checking.
541 * MySQL 3.23.x is no longer supported. */
542 $wgDBmysql4 = true;
545 * Set to true to engage MySQL 4.1/5.0 charset-related features;
546 * for now will just cause sending of 'SET NAMES=utf8' on connect.
548 * WARNING: THIS IS EXPERIMENTAL!
550 * May break if you're not using the table defs from mysql5/tables.sql.
551 * May break if you're upgrading an existing wiki if set differently.
552 * Broken symptoms likely to include incorrect behavior with page titles,
553 * usernames, comments etc containing non-ASCII characters.
554 * Might also cause failures on the object cache and other things.
556 * Even correct usage may cause failures with Unicode supplementary
557 * characters (those not in the Basic Multilingual Plane) unless MySQL
558 * has enhanced their Unicode support.
560 $wgDBmysql5 = false;
563 * Other wikis on this site, can be administered from a single developer
564 * account.
565 * Array numeric key => database name
567 $wgLocalDatabases = array();
570 * Object cache settings
571 * See Defines.php for types
573 $wgMainCacheType = CACHE_NONE;
574 $wgMessageCacheType = CACHE_ANYTHING;
575 $wgParserCacheType = CACHE_ANYTHING;
577 $wgParserCacheExpireTime = 86400;
579 $wgSessionsInMemcached = false;
580 $wgLinkCacheMemcached = false; # Not fully tested
583 * Memcached-specific settings
584 * See docs/memcached.txt
586 $wgUseMemCached = false;
587 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
588 $wgMemCachedServers = array( '127.0.0.1:11000' );
589 $wgMemCachedDebug = false;
590 $wgMemCachedPersistent = false;
593 * Directory for local copy of message cache, for use in addition to memcached
595 $wgLocalMessageCache = false;
597 * Defines format of local cache
598 * true - Serialized object
599 * false - PHP source file (Warning - security risk)
601 $wgLocalMessageCacheSerialized = true;
604 * Directory for compiled constant message array databases
605 * WARNING: turning anything on will just break things, aaaaaah!!!!
607 $wgCachedMessageArrays = false;
609 # Language settings
611 /** Site language code, should be one of ./languages/Language(.*).php */
612 $wgLanguageCode = 'en';
615 * Some languages need different word forms, usually for different cases.
616 * Used in Language::convertGrammar().
618 $wgGrammarForms = array();
619 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
621 /** Treat language links as magic connectors, not inline links */
622 $wgInterwikiMagic = true;
624 /** Hide interlanguage links from the sidebar */
625 $wgHideInterlanguageLinks = false;
628 /** We speak UTF-8 all the time now, unless some oddities happen */
629 $wgInputEncoding = 'UTF-8';
630 $wgOutputEncoding = 'UTF-8';
631 $wgEditEncoding = '';
633 # Set this to eg 'ISO-8859-1' to perform character set
634 # conversion when loading old revisions not marked with
635 # "utf-8" flag. Use this when converting wiki to UTF-8
636 # without the burdensome mass conversion of old text data.
638 # NOTE! This DOES NOT touch any fields other than old_text.
639 # Titles, comments, user names, etc still must be converted
640 # en masse in the database before continuing as a UTF-8 wiki.
641 $wgLegacyEncoding = false;
644 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
645 * create stub reference rows in the text table instead of copying
646 * the full text of all current entries from 'cur' to 'text'.
648 * This will speed up the conversion step for large sites, but
649 * requires that the cur table be kept around for those revisions
650 * to remain viewable.
652 * maintenance/migrateCurStubs.php can be used to complete the
653 * migration in the background once the wiki is back online.
655 * This option affects the updaters *only*. Any present cur stub
656 * revisions will be readable at runtime regardless of this setting.
658 $wgLegacySchemaConversion = false;
660 $wgMimeType = 'text/html';
661 $wgJsMimeType = 'text/javascript';
662 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
663 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
665 /** Enable to allow rewriting dates in page text.
666 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
667 $wgUseDynamicDates = false;
668 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
669 * the interface is set to English
671 $wgAmericanDates = false;
673 * For Hindi and Arabic use local numerals instead of Western style (0-9)
674 * numerals in interface.
676 $wgTranslateNumerals = true;
679 # Translation using MediaWiki: namespace
680 # This will increase load times by 25-60% unless memcached is installed
681 # Interface messages will be loaded from the database.
682 $wgUseDatabaseMessages = true;
683 $wgMsgCacheExpiry = 86400;
685 # Whether to enable language variant conversion.
686 $wgDisableLangConversion = false;
689 * Show a bar of language selection links in the user login and user
690 * registration forms; edit the "loginlanguagelinks" message to
691 * customise these
693 $wgLoginLanguageSelector = false;
695 # Whether to use zhdaemon to perform Chinese text processing
696 # zhdaemon is under developement, so normally you don't want to
697 # use it unless for testing
698 $wgUseZhdaemon = false;
699 $wgZhdaemonHost="localhost";
700 $wgZhdaemonPort=2004;
702 /** Normally you can ignore this and it will be something
703 like $wgMetaNamespace . "_talk". In some languages, you
704 may want to set this manually for grammatical reasons.
705 It is currently only respected by those languages
706 where it might be relevant and where no automatic
707 grammar converter exists.
709 $wgMetaNamespaceTalk = false;
711 # Miscellaneous configuration settings
714 $wgLocalInterwiki = 'w';
715 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
717 /** Interwiki caching settings.
718 $wgInterwikiCache specifies path to constant database file
719 This cdb database is generated by dumpInterwiki from maintenance
720 and has such key formats:
721 dbname:key - a simple key (e.g. enwiki:meta)
722 _sitename:key - site-scope key (e.g. wiktionary:meta)
723 __global:key - global-scope key (e.g. __global:meta)
724 __sites:dbname - site mapping (e.g. __sites:enwiki)
725 Sites mapping just specifies site name, other keys provide
726 "local url" data layout.
727 $wgInterwikiScopes specify number of domains to check for messages:
728 1 - Just wiki(db)-level
729 2 - wiki and global levels
730 3 - site levels
731 $wgInterwikiFallbackSite - if unable to resolve from cache
733 $wgInterwikiCache = false;
734 $wgInterwikiScopes = 3;
735 $wgInterwikiFallbackSite = 'wiki';
738 * If local interwikis are set up which allow redirects,
739 * set this regexp to restrict URLs which will be displayed
740 * as 'redirected from' links.
742 * It might look something like this:
743 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
745 * Leave at false to avoid displaying any incoming redirect markers.
746 * This does not affect intra-wiki redirects, which don't change
747 * the URL.
749 $wgRedirectSources = false;
752 $wgShowIPinHeader = true; # For non-logged in users
753 $wgMaxNameChars = 255; # Maximum number of bytes in username
754 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
756 $wgExtraSubtitle = '';
757 $wgSiteSupportPage = ''; # A page where you users can receive donations
759 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
762 * The debug log file should be not be publicly accessible if it is used, as it
763 * may contain private data. */
764 $wgDebugLogFile = '';
766 /**#@+
767 * @global bool
769 $wgDebugRedirects = false;
770 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
772 $wgDebugComments = false;
773 $wgReadOnly = null;
774 $wgLogQueries = false;
777 * Write SQL queries to the debug log
779 $wgDebugDumpSql = false;
782 * Set to an array of log group keys to filenames.
783 * If set, wfDebugLog() output for that group will go to that file instead
784 * of the regular $wgDebugLogFile. Useful for enabling selective logging
785 * in production.
787 $wgDebugLogGroups = array();
790 * Whether to show "we're sorry, but there has been a database error" pages.
791 * Displaying errors aids in debugging, but may display information useful
792 * to an attacker.
794 $wgShowSQLErrors = false;
797 * If true, some error messages will be colorized when running scripts on the
798 * command line; this can aid picking important things out when debugging.
799 * Ignored when running on Windows or when output is redirected to a file.
801 $wgColorErrors = true;
804 * If set to true, uncaught exceptions will print a complete stack trace
805 * to output. This should only be used for debugging, as it may reveal
806 * private information in function parameters due to PHP's backtrace
807 * formatting.
809 $wgShowExceptionDetails = false;
812 * disable experimental dmoz-like category browsing. Output things like:
813 * Encyclopedia > Music > Style of Music > Jazz
815 $wgUseCategoryBrowser = false;
818 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
819 * to speed up output of the same page viewed by another user with the
820 * same options.
822 * This can provide a significant speedup for medium to large pages,
823 * so you probably want to keep it on.
825 $wgEnableParserCache = true;
828 * If on, the sidebar navigation links are cached for users with the
829 * current language set. This can save a touch of load on a busy site
830 * by shaving off extra message lookups.
832 * However it is also fragile: changing the site configuration, or
833 * having a variable $wgArticlePath, can produce broken links that
834 * don't update as expected.
836 $wgEnableSidebarCache = false;
839 * Under which condition should a page in the main namespace be counted
840 * as a valid article? If $wgUseCommaCount is set to true, it will be
841 * counted if it contains at least one comma. If it is set to false
842 * (default), it will only be counted if it contains at least one [[wiki
843 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
845 * Retroactively changing this variable will not affect
846 * the existing count (cf. maintenance/recount.sql).
848 $wgUseCommaCount = false;
850 /**#@-*/
853 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
854 * values are easier on the database. A value of 1 causes the counters to be
855 * updated on every hit, any higher value n cause them to update *on average*
856 * every n hits. Should be set to either 1 or something largish, eg 1000, for
857 * maximum efficiency.
859 $wgHitcounterUpdateFreq = 1;
861 # Basic user rights and block settings
862 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
863 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
864 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
865 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
867 # Pages anonymous user may see as an array, e.g.:
868 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
869 # NOTE: This will only work if $wgGroupPermissions['*']['read']
870 # is false -- see below. Otherwise, ALL pages are accessible,
871 # regardless of this setting.
872 # Also note that this will only protect _pages in the wiki_.
873 # Uploaded files will remain readable. Make your upload
874 # directory name unguessable, or use .htaccess to protect it.
875 $wgWhitelistRead = false;
877 /**
878 * Should editors be required to have a validated e-mail
879 * address before being allowed to edit?
881 $wgEmailConfirmToEdit=false;
884 * Permission keys given to users in each group.
885 * All users are implicitly in the '*' group including anonymous visitors;
886 * logged-in users are all implicitly in the 'user' group. These will be
887 * combined with the permissions of all groups that a given user is listed
888 * in in the user_groups table.
890 * Functionality to make pages inaccessible has not been extensively tested
891 * for security. Use at your own risk!
893 * This replaces wgWhitelistAccount and wgWhitelistEdit
895 $wgGroupPermissions = array();
897 // Implicit group for all visitors
898 $wgGroupPermissions['*' ]['createaccount'] = true;
899 $wgGroupPermissions['*' ]['read'] = true;
900 $wgGroupPermissions['*' ]['edit'] = true;
901 $wgGroupPermissions['*' ]['createpage'] = true;
902 $wgGroupPermissions['*' ]['createtalk'] = true;
904 // Implicit group for all logged-in accounts
905 $wgGroupPermissions['user' ]['move'] = true;
906 $wgGroupPermissions['user' ]['read'] = true;
907 $wgGroupPermissions['user' ]['edit'] = true;
908 $wgGroupPermissions['user' ]['createpage'] = true;
909 $wgGroupPermissions['user' ]['createtalk'] = true;
910 $wgGroupPermissions['user' ]['upload'] = true;
911 $wgGroupPermissions['user' ]['reupload'] = true;
912 $wgGroupPermissions['user' ]['reupload-shared'] = true;
913 $wgGroupPermissions['user' ]['minoredit'] = true;
915 // Implicit group for accounts that pass $wgAutoConfirmAge
916 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
918 // Implicit group for accounts with confirmed email addresses
919 // This has little use when email address confirmation is off
920 $wgGroupPermissions['emailconfirmed']['emailconfirmed'] = true;
922 // Users with bot privilege can have their edits hidden
923 // from various log pages by default
924 $wgGroupPermissions['bot' ]['bot'] = true;
925 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
926 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
928 // Most extra permission abilities go to this group
929 $wgGroupPermissions['sysop']['block'] = true;
930 $wgGroupPermissions['sysop']['createaccount'] = true;
931 $wgGroupPermissions['sysop']['delete'] = true;
932 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
933 $wgGroupPermissions['sysop']['editinterface'] = true;
934 $wgGroupPermissions['sysop']['import'] = true;
935 $wgGroupPermissions['sysop']['importupload'] = true;
936 $wgGroupPermissions['sysop']['move'] = true;
937 $wgGroupPermissions['sysop']['patrol'] = true;
938 $wgGroupPermissions['sysop']['autopatrol'] = true;
939 $wgGroupPermissions['sysop']['protect'] = true;
940 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
941 $wgGroupPermissions['sysop']['rollback'] = true;
942 $wgGroupPermissions['sysop']['trackback'] = true;
943 $wgGroupPermissions['sysop']['upload'] = true;
944 $wgGroupPermissions['sysop']['reupload'] = true;
945 $wgGroupPermissions['sysop']['reupload-shared'] = true;
946 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
947 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
948 $wgGroupPermissions['sysop']['upload_by_url'] = true;
950 // Permission to change users' group assignments
951 $wgGroupPermissions['bureaucrat']['userrights'] = true;
953 // Experimental permissions, not ready for production use
954 //$wgGroupPermissions['sysop']['deleterevision'] = true;
955 //$wgGroupPermissions['bureaucrat']['hiderevision'] = true;
958 * The developer group is deprecated, but can be activated if need be
959 * to use the 'lockdb' and 'unlockdb' special pages. Those require
960 * that a lock file be defined and creatable/removable by the web
961 * server.
963 # $wgGroupPermissions['developer']['siteadmin'] = true;
966 * Set of available actions that can be restricted via action=protect
967 * You probably shouldn't change this.
968 * Translated trough restriction-* messages.
970 $wgRestrictionTypes = array( 'edit', 'move' );
973 * Set of permission keys that can be selected via action=protect.
974 * 'autoconfirm' allows all registerd users if $wgAutoConfirmAge is 0.
976 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
980 * Number of seconds an account is required to age before
981 * it's given the implicit 'autoconfirm' group membership.
982 * This can be used to limit privileges of new accounts.
984 * Accounts created by earlier versions of the software
985 * may not have a recorded creation date, and will always
986 * be considered to pass the age test.
988 * When left at 0, all registered accounts will pass.
990 $wgAutoConfirmAge = 0;
991 //$wgAutoConfirmAge = 600; // ten minutes
992 //$wgAutoConfirmAge = 3600*24; // one day
996 # Proxy scanner settings
1000 * If you enable this, every editor's IP address will be scanned for open HTTP
1001 * proxies.
1003 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1004 * ISP and ask for your server to be shut down.
1006 * You have been warned.
1008 $wgBlockOpenProxies = false;
1009 /** Port we want to scan for a proxy */
1010 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1011 /** Script used to scan */
1012 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1013 /** */
1014 $wgProxyMemcExpiry = 86400;
1015 /** This should always be customised in LocalSettings.php */
1016 $wgSecretKey = false;
1017 /** big list of banned IP addresses, in the keys not the values */
1018 $wgProxyList = array();
1019 /** deprecated */
1020 $wgProxyKey = false;
1022 /** Number of accounts each IP address may create, 0 to disable.
1023 * Requires memcached */
1024 $wgAccountCreationThrottle = 0;
1026 # Client-side caching:
1028 /** Allow client-side caching of pages */
1029 $wgCachePages = true;
1032 * Set this to current time to invalidate all prior cached pages. Affects both
1033 * client- and server-side caching.
1034 * You can get the current date on your server by using the command:
1035 * date +%Y%m%d%H%M%S
1037 $wgCacheEpoch = '20030516000000';
1040 * Bump this number when changing the global style sheets and JavaScript.
1041 * It should be appended in the query string of static CSS and JS includes,
1042 * to ensure that client-side caches don't keep obsolete copies of global
1043 * styles.
1045 $wgStyleVersion = '39';
1048 # Server-side caching:
1051 * This will cache static pages for non-logged-in users to reduce
1052 * database traffic on public sites.
1053 * Must set $wgShowIPinHeader = false
1055 $wgUseFileCache = false;
1056 /** Directory where the cached page will be saved */
1057 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
1060 * When using the file cache, we can store the cached HTML gzipped to save disk
1061 * space. Pages will then also be served compressed to clients that support it.
1062 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1063 * the default LocalSettings.php! If you enable this, remove that setting first.
1065 * Requires zlib support enabled in PHP.
1067 $wgUseGzip = false;
1069 /** Whether MediaWiki should send an ETag header */
1070 $wgUseETag = false;
1072 # Email notification settings
1075 /** For email notification on page changes */
1076 $wgPasswordSender = $wgEmergencyContact;
1078 # true: from page editor if s/he opted-in
1079 # false: Enotif mails appear to come from $wgEmergencyContact
1080 $wgEnotifFromEditor = false;
1082 // TODO move UPO to preferences probably ?
1083 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1084 # If set to false, the corresponding input form on the user preference page is suppressed
1085 # It call this to be a "user-preferences-option (UPO)"
1086 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1087 $wgEnotifWatchlist = false; # UPO
1088 $wgEnotifUserTalk = false; # UPO
1089 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1090 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1091 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1093 /** Show watching users in recent changes, watchlist and page history views */
1094 $wgRCShowWatchingUsers = false; # UPO
1095 /** Show watching users in Page views */
1096 $wgPageShowWatchingUsers = false;
1097 /** Show the amount of changed characters in recent changes */
1098 $wgRCShowChangedSize = true;
1101 * If the difference between the character counts of the text
1102 * before and after the edit is below that value, the value will be
1103 * highlighted on the RC page.
1105 $wgRCChangedSizeThreshold = -500;
1108 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1109 * view for watched pages with new changes */
1110 $wgShowUpdatedMarker = true;
1112 $wgCookieExpiration = 2592000;
1114 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1115 * problems when the user requests two pages within a short period of time. This
1116 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1117 * a grace period.
1119 $wgClockSkewFudge = 5;
1121 # Squid-related settings
1124 /** Enable/disable Squid */
1125 $wgUseSquid = false;
1127 /** If you run Squid3 with ESI support, enable this (default:false): */
1128 $wgUseESI = false;
1130 /** Internal server name as known to Squid, if different */
1131 # $wgInternalServer = 'http://yourinternal.tld:8000';
1132 $wgInternalServer = $wgServer;
1135 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1136 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1137 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1138 * days
1140 $wgSquidMaxage = 18000;
1143 * A list of proxy servers (ips if possible) to purge on changes don't specify
1144 * ports here (80 is default)
1146 # $wgSquidServers = array('127.0.0.1');
1147 $wgSquidServers = array();
1148 $wgSquidServersNoPurge = array();
1150 /** Maximum number of titles to purge in any one client operation */
1151 $wgMaxSquidPurgeTitles = 400;
1153 /** HTCP multicast purging */
1154 $wgHTCPPort = 4827;
1155 $wgHTCPMulticastTTL = 1;
1156 # $wgHTCPMulticastAddress = "224.0.0.85";
1157 $wgHTCPMulticastAddress = false;
1159 # Cookie settings:
1162 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1163 * or ".any.subdomain.net"
1165 $wgCookieDomain = '';
1166 $wgCookiePath = '/';
1167 $wgCookieSecure = ($wgProto == 'https');
1168 $wgDisableCookieCheck = false;
1170 /** Override to customise the session name */
1171 $wgSessionName = false;
1173 /** Whether to allow inline image pointing to other websites */
1174 $wgAllowExternalImages = false;
1176 /** If the above is false, you can specify an exception here. Image URLs
1177 * that start with this string are then rendered, while all others are not.
1178 * You can use this to set up a trusted, simple repository of images.
1180 * Example:
1181 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1183 $wgAllowExternalImagesFrom = '';
1185 /** Disable database-intensive features */
1186 $wgMiserMode = false;
1187 /** Disable all query pages if miser mode is on, not just some */
1188 $wgDisableQueryPages = false;
1189 /** Number of rows to cache in 'querycache' table when miser mode is on */
1190 $wgQueryCacheLimit = 1000;
1191 /** Number of links to a page required before it is deemed "wanted" */
1192 $wgWantedPagesThreshold = 1;
1193 /** Enable slow parser functions */
1194 $wgAllowSlowParserFunctions = false;
1197 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1198 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1199 * (ImageMagick) installed and available in the PATH.
1200 * Please see math/README for more information.
1202 $wgUseTeX = false;
1203 /** Location of the texvc binary */
1204 $wgTexvc = './math/texvc';
1207 # Profiling / debugging
1209 # You have to create a 'profiling' table in your database before using
1210 # profiling see maintenance/archives/patch-profiling.sql .
1212 # To enable profiling, edit StartProfiler.php
1214 /** Only record profiling info for pages that took longer than this */
1215 $wgProfileLimit = 0.0;
1216 /** Don't put non-profiling info into log file */
1217 $wgProfileOnly = false;
1218 /** Log sums from profiling into "profiling" table in db. */
1219 $wgProfileToDatabase = false;
1220 /** If true, print a raw call tree instead of per-function report */
1221 $wgProfileCallTree = false;
1222 /** Should application server host be put into profiling table */
1223 $wgProfilePerHost = false;
1225 /** Settings for UDP profiler */
1226 $wgUDPProfilerHost = '127.0.0.1';
1227 $wgUDPProfilerPort = '3811';
1229 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1230 $wgDebugProfiling = false;
1231 /** Output debug message on every wfProfileIn/wfProfileOut */
1232 $wgDebugFunctionEntry = 0;
1233 /** Lots of debugging output from SquidUpdate.php */
1234 $wgDebugSquid = false;
1236 $wgDisableCounters = false;
1237 $wgDisableTextSearch = false;
1238 $wgDisableSearchContext = false;
1240 * If you've disabled search semi-permanently, this also disables updates to the
1241 * table. If you ever re-enable, be sure to rebuild the search table.
1243 $wgDisableSearchUpdate = false;
1244 /** Uploads have to be specially set up to be secure */
1245 $wgEnableUploads = false;
1247 * Show EXIF data, on by default if available.
1248 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1250 $wgShowEXIF = function_exists( 'exif_read_data' );
1253 * Set to true to enable the upload _link_ while local uploads are disabled.
1254 * Assumes that the special page link will be bounced to another server where
1255 * uploads do work.
1257 $wgRemoteUploads = false;
1258 $wgDisableAnonTalk = false;
1260 * Do DELETE/INSERT for link updates instead of incremental
1262 $wgUseDumbLinkUpdate = false;
1265 * Anti-lock flags - bitfield
1266 * ALF_PRELOAD_LINKS
1267 * Preload links during link update for save
1268 * ALF_PRELOAD_EXISTENCE
1269 * Preload cur_id during replaceLinkHolders
1270 * ALF_NO_LINK_LOCK
1271 * Don't use locking reads when updating the link table. This is
1272 * necessary for wikis with a high edit rate for performance
1273 * reasons, but may cause link table inconsistency
1274 * ALF_NO_BLOCK_LOCK
1275 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1276 * wikis.
1278 $wgAntiLockFlags = 0;
1281 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1282 * fall back to the old behaviour (no merging).
1284 $wgDiff3 = '/usr/bin/diff3';
1287 * We can also compress text in the old revisions table. If this is set on, old
1288 * revisions will be compressed on page save if zlib support is available. Any
1289 * compressed revisions will be decompressed on load regardless of this setting
1290 * *but will not be readable at all* if zlib support is not available.
1292 $wgCompressRevisions = false;
1295 * This is the list of preferred extensions for uploading files. Uploading files
1296 * with extensions not in this list will trigger a warning.
1298 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1300 /** Files with these extensions will never be allowed as uploads. */
1301 $wgFileBlacklist = array(
1302 # HTML may contain cookie-stealing JavaScript and web bugs
1303 'html', 'htm', 'js', 'jsb',
1304 # PHP scripts may execute arbitrary code on the server
1305 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1306 # Other types that may be interpreted by some servers
1307 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1308 # May contain harmful executables for Windows victims
1309 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1311 /** Files with these mime types will never be allowed as uploads
1312 * if $wgVerifyMimeType is enabled.
1314 $wgMimeTypeBlacklist= array(
1315 # HTML may contain cookie-stealing JavaScript and web bugs
1316 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1317 # PHP scripts may execute arbitrary code on the server
1318 'application/x-php', 'text/x-php',
1319 # Other types that may be interpreted by some servers
1320 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1321 # Windows metafile, client-side vulnerability on some systems
1322 'application/x-msmetafile'
1325 /** This is a flag to determine whether or not to check file extensions on upload. */
1326 $wgCheckFileExtensions = true;
1329 * If this is turned off, users may override the warning for files not covered
1330 * by $wgFileExtensions.
1332 $wgStrictFileExtensions = true;
1334 /** Warn if uploaded files are larger than this (in bytes)*/
1335 $wgUploadSizeWarning = 150 * 1024;
1337 /** For compatibility with old installations set to false */
1338 $wgPasswordSalt = true;
1340 /** Which namespaces should support subpages?
1341 * See Language.php for a list of namespaces.
1343 $wgNamespacesWithSubpages = array(
1344 NS_TALK => true,
1345 NS_USER => true,
1346 NS_USER_TALK => true,
1347 NS_PROJECT_TALK => true,
1348 NS_IMAGE_TALK => true,
1349 NS_MEDIAWIKI_TALK => true,
1350 NS_TEMPLATE_TALK => true,
1351 NS_HELP_TALK => true,
1352 NS_CATEGORY_TALK => true
1355 $wgNamespacesToBeSearchedDefault = array(
1356 NS_MAIN => true,
1359 /** If set, a bold ugly notice will show up at the top of every page. */
1360 $wgSiteNotice = '';
1364 # Images settings
1367 /** dynamic server side image resizing ("Thumbnails") */
1368 $wgUseImageResize = false;
1371 * Resizing can be done using PHP's internal image libraries or using
1372 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1373 * These support more file formats than PHP, which only supports PNG,
1374 * GIF, JPG, XBM and WBMP.
1376 * Use Image Magick instead of PHP builtin functions.
1378 $wgUseImageMagick = false;
1379 /** The convert command shipped with ImageMagick */
1380 $wgImageMagickConvertCommand = '/usr/bin/convert';
1383 * Use another resizing converter, e.g. GraphicMagick
1384 * %s will be replaced with the source path, %d with the destination
1385 * %w and %h will be replaced with the width and height
1387 * An example is provided for GraphicMagick
1388 * Leave as false to skip this
1390 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1391 $wgCustomConvertCommand = false;
1393 # Scalable Vector Graphics (SVG) may be uploaded as images.
1394 # Since SVG support is not yet standard in browsers, it is
1395 # necessary to rasterize SVGs to PNG as a fallback format.
1397 # An external program is required to perform this conversion:
1398 $wgSVGConverters = array(
1399 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1400 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1401 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1402 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1403 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1405 /** Pick one of the above */
1406 $wgSVGConverter = 'ImageMagick';
1407 /** If not in the executable PATH, specify */
1408 $wgSVGConverterPath = '';
1409 /** Don't scale a SVG larger than this */
1410 $wgSVGMaxSize = 1024;
1412 * Don't thumbnail an image if it will use too much working memory
1413 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1414 * 12.5 million pixels or 3500x3500
1416 $wgMaxImageArea = 1.25e7;
1418 * If rendered thumbnail files are older than this timestamp, they
1419 * will be rerendered on demand as if the file didn't already exist.
1420 * Update if there is some need to force thumbs and SVG rasterizations
1421 * to rerender, such as fixes to rendering bugs.
1423 $wgThumbnailEpoch = '20030516000000';
1426 * If set, inline scaled images will still produce <img> tags ready for
1427 * output instead of showing an error message.
1429 * This may be useful if errors are transitory, especially if the site
1430 * is configured to automatically render thumbnails on request.
1432 * On the other hand, it may obscure error conditions from debugging.
1433 * Enable the debug log or the 'thumbnail' log group to make sure errors
1434 * are logged to a file for review.
1436 $wgIgnoreImageErrors = false;
1439 * Allow thumbnail rendering on page view. If this is false, a valid
1440 * thumbnail URL is still output, but no file will be created at
1441 * the target location. This may save some time if you have a
1442 * thumb.php or 404 handler set up which is faster than the regular
1443 * webserver(s).
1445 $wgGenerateThumbnailOnParse = true;
1447 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1448 if( !isset( $wgCommandLineMode ) ) {
1449 $wgCommandLineMode = false;
1454 # Recent changes settings
1457 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1458 $wgPutIPinRC = true;
1461 * Recentchanges items are periodically purged; entries older than this many
1462 * seconds will go.
1463 * For one week : 7 * 24 * 3600
1465 $wgRCMaxAge = 7 * 24 * 3600;
1468 # Send RC updates via UDP
1469 $wgRC2UDPAddress = false;
1470 $wgRC2UDPPort = false;
1471 $wgRC2UDPPrefix = '';
1474 # Copyright and credits settings
1477 /** RDF metadata toggles */
1478 $wgEnableDublinCoreRdf = false;
1479 $wgEnableCreativeCommonsRdf = false;
1481 /** Override for copyright metadata.
1482 * TODO: these options need documentation
1484 $wgRightsPage = NULL;
1485 $wgRightsUrl = NULL;
1486 $wgRightsText = NULL;
1487 $wgRightsIcon = NULL;
1489 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1490 $wgCopyrightIcon = NULL;
1492 /** Set this to true if you want detailed copyright information forms on Upload. */
1493 $wgUseCopyrightUpload = false;
1495 /** Set this to false if you want to disable checking that detailed copyright
1496 * information values are not empty. */
1497 $wgCheckCopyrightUpload = true;
1500 * Set this to the number of authors that you want to be credited below an
1501 * article text. Set it to zero to hide the attribution block, and a negative
1502 * number (like -1) to show all authors. Note that this will require 2-3 extra
1503 * database hits, which can have a not insignificant impact on performance for
1504 * large wikis.
1506 $wgMaxCredits = 0;
1508 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1509 * Otherwise, link to a separate credits page. */
1510 $wgShowCreditsIfMax = true;
1515 * Set this to false to avoid forcing the first letter of links to capitals.
1516 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1517 * appearing with a capital at the beginning of a sentence will *not* go to the
1518 * same place as links in the middle of a sentence using a lowercase initial.
1520 $wgCapitalLinks = true;
1523 * List of interwiki prefixes for wikis we'll accept as sources for
1524 * Special:Import (for sysops). Since complete page history can be imported,
1525 * these should be 'trusted'.
1527 * If a user has the 'import' permission but not the 'importupload' permission,
1528 * they will only be able to run imports through this transwiki interface.
1530 $wgImportSources = array();
1533 * Optional default target namespace for interwiki imports.
1534 * Can use this to create an incoming "transwiki"-style queue.
1535 * Set to numeric key, not the name.
1537 * Users may override this in the Special:Import dialog.
1539 $wgImportTargetNamespace = null;
1542 * If set to false, disables the full-history option on Special:Export.
1543 * This is currently poorly optimized for long edit histories, so is
1544 * disabled on Wikimedia's sites.
1546 $wgExportAllowHistory = true;
1549 * If set nonzero, Special:Export requests for history of pages with
1550 * more revisions than this will be rejected. On some big sites things
1551 * could get bogged down by very very long pages.
1553 $wgExportMaxHistory = 0;
1555 $wgExportAllowListContributors = false ;
1558 /** Text matching this regular expression will be recognised as spam
1559 * See http://en.wikipedia.org/wiki/Regular_expression */
1560 $wgSpamRegex = false;
1561 /** Similarly if this function returns true */
1562 $wgFilterCallback = false;
1564 /** Go button goes straight to the edit screen if the article doesn't exist. */
1565 $wgGoToEdit = false;
1567 /** Allow limited user-specified HTML in wiki pages?
1568 * It will be run through a whitelist for security. Set this to false if you
1569 * want wiki pages to consist only of wiki markup. Note that replacements do not
1570 * yet exist for all HTML constructs.*/
1571 $wgUserHtml = true;
1573 /** Allow raw, unchecked HTML in <html>...</html> sections.
1574 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1575 * TO RESTRICT EDITING to only those that you trust
1577 $wgRawHtml = false;
1580 * $wgUseTidy: use tidy to make sure HTML output is sane.
1581 * This should only be enabled if $wgUserHtml is true.
1582 * tidy is a free tool that fixes broken HTML.
1583 * See http://www.w3.org/People/Raggett/tidy/
1584 * $wgTidyBin should be set to the path of the binary and
1585 * $wgTidyConf to the path of the configuration file.
1586 * $wgTidyOpts can include any number of parameters.
1588 * $wgTidyInternal controls the use of the PECL extension to use an in-
1589 * process tidy library instead of spawning a separate program.
1590 * Normally you shouldn't need to override the setting except for
1591 * debugging. To install, use 'pear install tidy' and add a line
1592 * 'extension=tidy.so' to php.ini.
1594 $wgUseTidy = false;
1595 $wgAlwaysUseTidy = false;
1596 $wgTidyBin = 'tidy';
1597 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1598 $wgTidyOpts = '';
1599 $wgTidyInternal = function_exists( 'tidy_load_config' );
1601 /** See list of skins and their symbolic names in languages/Language.php */
1602 $wgDefaultSkin = 'monobook';
1605 * Settings added to this array will override the default globals for the user
1606 * preferences used by anonymous visitors and newly created accounts.
1607 * For instance, to disable section editing links:
1608 *  $wgDefaultUserOptions ['editsection'] = 0;
1611 $wgDefaultUserOptions = array(
1612 'quickbar' => 1,
1613 'underline' => 2,
1614 'cols' => 80,
1615 'rows' => 25,
1616 'searchlimit' => 20,
1617 'contextlines' => 5,
1618 'contextchars' => 50,
1619 'skin' => false,
1620 'math' => 1,
1621 'rcdays' => 7,
1622 'rclimit' => 50,
1623 'wllimit' => 250,
1624 'highlightbroken' => 1,
1625 'stubthreshold' => 0,
1626 'previewontop' => 1,
1627 'editsection' => 1,
1628 'editsectiononrightclick'=> 0,
1629 'showtoc' => 1,
1630 'showtoolbar' => 1,
1631 'date' => 'default',
1632 'imagesize' => 2,
1633 'thumbsize' => 2,
1634 'rememberpassword' => 0,
1635 'enotifwatchlistpages' => 0,
1636 'enotifusertalkpages' => 1,
1637 'enotifminoredits' => 0,
1638 'enotifrevealaddr' => 0,
1639 'shownumberswatching' => 1,
1640 'fancysig' => 0,
1641 'externaleditor' => 0,
1642 'externaldiff' => 0,
1643 'showjumplinks' => 1,
1644 'numberheadings' => 0,
1645 'uselivepreview' => 0,
1646 'watchlistdays' => 3.0,
1649 /** Whether or not to allow and use real name fields. Defaults to true. */
1650 $wgAllowRealName = true;
1652 /*****************************************************************************
1653 * Extensions
1657 * A list of callback functions which are called once MediaWiki is fully initialised
1659 $wgExtensionFunctions = array();
1662 * Extension functions for initialisation of skins. This is called somewhat earlier
1663 * than $wgExtensionFunctions.
1665 $wgSkinExtensionFunctions = array();
1668 * List of valid skin names.
1669 * The key should be the name in all lower case, the value should be a display name.
1670 * The default skins will be added later, by Skin::getSkinNames(). Use
1671 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
1673 $wgValidSkinNames = array();
1676 * Special page list.
1677 * See the top of SpecialPage.php for documentation.
1679 $wgSpecialPages = array();
1682 * Array mapping class names to filenames, for autoloading.
1684 $wgAutoloadClasses = array();
1687 * An array of extension types and inside that their names, versions, authors
1688 * and urls, note that the version and url key can be omitted.
1690 * <code>
1691 * $wgExtensionCredits[$type][] = array(
1692 * 'name' => 'Example extension',
1693 * 'version' => 1.9,
1694 * 'author' => 'Foo Barstein',
1695 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1696 * );
1697 * </code>
1699 * Where $type is 'specialpage', 'parserhook', or 'other'.
1701 $wgExtensionCredits = array();
1703 * end extensions
1704 ******************************************************************************/
1707 * Allow user Javascript page?
1708 * This enables a lot of neat customizations, but may
1709 * increase security risk to users and server load.
1711 $wgAllowUserJs = false;
1714 * Allow user Cascading Style Sheets (CSS)?
1715 * This enables a lot of neat customizations, but may
1716 * increase security risk to users and server load.
1718 $wgAllowUserCss = false;
1720 /** Use the site's Javascript page? */
1721 $wgUseSiteJs = true;
1723 /** Use the site's Cascading Style Sheets (CSS)? */
1724 $wgUseSiteCss = true;
1726 /** Filter for Special:Randompage. Part of a WHERE clause */
1727 $wgExtraRandompageSQL = false;
1729 /** Allow the "info" action, very inefficient at the moment */
1730 $wgAllowPageInfo = false;
1732 /** Maximum indent level of toc. */
1733 $wgMaxTocLevel = 999;
1735 /** Name of the external diff engine to use */
1736 $wgExternalDiffEngine = false;
1738 /** Use RC Patrolling to check for vandalism */
1739 $wgUseRCPatrol = true;
1741 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1742 * eg Recentchanges, Newpages. */
1743 $wgFeedLimit = 50;
1745 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1746 * A cached version will continue to be served out even if changes
1747 * are made, until this many seconds runs out since the last render.
1749 * If set to 0, feed caching is disabled. Use this for debugging only;
1750 * feed generation can be pretty slow with diffs.
1752 $wgFeedCacheTimeout = 60;
1754 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1755 * pages larger than this size. */
1756 $wgFeedDiffCutoff = 32768;
1760 * Additional namespaces. If the namespaces defined in Language.php and
1761 * Namespace.php are insufficient, you can create new ones here, for example,
1762 * to import Help files in other languages.
1763 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1764 * no longer be accessible. If you rename it, then you can access them through
1765 * the new namespace name.
1767 * Custom namespaces should start at 100 to avoid conflicting with standard
1768 * namespaces, and should always follow the even/odd main/talk pattern.
1770 #$wgExtraNamespaces =
1771 # array(100 => "Hilfe",
1772 # 101 => "Hilfe_Diskussion",
1773 # 102 => "Aide",
1774 # 103 => "Discussion_Aide"
1775 # );
1776 $wgExtraNamespaces = NULL;
1779 * Limit images on image description pages to a user-selectable limit. In order
1780 * to reduce disk usage, limits can only be selected from a list. This is the
1781 * list of settings the user can choose from:
1783 $wgImageLimits = array (
1784 array(320,240),
1785 array(640,480),
1786 array(800,600),
1787 array(1024,768),
1788 array(1280,1024),
1789 array(10000,10000) );
1792 * Adjust thumbnails on image pages according to a user setting. In order to
1793 * reduce disk usage, the values can only be selected from a list. This is the
1794 * list of settings the user can choose from:
1796 $wgThumbLimits = array(
1797 120,
1798 150,
1799 180,
1800 200,
1801 250,
1806 * On category pages, show thumbnail gallery for images belonging to that
1807 * category instead of listing them as articles.
1809 $wgCategoryMagicGallery = true;
1812 * Paging limit for categories
1814 $wgCategoryPagingLimit = 200;
1817 * Browser Blacklist for unicode non compliant browsers
1818 * Contains a list of regexps : "/regexp/" matching problematic browsers
1820 $wgBrowserBlackList = array(
1822 * Netscape 2-4 detection
1823 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
1824 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
1825 * with a negative assertion. The [UIN] identifier specifies the level of security
1826 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
1827 * The language string is unreliable, it is missing on NS4 Mac.
1829 * Reference: http://www.psychedelix.com/agents/index.shtml
1831 '/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1832 '/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1833 '/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1836 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1838 * Known useragents:
1839 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1840 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1841 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1842 * - [...]
1844 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1845 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1847 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/'
1851 * Fake out the timezone that the server thinks it's in. This will be used for
1852 * date display and not for what's stored in the DB. Leave to null to retain
1853 * your server's OS-based timezone value. This is the same as the timezone.
1855 * This variable is currently used ONLY for signature formatting, not for
1856 * anything else.
1858 # $wgLocaltimezone = 'GMT';
1859 # $wgLocaltimezone = 'PST8PDT';
1860 # $wgLocaltimezone = 'Europe/Sweden';
1861 # $wgLocaltimezone = 'CET';
1862 $wgLocaltimezone = null;
1865 * Set an offset from UTC in minutes to use for the default timezone setting
1866 * for anonymous users and new user accounts.
1868 * This setting is used for most date/time displays in the software, and is
1869 * overrideable in user preferences. It is *not* used for signature timestamps.
1871 * You can set it to match the configured server timezone like this:
1872 * $wgLocalTZoffset = date("Z") / 60;
1874 * If your server is not configured for the timezone you want, you can set
1875 * this in conjunction with the signature timezone and override the TZ
1876 * environment variable like so:
1877 * $wgLocaltimezone="Europe/Berlin";
1878 * putenv("TZ=$wgLocaltimezone");
1879 * $wgLocalTZoffset = date("Z") / 60;
1881 * Leave at NULL to show times in universal time (UTC/GMT).
1883 $wgLocalTZoffset = null;
1887 * When translating messages with wfMsg(), it is not always clear what should be
1888 * considered UI messages and what shoud be content messages.
1890 * For example, for regular wikipedia site like en, there should be only one
1891 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1892 * it as content of the site and call wfMsgForContent(), while for rendering the
1893 * text of the link, we call wfMsg(). The code in default behaves this way.
1894 * However, sites like common do offer different versions of 'mainpage' and the
1895 * like for different languages. This array provides a way to override the
1896 * default behavior. For example, to allow language specific mainpage and
1897 * community portal, set
1899 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1901 $wgForceUIMsgAsContentMsg = array();
1905 * Authentication plugin.
1907 $wgAuth = null;
1910 * Global list of hooks.
1911 * Add a hook by doing:
1912 * $wgHooks['event_name'][] = $function;
1913 * or:
1914 * $wgHooks['event_name'][] = array($function, $data);
1915 * or:
1916 * $wgHooks['event_name'][] = array($object, 'method');
1918 $wgHooks = array();
1921 * The logging system has two levels: an event type, which describes the
1922 * general category and can be viewed as a named subset of all logs; and
1923 * an action, which is a specific kind of event that can exist in that
1924 * log type.
1926 $wgLogTypes = array( '',
1927 'block',
1928 'protect',
1929 'rights',
1930 'delete',
1931 'upload',
1932 'move',
1933 'import' );
1936 * Lists the message key string for each log type. The localized messages
1937 * will be listed in the user interface.
1939 * Extensions with custom log types may add to this array.
1941 $wgLogNames = array(
1942 '' => 'log',
1943 'block' => 'blocklogpage',
1944 'protect' => 'protectlogpage',
1945 'rights' => 'rightslog',
1946 'delete' => 'dellogpage',
1947 'upload' => 'uploadlogpage',
1948 'move' => 'movelogpage',
1949 'import' => 'importlogpage' );
1952 * Lists the message key string for descriptive text to be shown at the
1953 * top of each log type.
1955 * Extensions with custom log types may add to this array.
1957 $wgLogHeaders = array(
1958 '' => 'alllogstext',
1959 'block' => 'blocklogtext',
1960 'protect' => 'protectlogtext',
1961 'rights' => 'rightslogtext',
1962 'delete' => 'dellogpagetext',
1963 'upload' => 'uploadlogpagetext',
1964 'move' => 'movelogpagetext',
1965 'import' => 'importlogpagetext', );
1968 * Lists the message key string for formatting individual events of each
1969 * type and action when listed in the logs.
1971 * Extensions with custom log types may add to this array.
1973 $wgLogActions = array(
1974 'block/block' => 'blocklogentry',
1975 'block/unblock' => 'unblocklogentry',
1976 'protect/protect' => 'protectedarticle',
1977 'protect/unprotect' => 'unprotectedarticle',
1978 'rights/rights' => 'rightslogentry',
1979 'delete/delete' => 'deletedarticle',
1980 'delete/restore' => 'undeletedarticle',
1981 'delete/revision' => 'revdelete-logentry',
1982 'upload/upload' => 'uploadedimage',
1983 'upload/revert' => 'uploadedimage',
1984 'move/move' => '1movedto2',
1985 'move/move_redir' => '1movedto2_redir',
1986 'import/upload' => 'import-logentry-upload',
1987 'import/interwiki' => 'import-logentry-interwiki' );
1990 * Experimental preview feature to fetch rendered text
1991 * over an XMLHttpRequest from JavaScript instead of
1992 * forcing a submit and reload of the whole page.
1993 * Leave disabled unless you're testing it.
1995 $wgLivePreview = false;
1998 * Disable the internal MySQL-based search, to allow it to be
1999 * implemented by an extension instead.
2001 $wgDisableInternalSearch = false;
2004 * Set this to a URL to forward search requests to some external location.
2005 * If the URL includes '$1', this will be replaced with the URL-encoded
2006 * search term.
2008 * For example, to forward to Google you'd have something like:
2009 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2010 * '&domains=http://example.com' .
2011 * '&sitesearch=http://example.com' .
2012 * '&ie=utf-8&oe=utf-8';
2014 $wgSearchForwardUrl = null;
2017 * If true, external URL links in wiki text will be given the
2018 * rel="nofollow" attribute as a hint to search engines that
2019 * they should not be followed for ranking purposes as they
2020 * are user-supplied and thus subject to spamming.
2022 $wgNoFollowLinks = true;
2025 * Namespaces in which $wgNoFollowLinks doesn't apply.
2026 * See Language.php for a list of namespaces.
2028 $wgNoFollowNsExceptions = array();
2031 * Robot policies for namespaces
2032 * e.g. $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2034 $wgNamespaceRobotPolicies = array();
2037 * Specifies the minimal length of a user password. If set to
2038 * 0, empty passwords are allowed.
2040 $wgMinimalPasswordLength = 0;
2043 * Activate external editor interface for files and pages
2044 * See http://meta.wikimedia.org/wiki/Help:External_editors
2046 $wgUseExternalEditor = true;
2048 /** Whether or not to sort special pages in Special:Specialpages */
2050 $wgSortSpecialPages = true;
2053 * Specify the name of a skin that should not be presented in the
2054 * list of available skins.
2055 * Use for blacklisting a skin which you do not want to remove
2056 * from the .../skins/ directory
2058 $wgSkipSkin = '';
2059 $wgSkipSkins = array(); # More of the same
2062 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2064 $wgDisabledActions = array();
2067 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2069 $wgDisableHardRedirects = false;
2072 * Use http.dnsbl.sorbs.net to check for open proxies
2074 $wgEnableSorbs = false;
2075 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2078 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2079 * methods might say
2081 $wgProxyWhitelist = array();
2084 * Simple rate limiter options to brake edit floods.
2085 * Maximum number actions allowed in the given number of seconds;
2086 * after that the violating client receives HTTP 500 error pages
2087 * until the period elapses.
2089 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2091 * This option set is experimental and likely to change.
2092 * Requires memcached.
2094 $wgRateLimits = array(
2095 'edit' => array(
2096 'anon' => null, // for any and all anonymous edits (aggregate)
2097 'user' => null, // for each logged-in user
2098 'newbie' => null, // for each recent account; overrides 'user'
2099 'ip' => null, // for each anon and recent account
2100 'subnet' => null, // ... with final octet removed
2102 'move' => array(
2103 'user' => null,
2104 'newbie' => null,
2105 'ip' => null,
2106 'subnet' => null,
2108 'mailpassword' => array(
2109 'anon' => NULL,
2114 * Set to a filename to log rate limiter hits.
2116 $wgRateLimitLog = null;
2119 * Array of groups which should never trigger the rate limiter
2121 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2124 * On Special:Unusedimages, consider images "used", if they are put
2125 * into a category. Default (false) is not to count those as used.
2127 $wgCountCategorizedImagesAsUsed = false;
2130 * External stores allow including content
2131 * from non database sources following URL links
2133 * Short names of ExternalStore classes may be specified in an array here:
2134 * $wgExternalStores = array("http","file","custom")...
2136 * CAUTION: Access to database might lead to code execution
2138 $wgExternalStores = false;
2141 * An array of external mysql servers, e.g.
2142 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2144 $wgExternalServers = array();
2147 * The place to put new revisions, false to put them in the local text table.
2148 * Part of a URL, e.g. DB://cluster1
2150 * Can be an array instead of a single string, to enable data distribution. Keys
2151 * must be consecutive integers, starting at zero. Example:
2153 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2156 $wgDefaultExternalStore = false;
2159 * Revision text may be cached in $wgMemc to reduce load on external storage
2160 * servers and object extraction overhead for frequently-loaded revisions.
2162 * Set to 0 to disable, or number of seconds before cache expiry.
2164 $wgRevisionCacheExpiry = 0;
2167 * list of trusted media-types and mime types.
2168 * Use the MEDIATYPE_xxx constants to represent media types.
2169 * This list is used by Image::isSafeFile
2171 * Types not listed here will have a warning about unsafe content
2172 * displayed on the images description page. It would also be possible
2173 * to use this for further restrictions, like disabling direct
2174 * [[media:...]] links for non-trusted formats.
2176 $wgTrustedMediaFormats= array(
2177 MEDIATYPE_BITMAP, //all bitmap formats
2178 MEDIATYPE_AUDIO, //all audio formats
2179 MEDIATYPE_VIDEO, //all plain video formats
2180 "image/svg", //svg (only needed if inline rendering of svg is not supported)
2181 "application/pdf", //PDF files
2182 #"application/x-shockwafe-flash", //flash/shockwave movie
2186 * Allow special page inclusions such as {{Special:Allpages}}
2188 $wgAllowSpecialInclusion = true;
2191 * Timeout for HTTP requests done via CURL
2193 $wgHTTPTimeout = 3;
2196 * Proxy to use for CURL requests.
2198 $wgHTTPProxy = false;
2201 * Enable interwiki transcluding. Only when iw_trans=1.
2203 $wgEnableScaryTranscluding = false;
2205 * Expiry time for interwiki transclusion
2207 $wgTranscludeCacheExpiry = 3600;
2210 * Support blog-style "trackbacks" for articles. See
2211 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2213 $wgUseTrackbacks = false;
2216 * Enable filtering of categories in Recentchanges
2218 $wgAllowCategorizedRecentChanges = false ;
2221 * Number of jobs to perform per request. May be less than one in which case
2222 * jobs are performed probabalistically. If this is zero, jobs will not be done
2223 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2224 * be run periodically.
2226 $wgJobRunRate = 1;
2229 * Number of rows to update per job
2231 $wgUpdateRowsPerJob = 500;
2234 * Number of rows to update per query
2236 $wgUpdateRowsPerQuery = 10;
2239 * Enable AJAX framework
2241 $wgUseAjax = false;
2244 * Enable auto suggestion for the search bar
2245 * Requires $wgUseAjax to be true too.
2246 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2248 $wgAjaxSearch = false;
2251 * List of Ajax-callable functions.
2252 * Extensions acting as Ajax callbacks must register here
2254 $wgAjaxExportList = array( );
2257 * Enable watching/unwatching pages using AJAX.
2258 * Requires $wgUseAjax to be true too.
2259 * Causes wfAjaxWatch to be added to $wgAjaxExportList
2261 $wgAjaxWatch = false;
2264 * Allow DISPLAYTITLE to change title display
2266 $wgAllowDisplayTitle = false ;
2269 * Array of usernames which may not be registered or logged in from
2270 * Maintenance scripts can still use these
2272 $wgReservedUsernames = array( 'MediaWiki default', 'Conversion script', 'Maintenance script' );
2275 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
2276 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
2277 * crap files as images. When this directive is on, <title> will be allowed in files with
2278 * an "image/svg" MIME type. You should leave this disabled if your web server is misconfigured
2279 * and doesn't send appropriate MIME types for SVG images.
2281 $wgAllowTitlesInSVG = false;
2284 * Array of namespaces which can be deemed to contain valid "content", as far
2285 * as the site statistics are concerned. Useful if additional namespaces also
2286 * contain "content" which should be considered when generating a count of the
2287 * number of articles in the wiki.
2289 $wgContentNamespaces = array( NS_MAIN );
2292 * Maximum amount of virtual memory available to shell processes under linux, in KB.
2294 $wgMaxShellMemory = 102400;
2297 * Maximum file size created by shell processes under linux, in KB
2298 * ImageMagick convert for example can be fairly hungry for scratch space
2300 $wgMaxShellFileSize = 102400;
2303 * DJVU settings
2304 * Path of the djvutoxml executable
2305 * Enable this and $wgDjvuRenderer to enable djvu rendering
2307 # $wgDjvuToXML = 'djvutoxml';
2308 $wgDjvuToXML = null;
2311 * Path of the ddjvu DJVU renderer
2312 * Enable this and $wgDjvuToXML to enable djvu rendering
2314 # $wgDjvuRenderer = 'ddjvu';
2315 $wgDjvuRenderer = null;
2318 * Path of the DJVU post processor
2319 * May include command line options
2320 * Default: ppmtojpeg, since ddjvu generates ppm output
2322 $wgDjvuPostProcessor = 'ppmtojpeg';
2325 * Enable direct access to the data API
2326 * through api.php
2328 $wgEnableAPI = true;
2329 $wgEnableWriteAPI = false;
2332 * Parser test suite files to be run by parserTests.php when no specific
2333 * filename is passed to it.
2335 * Extensions may add their own tests to this array, or site-local tests
2336 * may be added via LocalSettings.php
2338 * Use full paths.
2340 $wgParserTestFiles = array(
2341 "$IP/maintenance/parserTests.txt",
2345 * Break out of framesets. This can be used to prevent external sites from
2346 * framing your site with ads.
2348 $wgBreakFrames = false;
2351 * Set this to an array of special page names to prevent
2352 * maintenance/updateSpecialPages.php from updating those pages.
2354 $wgDisableQueryPageUpdate = false;