Update.
[mediawiki.git] / includes / DefaultSettings.php
blob88e440dea88a66146c3a6814749c0a5bcbe88bd9
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 * This *needs* to be set correctly.
88 * Other paths will be set to defaults based on it unless they are directly
89 * set in LocalSettings.php
91 $wgScriptPath = '/wiki';
93 /**
94 * Whether to support URLs like index.php/Page_title
95 * These often break when PHP is set up in CGI mode.
96 * PATH_INFO *may* be correct if cgi.fix_pathinfo is
97 * set, but then again it may not; lighttpd converts
98 * incoming path data to lowercase on systems with
99 * case-insensitive filesystems, and there have been
100 * reports of problems on Apache as well.
102 * To be safe we'll continue to keep it off by default.
104 * Override this to false if $_SERVER['PATH_INFO']
105 * contains unexpectedly incorrect garbage, or to
106 * true if it is really correct.
108 * The default $wgArticlePath will be set based on
109 * this value at runtime, but if you have customized
110 * it, having this incorrectly set to true can
111 * cause redirect loops when "pretty URLs" are used.
114 $wgUsePathInfo =
115 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
116 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
117 ( strpos( php_sapi_name(), 'isapi' ) === false );
120 /**#@+
121 * Script users will request to get articles
122 * ATTN: Old installations used wiki.phtml and redirect.phtml -
123 * make sure that LocalSettings.php is correctly set!
125 * Will be set based on $wgScriptPath in Setup.php if not overridden
126 * in LocalSettings.php. Generally you should not need to change this
127 * unless you don't like seeing "index.php".
129 $wgScript = false; /// defaults to "{$wgScriptPath}/index.php"
130 $wgRedirectScript = false; /// defaults to "{$wgScriptPath}/redirect.php"
131 /**#@-*/
134 /**#@+
135 * These various web and file path variables are set to their defaults
136 * in Setup.php if they are not explicitly set from LocalSettings.php.
137 * If you do override them, be sure to set them all!
139 * These will relatively rarely need to be set manually, unless you are
140 * splitting style sheets or images outside the main document root.
142 * @global string
145 * style path as seen by users
147 $wgStylePath = false; /// defaults to "{$wgScriptPath}/skins"
149 * filesystem stylesheets directory
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 $wgMathPath = false; /// defaults to "{$wgUploadPath}/math"
161 $wgMathDirectory = false; /// defaults to "{$wgUploadDirectory}/math"
162 $wgTmpDirectory = false; /// defaults to "{$wgUploadDirectory}/tmp"
163 $wgUploadBaseUrl = "";
164 /**#@-*/
168 * By default deleted files are simply discarded; to save them and
169 * make it possible to undelete images, create a directory which
170 * is writable to the web server but is not exposed to the internet.
172 * Set $wgSaveDeletedFiles to true and set up the save path in
173 * $wgFileStore['deleted']['directory'].
175 $wgSaveDeletedFiles = false;
178 * New file storage paths; currently used only for deleted files.
179 * Set it like this:
181 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
184 $wgFileStore = array();
185 $wgFileStore['deleted']['directory'] = null; // Don't forget to set this.
186 $wgFileStore['deleted']['url'] = null; // Private
187 $wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split
190 * Allowed title characters -- regex character class
191 * Don't change this unless you know what you're doing
193 * Problematic punctuation:
194 * []{}|# Are needed for link syntax, never enable these
195 * % Enabled by default, minor problems with path to query rewrite rules, see below
196 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
197 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
199 * All three of these punctuation problems can be avoided by using an alias, instead of a
200 * rewrite rule of either variety.
202 * The problem with % is that when using a path to query rewrite rule, URLs are
203 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
204 * %253F, for example, becomes "?". Our code does not double-escape to compensate
205 * for this, indeed double escaping would break if the double-escaped title was
206 * passed in the query string rather than the path. This is a minor security issue
207 * because articles can be created such that they are hard to view or edit.
209 * In some rare cases you may wish to remove + for compatibility with old links.
211 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
212 * this breaks interlanguage links
214 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
218 * The external URL protocols
220 $wgUrlProtocols = array(
221 'http://',
222 'https://',
223 'ftp://',
224 'irc://',
225 'gopher://',
226 'telnet://', // Well if we're going to support the above.. -ævar
227 'nntp://', // @bug 3808 RFC 1738
228 'worldwind://',
229 'mailto:',
230 'news:'
233 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
234 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
235 * @global string $wgAntivirus
237 $wgAntivirus= NULL;
239 /** Configuration for different virus scanners. This an associative array of associative arrays:
240 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
241 * valid values for $wgAntivirus are the keys defined in this array.
243 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
245 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
246 * file to scan. If not present, the filename will be appended to the command. Note that this must be
247 * overwritten if the scanner is not in the system path; in that case, plase set
248 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
250 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
251 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
252 * the file if $wgAntivirusRequired is not set.
253 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
254 * which is probably imune to virusses. This causes the file to pass.
255 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
256 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
257 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
259 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
260 * output. The relevant part should be matched as group one (\1).
261 * If not defined or the pattern does not match, the full message is shown to the user.
263 * @global array $wgAntivirusSetup
265 $wgAntivirusSetup= array(
267 #setup for clamav
268 'clamav' => array (
269 'command' => "clamscan --no-summary ",
271 'codemap'=> array (
272 "0"=> AV_NO_VIRUS, #no virus
273 "1"=> AV_VIRUS_FOUND, #virus found
274 "52"=> AV_SCAN_ABORTED, #unsupported file format (probably imune)
275 "*"=> AV_SCAN_FAILED, #else scan failed
278 'messagepattern'=> '/.*?:(.*)/sim',
281 #setup for f-prot
282 'f-prot' => array (
283 'command' => "f-prot ",
285 'codemap'=> array (
286 "0"=> AV_NO_VIRUS, #no virus
287 "3"=> AV_VIRUS_FOUND, #virus found
288 "6"=> AV_VIRUS_FOUND, #virus found
289 "*"=> AV_SCAN_FAILED, #else scan failed
292 'messagepattern'=> '/.*?Infection:(.*)$/m',
297 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
298 * @global boolean $wgAntivirusRequired
300 $wgAntivirusRequired= true;
302 /** Determines if the mime type of uploaded files should be checked
303 * @global boolean $wgVerifyMimeType
305 $wgVerifyMimeType= true;
307 /** Sets the mime type definition file to use by MimeMagic.php.
308 * @global string $wgMimeTypeFile
310 #$wgMimeTypeFile= "/etc/mime.types";
311 $wgMimeTypeFile= "includes/mime.types";
312 #$wgMimeTypeFile= NULL; #use built-in defaults only.
314 /** Sets the mime type info file to use by MimeMagic.php.
315 * @global string $wgMimeInfoFile
317 $wgMimeInfoFile= "includes/mime.info";
318 #$wgMimeInfoFile= NULL; #use built-in defaults only.
320 /** Switch for loading the FileInfo extension by PECL at runtime.
321 * This should be used only if fileinfo is installed as a shared object
322 * or a dynamic libary
323 * @global string $wgLoadFileinfoExtension
325 $wgLoadFileinfoExtension= false;
327 /** Sets an external mime detector program. The command must print only
328 * the mime type to standard output.
329 * The name of the file to process will be appended to the command given here.
330 * If not set or NULL, mime_content_type will be used if available.
332 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
333 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
335 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
336 * things, because only a few types of images are needed and file extensions
337 * can be trusted.
339 $wgTrivialMimeDetection= false;
342 * To set 'pretty' URL paths for actions other than
343 * plain page views, add to this array. For instance:
344 * 'edit' => "$wgScriptPath/edit/$1"
346 * There must be an appropriate script or rewrite rule
347 * in place to handle these URLs.
349 $wgActionPaths = array();
352 * If you operate multiple wikis, you can define a shared upload path here.
353 * Uploads to this wiki will NOT be put there - they will be put into
354 * $wgUploadDirectory.
355 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
356 * no file of the given name is found in the local repository (for [[Image:..]],
357 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
358 * directory.
360 $wgUseSharedUploads = false;
361 /** Full path on the web server where shared uploads can be found */
362 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
363 /** Fetch commons image description pages and display them on the local wiki? */
364 $wgFetchCommonsDescriptions = false;
365 /** Path on the file system where shared uploads can be found. */
366 $wgSharedUploadDirectory = "/var/www/wiki3/images";
367 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
368 $wgSharedUploadDBname = false;
369 /** Optional table prefix used in database. */
370 $wgSharedUploadDBprefix = '';
371 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
372 $wgCacheSharedUploads = true;
373 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
374 $wgAllowCopyUploads = false;
375 /** Max size for uploads, in bytes */
376 $wgMaxUploadSize = 1024*1024*100; # 100MB
379 * Point the upload navigation link to an external URL
380 * Useful if you want to use a shared repository by default
381 * without disabling local uploads (use $wgEnableUploads = false for that)
382 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
384 $wgUploadNavigationUrl = false;
387 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
388 * generating them on render and outputting a static URL. This is necessary if some of your
389 * apache servers don't have read/write access to the thumbnail path.
391 * Example:
392 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
394 $wgThumbnailScriptPath = false;
395 $wgSharedThumbnailScriptPath = false;
398 * Set the following to false especially if you have a set of files that need to
399 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
400 * directory layout.
402 $wgHashedSharedUploadDirectory = true;
405 * Base URL for a repository wiki. Leave this blank if uploads are just stored
406 * in a shared directory and not meant to be accessible through a separate wiki.
407 * Otherwise the image description pages on the local wiki will link to the
408 * image description page on this wiki.
410 * Please specify the namespace, as in the example below.
412 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
416 # Email settings
420 * Site admin email address
421 * Default to wikiadmin@SERVER_NAME
422 * @global string $wgEmergencyContact
424 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
427 * Password reminder email address
428 * The address we should use as sender when a user is requesting his password
429 * Default to apache@SERVER_NAME
430 * @global string $wgPasswordSender
432 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
435 * dummy address which should be accepted during mail send action
436 * It might be necessay to adapt the address or to set it equal
437 * to the $wgEmergencyContact address
439 #$wgNoReplyAddress = $wgEmergencyContact;
440 $wgNoReplyAddress = 'reply@not.possible';
443 * Set to true to enable the e-mail basic features:
444 * Password reminders, etc. If sending e-mail on your
445 * server doesn't work, you might want to disable this.
446 * @global bool $wgEnableEmail
448 $wgEnableEmail = true;
451 * Set to true to enable user-to-user e-mail.
452 * This can potentially be abused, as it's hard to track.
453 * @global bool $wgEnableUserEmail
455 $wgEnableUserEmail = true;
458 * Minimum time, in hours, which must elapse between password reminder
459 * emails for a given account. This is to prevent abuse by mail flooding.
461 $wgPasswordReminderResendTime = 24;
464 * SMTP Mode
465 * For using a direct (authenticated) SMTP server connection.
466 * Default to false or fill an array :
467 * <code>
468 * "host" => 'SMTP domain',
469 * "IDHost" => 'domain for MessageID',
470 * "port" => "25",
471 * "auth" => true/false,
472 * "username" => user,
473 * "password" => password
474 * </code>
476 * @global mixed $wgSMTP
478 $wgSMTP = false;
481 /**#@+
482 * Database settings
484 /** database host name or ip address */
485 $wgDBserver = 'localhost';
486 /** database port number */
487 $wgDBport = '';
488 /** name of the database */
489 $wgDBname = 'wikidb';
490 /** */
491 $wgDBconnection = '';
492 /** Database username */
493 $wgDBuser = 'wikiuser';
494 /** Database type
496 $wgDBtype = "mysql";
497 /** Search type
498 * Leave as null to select the default search engine for the
499 * selected database type (eg SearchMySQL4), or set to a class
500 * name to override to a custom search engine.
502 $wgSearchType = null;
503 /** Table name prefix */
504 $wgDBprefix = '';
505 /**#@-*/
507 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
508 $wgCheckDBSchema = true;
512 * Shared database for multiple wikis. Presently used for storing a user table
513 * for single sign-on. The server for this database must be the same as for the
514 * main database.
515 * EXPERIMENTAL
517 $wgSharedDB = null;
519 # Database load balancer
520 # This is a two-dimensional array, an array of server info structures
521 # Fields are:
522 # host: Host name
523 # dbname: Default database name
524 # user: DB user
525 # password: DB password
526 # type: "mysql" or "postgres"
527 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
528 # groupLoads: array of load ratios, the key is the query group name. A query may belong
529 # to several groups, the most specific group defined here is used.
531 # flags: bit field
532 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
533 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
534 # DBO_TRX -- wrap entire request in a transaction
535 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
536 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
538 # max lag: (optional) Maximum replication lag before a slave will taken out of rotation
539 # max threads: (optional) Maximum number of running threads
541 # These and any other user-defined properties will be assigned to the mLBInfo member
542 # variable of the Database object.
544 # Leave at false to use the single-server variables above
545 $wgDBservers = false;
547 /** How long to wait for a slave to catch up to the master */
548 $wgMasterWaitTimeout = 10;
550 /** File to log database errors to */
551 $wgDBerrorLog = false;
553 /** When to give an error message */
554 $wgDBClusterTimeout = 10;
557 * wgDBminWordLen :
558 * MySQL 3.x : used to discard words that MySQL will not return any results for
559 * shorter values configure mysql directly.
560 * MySQL 4.x : ignore it and configure mySQL
561 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
563 $wgDBminWordLen = 4;
564 /** Set to true if using InnoDB tables */
565 $wgDBtransactions = false;
566 /** Set to true for compatibility with extensions that might be checking.
567 * MySQL 3.23.x is no longer supported. */
568 $wgDBmysql4 = true;
571 * Set to true to engage MySQL 4.1/5.0 charset-related features;
572 * for now will just cause sending of 'SET NAMES=utf8' on connect.
574 * WARNING: THIS IS EXPERIMENTAL!
576 * May break if you're not using the table defs from mysql5/tables.sql.
577 * May break if you're upgrading an existing wiki if set differently.
578 * Broken symptoms likely to include incorrect behavior with page titles,
579 * usernames, comments etc containing non-ASCII characters.
580 * Might also cause failures on the object cache and other things.
582 * Even correct usage may cause failures with Unicode supplementary
583 * characters (those not in the Basic Multilingual Plane) unless MySQL
584 * has enhanced their Unicode support.
586 $wgDBmysql5 = false;
589 * Other wikis on this site, can be administered from a single developer
590 * account.
591 * Array numeric key => database name
593 $wgLocalDatabases = array();
596 * Object cache settings
597 * See Defines.php for types
599 $wgMainCacheType = CACHE_NONE;
600 $wgMessageCacheType = CACHE_ANYTHING;
601 $wgParserCacheType = CACHE_ANYTHING;
603 $wgParserCacheExpireTime = 86400;
605 $wgSessionsInMemcached = false;
606 $wgLinkCacheMemcached = false; # Not fully tested
609 * Memcached-specific settings
610 * See docs/memcached.txt
612 $wgUseMemCached = false;
613 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
614 $wgMemCachedServers = array( '127.0.0.1:11000' );
615 $wgMemCachedDebug = false;
616 $wgMemCachedPersistent = false;
619 * Directory for local copy of message cache, for use in addition to memcached
621 $wgLocalMessageCache = false;
623 * Defines format of local cache
624 * true - Serialized object
625 * false - PHP source file (Warning - security risk)
627 $wgLocalMessageCacheSerialized = true;
630 * Directory for compiled constant message array databases
631 * WARNING: turning anything on will just break things, aaaaaah!!!!
633 $wgCachedMessageArrays = false;
635 # Language settings
637 /** Site language code, should be one of ./languages/Language(.*).php */
638 $wgLanguageCode = 'en';
641 * Some languages need different word forms, usually for different cases.
642 * Used in Language::convertGrammar().
644 $wgGrammarForms = array();
645 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
647 /** Treat language links as magic connectors, not inline links */
648 $wgInterwikiMagic = true;
650 /** Hide interlanguage links from the sidebar */
651 $wgHideInterlanguageLinks = false;
654 /** We speak UTF-8 all the time now, unless some oddities happen */
655 $wgInputEncoding = 'UTF-8';
656 $wgOutputEncoding = 'UTF-8';
657 $wgEditEncoding = '';
659 # Set this to eg 'ISO-8859-1' to perform character set
660 # conversion when loading old revisions not marked with
661 # "utf-8" flag. Use this when converting wiki to UTF-8
662 # without the burdensome mass conversion of old text data.
664 # NOTE! This DOES NOT touch any fields other than old_text.
665 # Titles, comments, user names, etc still must be converted
666 # en masse in the database before continuing as a UTF-8 wiki.
667 $wgLegacyEncoding = false;
670 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
671 * create stub reference rows in the text table instead of copying
672 * the full text of all current entries from 'cur' to 'text'.
674 * This will speed up the conversion step for large sites, but
675 * requires that the cur table be kept around for those revisions
676 * to remain viewable.
678 * maintenance/migrateCurStubs.php can be used to complete the
679 * migration in the background once the wiki is back online.
681 * This option affects the updaters *only*. Any present cur stub
682 * revisions will be readable at runtime regardless of this setting.
684 $wgLegacySchemaConversion = false;
686 $wgMimeType = 'text/html';
687 $wgJsMimeType = 'text/javascript';
688 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
689 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
691 /** Enable to allow rewriting dates in page text.
692 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
693 $wgUseDynamicDates = false;
694 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
695 * the interface is set to English
697 $wgAmericanDates = false;
699 * For Hindi and Arabic use local numerals instead of Western style (0-9)
700 * numerals in interface.
702 $wgTranslateNumerals = true;
705 * Translation using MediaWiki: namespace.
706 * This will increase load times by 25-60% unless memcached is installed.
707 * Interface messages will be loaded from the database.
709 $wgUseDatabaseMessages = true;
712 * Expiry time for the message cache key
714 $wgMsgCacheExpiry = 86400;
717 * Maximum entry size in the message cache, in bytes
719 $wgMaxMsgCacheEntrySize = 10000;
721 # Whether to enable language variant conversion.
722 $wgDisableLangConversion = false;
724 # Default variant code, if false, the default will be the language code
725 $wgDefaultLanguageVariant = false;
728 * Show a bar of language selection links in the user login and user
729 * registration forms; edit the "loginlanguagelinks" message to
730 * customise these
732 $wgLoginLanguageSelector = false;
734 # Whether to use zhdaemon to perform Chinese text processing
735 # zhdaemon is under developement, so normally you don't want to
736 # use it unless for testing
737 $wgUseZhdaemon = false;
738 $wgZhdaemonHost="localhost";
739 $wgZhdaemonPort=2004;
741 /** Normally you can ignore this and it will be something
742 like $wgMetaNamespace . "_talk". In some languages, you
743 may want to set this manually for grammatical reasons.
744 It is currently only respected by those languages
745 where it might be relevant and where no automatic
746 grammar converter exists.
748 $wgMetaNamespaceTalk = false;
750 # Miscellaneous configuration settings
753 $wgLocalInterwiki = 'w';
754 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
756 /** Interwiki caching settings.
757 $wgInterwikiCache specifies path to constant database file
758 This cdb database is generated by dumpInterwiki from maintenance
759 and has such key formats:
760 dbname:key - a simple key (e.g. enwiki:meta)
761 _sitename:key - site-scope key (e.g. wiktionary:meta)
762 __global:key - global-scope key (e.g. __global:meta)
763 __sites:dbname - site mapping (e.g. __sites:enwiki)
764 Sites mapping just specifies site name, other keys provide
765 "local url" data layout.
766 $wgInterwikiScopes specify number of domains to check for messages:
767 1 - Just wiki(db)-level
768 2 - wiki and global levels
769 3 - site levels
770 $wgInterwikiFallbackSite - if unable to resolve from cache
772 $wgInterwikiCache = false;
773 $wgInterwikiScopes = 3;
774 $wgInterwikiFallbackSite = 'wiki';
777 * If local interwikis are set up which allow redirects,
778 * set this regexp to restrict URLs which will be displayed
779 * as 'redirected from' links.
781 * It might look something like this:
782 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
784 * Leave at false to avoid displaying any incoming redirect markers.
785 * This does not affect intra-wiki redirects, which don't change
786 * the URL.
788 $wgRedirectSources = false;
791 $wgShowIPinHeader = true; # For non-logged in users
792 $wgMaxNameChars = 255; # Maximum number of bytes in username
793 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
795 $wgExtraSubtitle = '';
796 $wgSiteSupportPage = ''; # A page where you users can receive donations
798 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
801 * The debug log file should be not be publicly accessible if it is used, as it
802 * may contain private data. */
803 $wgDebugLogFile = '';
805 /**#@+
806 * @global bool
808 $wgDebugRedirects = false;
809 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
811 $wgDebugComments = false;
812 $wgReadOnly = null;
813 $wgLogQueries = false;
816 * Write SQL queries to the debug log
818 $wgDebugDumpSql = false;
821 * Set to an array of log group keys to filenames.
822 * If set, wfDebugLog() output for that group will go to that file instead
823 * of the regular $wgDebugLogFile. Useful for enabling selective logging
824 * in production.
826 $wgDebugLogGroups = array();
829 * Whether to show "we're sorry, but there has been a database error" pages.
830 * Displaying errors aids in debugging, but may display information useful
831 * to an attacker.
833 $wgShowSQLErrors = false;
836 * If true, some error messages will be colorized when running scripts on the
837 * command line; this can aid picking important things out when debugging.
838 * Ignored when running on Windows or when output is redirected to a file.
840 $wgColorErrors = true;
843 * If set to true, uncaught exceptions will print a complete stack trace
844 * to output. This should only be used for debugging, as it may reveal
845 * private information in function parameters due to PHP's backtrace
846 * formatting.
848 $wgShowExceptionDetails = false;
851 * disable experimental dmoz-like category browsing. Output things like:
852 * Encyclopedia > Music > Style of Music > Jazz
854 $wgUseCategoryBrowser = false;
857 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
858 * to speed up output of the same page viewed by another user with the
859 * same options.
861 * This can provide a significant speedup for medium to large pages,
862 * so you probably want to keep it on.
864 $wgEnableParserCache = true;
867 * If on, the sidebar navigation links are cached for users with the
868 * current language set. This can save a touch of load on a busy site
869 * by shaving off extra message lookups.
871 * However it is also fragile: changing the site configuration, or
872 * having a variable $wgArticlePath, can produce broken links that
873 * don't update as expected.
875 $wgEnableSidebarCache = false;
878 * Under which condition should a page in the main namespace be counted
879 * as a valid article? If $wgUseCommaCount is set to true, it will be
880 * counted if it contains at least one comma. If it is set to false
881 * (default), it will only be counted if it contains at least one [[wiki
882 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
884 * Retroactively changing this variable will not affect
885 * the existing count (cf. maintenance/recount.sql).
887 $wgUseCommaCount = false;
889 /**#@-*/
892 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
893 * values are easier on the database. A value of 1 causes the counters to be
894 * updated on every hit, any higher value n cause them to update *on average*
895 * every n hits. Should be set to either 1 or something largish, eg 1000, for
896 * maximum efficiency.
898 $wgHitcounterUpdateFreq = 1;
900 # Basic user rights and block settings
901 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
902 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
903 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
904 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
906 # Pages anonymous user may see as an array, e.g.:
907 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
908 # NOTE: This will only work if $wgGroupPermissions['*']['read']
909 # is false -- see below. Otherwise, ALL pages are accessible,
910 # regardless of this setting.
911 # Also note that this will only protect _pages in the wiki_.
912 # Uploaded files will remain readable. Make your upload
913 # directory name unguessable, or use .htaccess to protect it.
914 $wgWhitelistRead = false;
916 /**
917 * Should editors be required to have a validated e-mail
918 * address before being allowed to edit?
920 $wgEmailConfirmToEdit=false;
923 * Permission keys given to users in each group.
924 * All users are implicitly in the '*' group including anonymous visitors;
925 * logged-in users are all implicitly in the 'user' group. These will be
926 * combined with the permissions of all groups that a given user is listed
927 * in in the user_groups table.
929 * Functionality to make pages inaccessible has not been extensively tested
930 * for security. Use at your own risk!
932 * This replaces wgWhitelistAccount and wgWhitelistEdit
934 $wgGroupPermissions = array();
936 // Implicit group for all visitors
937 $wgGroupPermissions['*' ]['createaccount'] = true;
938 $wgGroupPermissions['*' ]['read'] = true;
939 $wgGroupPermissions['*' ]['edit'] = true;
940 $wgGroupPermissions['*' ]['createpage'] = true;
941 $wgGroupPermissions['*' ]['createtalk'] = true;
943 // Implicit group for all logged-in accounts
944 $wgGroupPermissions['user' ]['move'] = true;
945 $wgGroupPermissions['user' ]['read'] = true;
946 $wgGroupPermissions['user' ]['edit'] = true;
947 $wgGroupPermissions['user' ]['createpage'] = true;
948 $wgGroupPermissions['user' ]['createtalk'] = true;
949 $wgGroupPermissions['user' ]['upload'] = true;
950 $wgGroupPermissions['user' ]['reupload'] = true;
951 $wgGroupPermissions['user' ]['reupload-shared'] = true;
952 $wgGroupPermissions['user' ]['minoredit'] = true;
954 // Implicit group for accounts that pass $wgAutoConfirmAge
955 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
957 // Implicit group for accounts with confirmed email addresses
958 // This has little use when email address confirmation is off
959 $wgGroupPermissions['emailconfirmed']['emailconfirmed'] = true;
961 // Users with bot privilege can have their edits hidden
962 // from various log pages by default
963 $wgGroupPermissions['bot' ]['bot'] = true;
964 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
965 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
967 // Most extra permission abilities go to this group
968 $wgGroupPermissions['sysop']['block'] = true;
969 $wgGroupPermissions['sysop']['createaccount'] = true;
970 $wgGroupPermissions['sysop']['delete'] = true;
971 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
972 $wgGroupPermissions['sysop']['editinterface'] = true;
973 $wgGroupPermissions['sysop']['import'] = true;
974 $wgGroupPermissions['sysop']['importupload'] = true;
975 $wgGroupPermissions['sysop']['move'] = true;
976 $wgGroupPermissions['sysop']['patrol'] = true;
977 $wgGroupPermissions['sysop']['autopatrol'] = true;
978 $wgGroupPermissions['sysop']['protect'] = true;
979 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
980 $wgGroupPermissions['sysop']['rollback'] = true;
981 $wgGroupPermissions['sysop']['trackback'] = true;
982 $wgGroupPermissions['sysop']['upload'] = true;
983 $wgGroupPermissions['sysop']['reupload'] = true;
984 $wgGroupPermissions['sysop']['reupload-shared'] = true;
985 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
986 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
987 $wgGroupPermissions['sysop']['upload_by_url'] = true;
989 // Permission to change users' group assignments
990 $wgGroupPermissions['bureaucrat']['userrights'] = true;
992 // Experimental permissions, not ready for production use
993 //$wgGroupPermissions['sysop']['deleterevision'] = true;
994 //$wgGroupPermissions['bureaucrat']['hiderevision'] = true;
997 * The developer group is deprecated, but can be activated if need be
998 * to use the 'lockdb' and 'unlockdb' special pages. Those require
999 * that a lock file be defined and creatable/removable by the web
1000 * server.
1002 # $wgGroupPermissions['developer']['siteadmin'] = true;
1005 * Set of available actions that can be restricted via action=protect
1006 * You probably shouldn't change this.
1007 * Translated trough restriction-* messages.
1009 $wgRestrictionTypes = array( 'edit', 'move' );
1012 * Set of permission keys that can be selected via action=protect.
1013 * 'autoconfirm' allows all registerd users if $wgAutoConfirmAge is 0.
1015 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1019 * Number of seconds an account is required to age before
1020 * it's given the implicit 'autoconfirm' group membership.
1021 * This can be used to limit privileges of new accounts.
1023 * Accounts created by earlier versions of the software
1024 * may not have a recorded creation date, and will always
1025 * be considered to pass the age test.
1027 * When left at 0, all registered accounts will pass.
1029 $wgAutoConfirmAge = 0;
1030 //$wgAutoConfirmAge = 600; // ten minutes
1031 //$wgAutoConfirmAge = 3600*24; // one day
1035 # Proxy scanner settings
1039 * If you enable this, every editor's IP address will be scanned for open HTTP
1040 * proxies.
1042 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1043 * ISP and ask for your server to be shut down.
1045 * You have been warned.
1047 $wgBlockOpenProxies = false;
1048 /** Port we want to scan for a proxy */
1049 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1050 /** Script used to scan */
1051 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1052 /** */
1053 $wgProxyMemcExpiry = 86400;
1054 /** This should always be customised in LocalSettings.php */
1055 $wgSecretKey = false;
1056 /** big list of banned IP addresses, in the keys not the values */
1057 $wgProxyList = array();
1058 /** deprecated */
1059 $wgProxyKey = false;
1061 /** Number of accounts each IP address may create, 0 to disable.
1062 * Requires memcached */
1063 $wgAccountCreationThrottle = 0;
1065 # Client-side caching:
1067 /** Allow client-side caching of pages */
1068 $wgCachePages = true;
1071 * Set this to current time to invalidate all prior cached pages. Affects both
1072 * client- and server-side caching.
1073 * You can get the current date on your server by using the command:
1074 * date +%Y%m%d%H%M%S
1076 $wgCacheEpoch = '20030516000000';
1079 * Bump this number when changing the global style sheets and JavaScript.
1080 * It should be appended in the query string of static CSS and JS includes,
1081 * to ensure that client-side caches don't keep obsolete copies of global
1082 * styles.
1084 $wgStyleVersion = '40';
1087 # Server-side caching:
1090 * This will cache static pages for non-logged-in users to reduce
1091 * database traffic on public sites.
1092 * Must set $wgShowIPinHeader = false
1094 $wgUseFileCache = false;
1095 /** Directory where the cached page will be saved */
1096 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
1099 * When using the file cache, we can store the cached HTML gzipped to save disk
1100 * space. Pages will then also be served compressed to clients that support it.
1101 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1102 * the default LocalSettings.php! If you enable this, remove that setting first.
1104 * Requires zlib support enabled in PHP.
1106 $wgUseGzip = false;
1108 /** Whether MediaWiki should send an ETag header */
1109 $wgUseETag = false;
1111 # Email notification settings
1114 /** For email notification on page changes */
1115 $wgPasswordSender = $wgEmergencyContact;
1117 # true: from page editor if s/he opted-in
1118 # false: Enotif mails appear to come from $wgEmergencyContact
1119 $wgEnotifFromEditor = false;
1121 // TODO move UPO to preferences probably ?
1122 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1123 # If set to false, the corresponding input form on the user preference page is suppressed
1124 # It call this to be a "user-preferences-option (UPO)"
1125 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1126 $wgEnotifWatchlist = false; # UPO
1127 $wgEnotifUserTalk = false; # UPO
1128 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1129 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1130 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1132 /** Show watching users in recent changes, watchlist and page history views */
1133 $wgRCShowWatchingUsers = false; # UPO
1134 /** Show watching users in Page views */
1135 $wgPageShowWatchingUsers = false;
1136 /** Show the amount of changed characters in recent changes */
1137 $wgRCShowChangedSize = true;
1140 * If the difference between the character counts of the text
1141 * before and after the edit is below that value, the value will be
1142 * highlighted on the RC page.
1144 $wgRCChangedSizeThreshold = -500;
1147 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1148 * view for watched pages with new changes */
1149 $wgShowUpdatedMarker = true;
1151 $wgCookieExpiration = 2592000;
1153 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1154 * problems when the user requests two pages within a short period of time. This
1155 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1156 * a grace period.
1158 $wgClockSkewFudge = 5;
1160 # Squid-related settings
1163 /** Enable/disable Squid */
1164 $wgUseSquid = false;
1166 /** If you run Squid3 with ESI support, enable this (default:false): */
1167 $wgUseESI = false;
1169 /** Internal server name as known to Squid, if different */
1170 # $wgInternalServer = 'http://yourinternal.tld:8000';
1171 $wgInternalServer = $wgServer;
1174 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1175 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1176 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1177 * days
1179 $wgSquidMaxage = 18000;
1182 * A list of proxy servers (ips if possible) to purge on changes don't specify
1183 * ports here (80 is default)
1185 # $wgSquidServers = array('127.0.0.1');
1186 $wgSquidServers = array();
1187 $wgSquidServersNoPurge = array();
1189 /** Maximum number of titles to purge in any one client operation */
1190 $wgMaxSquidPurgeTitles = 400;
1192 /** HTCP multicast purging */
1193 $wgHTCPPort = 4827;
1194 $wgHTCPMulticastTTL = 1;
1195 # $wgHTCPMulticastAddress = "224.0.0.85";
1196 $wgHTCPMulticastAddress = false;
1198 # Cookie settings:
1201 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1202 * or ".any.subdomain.net"
1204 $wgCookieDomain = '';
1205 $wgCookiePath = '/';
1206 $wgCookieSecure = ($wgProto == 'https');
1207 $wgDisableCookieCheck = false;
1209 /** Override to customise the session name */
1210 $wgSessionName = false;
1212 /** Whether to allow inline image pointing to other websites */
1213 $wgAllowExternalImages = false;
1215 /** If the above is false, you can specify an exception here. Image URLs
1216 * that start with this string are then rendered, while all others are not.
1217 * You can use this to set up a trusted, simple repository of images.
1219 * Example:
1220 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1222 $wgAllowExternalImagesFrom = '';
1224 /** Disable database-intensive features */
1225 $wgMiserMode = false;
1226 /** Disable all query pages if miser mode is on, not just some */
1227 $wgDisableQueryPages = false;
1228 /** Number of rows to cache in 'querycache' table when miser mode is on */
1229 $wgQueryCacheLimit = 1000;
1230 /** Number of links to a page required before it is deemed "wanted" */
1231 $wgWantedPagesThreshold = 1;
1232 /** Enable slow parser functions */
1233 $wgAllowSlowParserFunctions = false;
1236 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1237 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1238 * (ImageMagick) installed and available in the PATH.
1239 * Please see math/README for more information.
1241 $wgUseTeX = false;
1242 /** Location of the texvc binary */
1243 $wgTexvc = './math/texvc';
1246 # Profiling / debugging
1248 # You have to create a 'profiling' table in your database before using
1249 # profiling see maintenance/archives/patch-profiling.sql .
1251 # To enable profiling, edit StartProfiler.php
1253 /** Only record profiling info for pages that took longer than this */
1254 $wgProfileLimit = 0.0;
1255 /** Don't put non-profiling info into log file */
1256 $wgProfileOnly = false;
1257 /** Log sums from profiling into "profiling" table in db. */
1258 $wgProfileToDatabase = false;
1259 /** If true, print a raw call tree instead of per-function report */
1260 $wgProfileCallTree = false;
1261 /** Should application server host be put into profiling table */
1262 $wgProfilePerHost = false;
1264 /** Settings for UDP profiler */
1265 $wgUDPProfilerHost = '127.0.0.1';
1266 $wgUDPProfilerPort = '3811';
1268 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1269 $wgDebugProfiling = false;
1270 /** Output debug message on every wfProfileIn/wfProfileOut */
1271 $wgDebugFunctionEntry = 0;
1272 /** Lots of debugging output from SquidUpdate.php */
1273 $wgDebugSquid = false;
1275 $wgDisableCounters = false;
1276 $wgDisableTextSearch = false;
1277 $wgDisableSearchContext = false;
1279 * If you've disabled search semi-permanently, this also disables updates to the
1280 * table. If you ever re-enable, be sure to rebuild the search table.
1282 $wgDisableSearchUpdate = false;
1283 /** Uploads have to be specially set up to be secure */
1284 $wgEnableUploads = false;
1286 * Show EXIF data, on by default if available.
1287 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1289 $wgShowEXIF = function_exists( 'exif_read_data' );
1292 * Set to true to enable the upload _link_ while local uploads are disabled.
1293 * Assumes that the special page link will be bounced to another server where
1294 * uploads do work.
1296 $wgRemoteUploads = false;
1297 $wgDisableAnonTalk = false;
1299 * Do DELETE/INSERT for link updates instead of incremental
1301 $wgUseDumbLinkUpdate = false;
1304 * Anti-lock flags - bitfield
1305 * ALF_PRELOAD_LINKS
1306 * Preload links during link update for save
1307 * ALF_PRELOAD_EXISTENCE
1308 * Preload cur_id during replaceLinkHolders
1309 * ALF_NO_LINK_LOCK
1310 * Don't use locking reads when updating the link table. This is
1311 * necessary for wikis with a high edit rate for performance
1312 * reasons, but may cause link table inconsistency
1313 * ALF_NO_BLOCK_LOCK
1314 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1315 * wikis.
1317 $wgAntiLockFlags = 0;
1320 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1321 * fall back to the old behaviour (no merging).
1323 $wgDiff3 = '/usr/bin/diff3';
1326 * We can also compress text in the old revisions table. If this is set on, old
1327 * revisions will be compressed on page save if zlib support is available. Any
1328 * compressed revisions will be decompressed on load regardless of this setting
1329 * *but will not be readable at all* if zlib support is not available.
1331 $wgCompressRevisions = false;
1334 * This is the list of preferred extensions for uploading files. Uploading files
1335 * with extensions not in this list will trigger a warning.
1337 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1339 /** Files with these extensions will never be allowed as uploads. */
1340 $wgFileBlacklist = array(
1341 # HTML may contain cookie-stealing JavaScript and web bugs
1342 'html', 'htm', 'js', 'jsb',
1343 # PHP scripts may execute arbitrary code on the server
1344 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1345 # Other types that may be interpreted by some servers
1346 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1347 # May contain harmful executables for Windows victims
1348 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1350 /** Files with these mime types will never be allowed as uploads
1351 * if $wgVerifyMimeType is enabled.
1353 $wgMimeTypeBlacklist= array(
1354 # HTML may contain cookie-stealing JavaScript and web bugs
1355 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1356 # PHP scripts may execute arbitrary code on the server
1357 'application/x-php', 'text/x-php',
1358 # Other types that may be interpreted by some servers
1359 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1360 # Windows metafile, client-side vulnerability on some systems
1361 'application/x-msmetafile'
1364 /** This is a flag to determine whether or not to check file extensions on upload. */
1365 $wgCheckFileExtensions = true;
1368 * If this is turned off, users may override the warning for files not covered
1369 * by $wgFileExtensions.
1371 $wgStrictFileExtensions = true;
1373 /** Warn if uploaded files are larger than this (in bytes)*/
1374 $wgUploadSizeWarning = 150 * 1024;
1376 /** For compatibility with old installations set to false */
1377 $wgPasswordSalt = true;
1379 /** Which namespaces should support subpages?
1380 * See Language.php for a list of namespaces.
1382 $wgNamespacesWithSubpages = array(
1383 NS_TALK => true,
1384 NS_USER => true,
1385 NS_USER_TALK => true,
1386 NS_PROJECT_TALK => true,
1387 NS_IMAGE_TALK => true,
1388 NS_MEDIAWIKI_TALK => true,
1389 NS_TEMPLATE_TALK => true,
1390 NS_HELP_TALK => true,
1391 NS_CATEGORY_TALK => true
1394 $wgNamespacesToBeSearchedDefault = array(
1395 NS_MAIN => true,
1398 /** If set, a bold ugly notice will show up at the top of every page. */
1399 $wgSiteNotice = '';
1403 # Images settings
1406 /** dynamic server side image resizing ("Thumbnails") */
1407 $wgUseImageResize = false;
1410 * Resizing can be done using PHP's internal image libraries or using
1411 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1412 * These support more file formats than PHP, which only supports PNG,
1413 * GIF, JPG, XBM and WBMP.
1415 * Use Image Magick instead of PHP builtin functions.
1417 $wgUseImageMagick = false;
1418 /** The convert command shipped with ImageMagick */
1419 $wgImageMagickConvertCommand = '/usr/bin/convert';
1422 * Use another resizing converter, e.g. GraphicMagick
1423 * %s will be replaced with the source path, %d with the destination
1424 * %w and %h will be replaced with the width and height
1426 * An example is provided for GraphicMagick
1427 * Leave as false to skip this
1429 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1430 $wgCustomConvertCommand = false;
1432 # Scalable Vector Graphics (SVG) may be uploaded as images.
1433 # Since SVG support is not yet standard in browsers, it is
1434 # necessary to rasterize SVGs to PNG as a fallback format.
1436 # An external program is required to perform this conversion:
1437 $wgSVGConverters = array(
1438 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1439 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1440 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1441 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1442 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1444 /** Pick one of the above */
1445 $wgSVGConverter = 'ImageMagick';
1446 /** If not in the executable PATH, specify */
1447 $wgSVGConverterPath = '';
1448 /** Don't scale a SVG larger than this */
1449 $wgSVGMaxSize = 1024;
1451 * Don't thumbnail an image if it will use too much working memory
1452 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1453 * 12.5 million pixels or 3500x3500
1455 $wgMaxImageArea = 1.25e7;
1457 * If rendered thumbnail files are older than this timestamp, they
1458 * will be rerendered on demand as if the file didn't already exist.
1459 * Update if there is some need to force thumbs and SVG rasterizations
1460 * to rerender, such as fixes to rendering bugs.
1462 $wgThumbnailEpoch = '20030516000000';
1465 * If set, inline scaled images will still produce <img> tags ready for
1466 * output instead of showing an error message.
1468 * This may be useful if errors are transitory, especially if the site
1469 * is configured to automatically render thumbnails on request.
1471 * On the other hand, it may obscure error conditions from debugging.
1472 * Enable the debug log or the 'thumbnail' log group to make sure errors
1473 * are logged to a file for review.
1475 $wgIgnoreImageErrors = false;
1478 * Allow thumbnail rendering on page view. If this is false, a valid
1479 * thumbnail URL is still output, but no file will be created at
1480 * the target location. This may save some time if you have a
1481 * thumb.php or 404 handler set up which is faster than the regular
1482 * webserver(s).
1484 $wgGenerateThumbnailOnParse = true;
1486 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1487 if( !isset( $wgCommandLineMode ) ) {
1488 $wgCommandLineMode = false;
1493 # Recent changes settings
1496 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1497 $wgPutIPinRC = true;
1500 * Recentchanges items are periodically purged; entries older than this many
1501 * seconds will go.
1502 * For one week : 7 * 24 * 3600
1504 $wgRCMaxAge = 7 * 24 * 3600;
1507 # Send RC updates via UDP
1508 $wgRC2UDPAddress = false;
1509 $wgRC2UDPPort = false;
1510 $wgRC2UDPPrefix = '';
1513 # Copyright and credits settings
1516 /** RDF metadata toggles */
1517 $wgEnableDublinCoreRdf = false;
1518 $wgEnableCreativeCommonsRdf = false;
1520 /** Override for copyright metadata.
1521 * TODO: these options need documentation
1523 $wgRightsPage = NULL;
1524 $wgRightsUrl = NULL;
1525 $wgRightsText = NULL;
1526 $wgRightsIcon = NULL;
1528 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1529 $wgCopyrightIcon = NULL;
1531 /** Set this to true if you want detailed copyright information forms on Upload. */
1532 $wgUseCopyrightUpload = false;
1534 /** Set this to false if you want to disable checking that detailed copyright
1535 * information values are not empty. */
1536 $wgCheckCopyrightUpload = true;
1539 * Set this to the number of authors that you want to be credited below an
1540 * article text. Set it to zero to hide the attribution block, and a negative
1541 * number (like -1) to show all authors. Note that this will require 2-3 extra
1542 * database hits, which can have a not insignificant impact on performance for
1543 * large wikis.
1545 $wgMaxCredits = 0;
1547 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1548 * Otherwise, link to a separate credits page. */
1549 $wgShowCreditsIfMax = true;
1554 * Set this to false to avoid forcing the first letter of links to capitals.
1555 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1556 * appearing with a capital at the beginning of a sentence will *not* go to the
1557 * same place as links in the middle of a sentence using a lowercase initial.
1559 $wgCapitalLinks = true;
1562 * List of interwiki prefixes for wikis we'll accept as sources for
1563 * Special:Import (for sysops). Since complete page history can be imported,
1564 * these should be 'trusted'.
1566 * If a user has the 'import' permission but not the 'importupload' permission,
1567 * they will only be able to run imports through this transwiki interface.
1569 $wgImportSources = array();
1572 * Optional default target namespace for interwiki imports.
1573 * Can use this to create an incoming "transwiki"-style queue.
1574 * Set to numeric key, not the name.
1576 * Users may override this in the Special:Import dialog.
1578 $wgImportTargetNamespace = null;
1581 * If set to false, disables the full-history option on Special:Export.
1582 * This is currently poorly optimized for long edit histories, so is
1583 * disabled on Wikimedia's sites.
1585 $wgExportAllowHistory = true;
1588 * If set nonzero, Special:Export requests for history of pages with
1589 * more revisions than this will be rejected. On some big sites things
1590 * could get bogged down by very very long pages.
1592 $wgExportMaxHistory = 0;
1594 $wgExportAllowListContributors = false ;
1597 /** Text matching this regular expression will be recognised as spam
1598 * See http://en.wikipedia.org/wiki/Regular_expression */
1599 $wgSpamRegex = false;
1600 /** Similarly if this function returns true */
1601 $wgFilterCallback = false;
1603 /** Go button goes straight to the edit screen if the article doesn't exist. */
1604 $wgGoToEdit = false;
1606 /** Allow limited user-specified HTML in wiki pages?
1607 * It will be run through a whitelist for security. Set this to false if you
1608 * want wiki pages to consist only of wiki markup. Note that replacements do not
1609 * yet exist for all HTML constructs.*/
1610 $wgUserHtml = true;
1612 /** Allow raw, unchecked HTML in <html>...</html> sections.
1613 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1614 * TO RESTRICT EDITING to only those that you trust
1616 $wgRawHtml = false;
1619 * $wgUseTidy: use tidy to make sure HTML output is sane.
1620 * This should only be enabled if $wgUserHtml is true.
1621 * tidy is a free tool that fixes broken HTML.
1622 * See http://www.w3.org/People/Raggett/tidy/
1623 * $wgTidyBin should be set to the path of the binary and
1624 * $wgTidyConf to the path of the configuration file.
1625 * $wgTidyOpts can include any number of parameters.
1627 * $wgTidyInternal controls the use of the PECL extension to use an in-
1628 * process tidy library instead of spawning a separate program.
1629 * Normally you shouldn't need to override the setting except for
1630 * debugging. To install, use 'pear install tidy' and add a line
1631 * 'extension=tidy.so' to php.ini.
1633 $wgUseTidy = false;
1634 $wgAlwaysUseTidy = false;
1635 $wgTidyBin = 'tidy';
1636 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1637 $wgTidyOpts = '';
1638 $wgTidyInternal = function_exists( 'tidy_load_config' );
1640 /** See list of skins and their symbolic names in languages/Language.php */
1641 $wgDefaultSkin = 'monobook';
1644 * Settings added to this array will override the default globals for the user
1645 * preferences used by anonymous visitors and newly created accounts.
1646 * For instance, to disable section editing links:
1647 *  $wgDefaultUserOptions ['editsection'] = 0;
1650 $wgDefaultUserOptions = array(
1651 'quickbar' => 1,
1652 'underline' => 2,
1653 'cols' => 80,
1654 'rows' => 25,
1655 'searchlimit' => 20,
1656 'contextlines' => 5,
1657 'contextchars' => 50,
1658 'skin' => false,
1659 'math' => 1,
1660 'rcdays' => 7,
1661 'rclimit' => 50,
1662 'wllimit' => 250,
1663 'highlightbroken' => 1,
1664 'stubthreshold' => 0,
1665 'previewontop' => 1,
1666 'editsection' => 1,
1667 'editsectiononrightclick'=> 0,
1668 'showtoc' => 1,
1669 'showtoolbar' => 1,
1670 'date' => 'default',
1671 'imagesize' => 2,
1672 'thumbsize' => 2,
1673 'rememberpassword' => 0,
1674 'enotifwatchlistpages' => 0,
1675 'enotifusertalkpages' => 1,
1676 'enotifminoredits' => 0,
1677 'enotifrevealaddr' => 0,
1678 'shownumberswatching' => 1,
1679 'fancysig' => 0,
1680 'externaleditor' => 0,
1681 'externaldiff' => 0,
1682 'showjumplinks' => 1,
1683 'numberheadings' => 0,
1684 'uselivepreview' => 0,
1685 'watchlistdays' => 3.0,
1688 /** Whether or not to allow and use real name fields. Defaults to true. */
1689 $wgAllowRealName = true;
1691 /*****************************************************************************
1692 * Extensions
1696 * A list of callback functions which are called once MediaWiki is fully initialised
1698 $wgExtensionFunctions = array();
1701 * Extension functions for initialisation of skins. This is called somewhat earlier
1702 * than $wgExtensionFunctions.
1704 $wgSkinExtensionFunctions = array();
1707 * List of valid skin names.
1708 * The key should be the name in all lower case, the value should be a display name.
1709 * The default skins will be added later, by Skin::getSkinNames(). Use
1710 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
1712 $wgValidSkinNames = array();
1715 * Special page list.
1716 * See the top of SpecialPage.php for documentation.
1718 $wgSpecialPages = array();
1721 * Array mapping class names to filenames, for autoloading.
1723 $wgAutoloadClasses = array();
1726 * An array of extension types and inside that their names, versions, authors
1727 * and urls, note that the version and url key can be omitted.
1729 * <code>
1730 * $wgExtensionCredits[$type][] = array(
1731 * 'name' => 'Example extension',
1732 * 'version' => 1.9,
1733 * 'author' => 'Foo Barstein',
1734 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1735 * );
1736 * </code>
1738 * Where $type is 'specialpage', 'parserhook', or 'other'.
1740 $wgExtensionCredits = array();
1742 * end extensions
1743 ******************************************************************************/
1746 * Allow user Javascript page?
1747 * This enables a lot of neat customizations, but may
1748 * increase security risk to users and server load.
1750 $wgAllowUserJs = false;
1753 * Allow user Cascading Style Sheets (CSS)?
1754 * This enables a lot of neat customizations, but may
1755 * increase security risk to users and server load.
1757 $wgAllowUserCss = false;
1759 /** Use the site's Javascript page? */
1760 $wgUseSiteJs = true;
1762 /** Use the site's Cascading Style Sheets (CSS)? */
1763 $wgUseSiteCss = true;
1765 /** Filter for Special:Randompage. Part of a WHERE clause */
1766 $wgExtraRandompageSQL = false;
1768 /** Allow the "info" action, very inefficient at the moment */
1769 $wgAllowPageInfo = false;
1771 /** Maximum indent level of toc. */
1772 $wgMaxTocLevel = 999;
1774 /** Name of the external diff engine to use */
1775 $wgExternalDiffEngine = false;
1777 /** Use RC Patrolling to check for vandalism */
1778 $wgUseRCPatrol = true;
1780 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1781 * eg Recentchanges, Newpages. */
1782 $wgFeedLimit = 50;
1784 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1785 * A cached version will continue to be served out even if changes
1786 * are made, until this many seconds runs out since the last render.
1788 * If set to 0, feed caching is disabled. Use this for debugging only;
1789 * feed generation can be pretty slow with diffs.
1791 $wgFeedCacheTimeout = 60;
1793 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1794 * pages larger than this size. */
1795 $wgFeedDiffCutoff = 32768;
1799 * Additional namespaces. If the namespaces defined in Language.php and
1800 * Namespace.php are insufficient, you can create new ones here, for example,
1801 * to import Help files in other languages.
1802 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1803 * no longer be accessible. If you rename it, then you can access them through
1804 * the new namespace name.
1806 * Custom namespaces should start at 100 to avoid conflicting with standard
1807 * namespaces, and should always follow the even/odd main/talk pattern.
1809 #$wgExtraNamespaces =
1810 # array(100 => "Hilfe",
1811 # 101 => "Hilfe_Diskussion",
1812 # 102 => "Aide",
1813 # 103 => "Discussion_Aide"
1814 # );
1815 $wgExtraNamespaces = NULL;
1818 * Limit images on image description pages to a user-selectable limit. In order
1819 * to reduce disk usage, limits can only be selected from a list. This is the
1820 * list of settings the user can choose from:
1822 $wgImageLimits = array (
1823 array(320,240),
1824 array(640,480),
1825 array(800,600),
1826 array(1024,768),
1827 array(1280,1024),
1828 array(10000,10000) );
1831 * Adjust thumbnails on image pages according to a user setting. In order to
1832 * reduce disk usage, the values can only be selected from a list. This is the
1833 * list of settings the user can choose from:
1835 $wgThumbLimits = array(
1836 120,
1837 150,
1838 180,
1839 200,
1840 250,
1845 * On category pages, show thumbnail gallery for images belonging to that
1846 * category instead of listing them as articles.
1848 $wgCategoryMagicGallery = true;
1851 * Paging limit for categories
1853 $wgCategoryPagingLimit = 200;
1856 * Browser Blacklist for unicode non compliant browsers
1857 * Contains a list of regexps : "/regexp/" matching problematic browsers
1859 $wgBrowserBlackList = array(
1861 * Netscape 2-4 detection
1862 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
1863 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
1864 * with a negative assertion. The [UIN] identifier specifies the level of security
1865 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
1866 * The language string is unreliable, it is missing on NS4 Mac.
1868 * Reference: http://www.psychedelix.com/agents/index.shtml
1870 '/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1871 '/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1872 '/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1875 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1877 * Known useragents:
1878 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1879 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1880 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1881 * - [...]
1883 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1884 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1886 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/'
1890 * Fake out the timezone that the server thinks it's in. This will be used for
1891 * date display and not for what's stored in the DB. Leave to null to retain
1892 * your server's OS-based timezone value. This is the same as the timezone.
1894 * This variable is currently used ONLY for signature formatting, not for
1895 * anything else.
1897 # $wgLocaltimezone = 'GMT';
1898 # $wgLocaltimezone = 'PST8PDT';
1899 # $wgLocaltimezone = 'Europe/Sweden';
1900 # $wgLocaltimezone = 'CET';
1901 $wgLocaltimezone = null;
1904 * Set an offset from UTC in minutes to use for the default timezone setting
1905 * for anonymous users and new user accounts.
1907 * This setting is used for most date/time displays in the software, and is
1908 * overrideable in user preferences. It is *not* used for signature timestamps.
1910 * You can set it to match the configured server timezone like this:
1911 * $wgLocalTZoffset = date("Z") / 60;
1913 * If your server is not configured for the timezone you want, you can set
1914 * this in conjunction with the signature timezone and override the TZ
1915 * environment variable like so:
1916 * $wgLocaltimezone="Europe/Berlin";
1917 * putenv("TZ=$wgLocaltimezone");
1918 * $wgLocalTZoffset = date("Z") / 60;
1920 * Leave at NULL to show times in universal time (UTC/GMT).
1922 $wgLocalTZoffset = null;
1926 * When translating messages with wfMsg(), it is not always clear what should be
1927 * considered UI messages and what shoud be content messages.
1929 * For example, for regular wikipedia site like en, there should be only one
1930 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1931 * it as content of the site and call wfMsgForContent(), while for rendering the
1932 * text of the link, we call wfMsg(). The code in default behaves this way.
1933 * However, sites like common do offer different versions of 'mainpage' and the
1934 * like for different languages. This array provides a way to override the
1935 * default behavior. For example, to allow language specific mainpage and
1936 * community portal, set
1938 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1940 $wgForceUIMsgAsContentMsg = array();
1944 * Authentication plugin.
1946 $wgAuth = null;
1949 * Global list of hooks.
1950 * Add a hook by doing:
1951 * $wgHooks['event_name'][] = $function;
1952 * or:
1953 * $wgHooks['event_name'][] = array($function, $data);
1954 * or:
1955 * $wgHooks['event_name'][] = array($object, 'method');
1957 $wgHooks = array();
1960 * The logging system has two levels: an event type, which describes the
1961 * general category and can be viewed as a named subset of all logs; and
1962 * an action, which is a specific kind of event that can exist in that
1963 * log type.
1965 $wgLogTypes = array( '',
1966 'block',
1967 'protect',
1968 'rights',
1969 'delete',
1970 'upload',
1971 'move',
1972 'import' );
1975 * Lists the message key string for each log type. The localized messages
1976 * will be listed in the user interface.
1978 * Extensions with custom log types may add to this array.
1980 $wgLogNames = array(
1981 '' => 'log',
1982 'block' => 'blocklogpage',
1983 'protect' => 'protectlogpage',
1984 'rights' => 'rightslog',
1985 'delete' => 'dellogpage',
1986 'upload' => 'uploadlogpage',
1987 'move' => 'movelogpage',
1988 'import' => 'importlogpage' );
1991 * Lists the message key string for descriptive text to be shown at the
1992 * top of each log type.
1994 * Extensions with custom log types may add to this array.
1996 $wgLogHeaders = array(
1997 '' => 'alllogstext',
1998 'block' => 'blocklogtext',
1999 'protect' => 'protectlogtext',
2000 'rights' => 'rightslogtext',
2001 'delete' => 'dellogpagetext',
2002 'upload' => 'uploadlogpagetext',
2003 'move' => 'movelogpagetext',
2004 'import' => 'importlogpagetext', );
2007 * Lists the message key string for formatting individual events of each
2008 * type and action when listed in the logs.
2010 * Extensions with custom log types may add to this array.
2012 $wgLogActions = array(
2013 'block/block' => 'blocklogentry',
2014 'block/unblock' => 'unblocklogentry',
2015 'protect/protect' => 'protectedarticle',
2016 'protect/unprotect' => 'unprotectedarticle',
2017 'rights/rights' => 'rightslogentry',
2018 'delete/delete' => 'deletedarticle',
2019 'delete/restore' => 'undeletedarticle',
2020 'delete/revision' => 'revdelete-logentry',
2021 'upload/upload' => 'uploadedimage',
2022 'upload/revert' => 'uploadedimage',
2023 'move/move' => '1movedto2',
2024 'move/move_redir' => '1movedto2_redir',
2025 'import/upload' => 'import-logentry-upload',
2026 'import/interwiki' => 'import-logentry-interwiki' );
2029 * Experimental preview feature to fetch rendered text
2030 * over an XMLHttpRequest from JavaScript instead of
2031 * forcing a submit and reload of the whole page.
2032 * Leave disabled unless you're testing it.
2034 $wgLivePreview = false;
2037 * Disable the internal MySQL-based search, to allow it to be
2038 * implemented by an extension instead.
2040 $wgDisableInternalSearch = false;
2043 * Set this to a URL to forward search requests to some external location.
2044 * If the URL includes '$1', this will be replaced with the URL-encoded
2045 * search term.
2047 * For example, to forward to Google you'd have something like:
2048 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2049 * '&domains=http://example.com' .
2050 * '&sitesearch=http://example.com' .
2051 * '&ie=utf-8&oe=utf-8';
2053 $wgSearchForwardUrl = null;
2056 * If true, external URL links in wiki text will be given the
2057 * rel="nofollow" attribute as a hint to search engines that
2058 * they should not be followed for ranking purposes as they
2059 * are user-supplied and thus subject to spamming.
2061 $wgNoFollowLinks = true;
2064 * Namespaces in which $wgNoFollowLinks doesn't apply.
2065 * See Language.php for a list of namespaces.
2067 $wgNoFollowNsExceptions = array();
2070 * Robot policies per namespaces.
2071 * The default policy is 'index,follow', the array is made of namespace
2072 * constants as defined in includes/Defines.php
2073 * Example:
2074 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2076 $wgNamespaceRobotPolicies = array();
2079 * Specifies the minimal length of a user password. If set to
2080 * 0, empty passwords are allowed.
2082 $wgMinimalPasswordLength = 0;
2085 * Activate external editor interface for files and pages
2086 * See http://meta.wikimedia.org/wiki/Help:External_editors
2088 $wgUseExternalEditor = true;
2090 /** Whether or not to sort special pages in Special:Specialpages */
2092 $wgSortSpecialPages = true;
2095 * Specify the name of a skin that should not be presented in the
2096 * list of available skins.
2097 * Use for blacklisting a skin which you do not want to remove
2098 * from the .../skins/ directory
2100 $wgSkipSkin = '';
2101 $wgSkipSkins = array(); # More of the same
2104 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2106 $wgDisabledActions = array();
2109 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2111 $wgDisableHardRedirects = false;
2114 * Use http.dnsbl.sorbs.net to check for open proxies
2116 $wgEnableSorbs = false;
2117 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2120 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2121 * methods might say
2123 $wgProxyWhitelist = array();
2126 * Simple rate limiter options to brake edit floods.
2127 * Maximum number actions allowed in the given number of seconds;
2128 * after that the violating client receives HTTP 500 error pages
2129 * until the period elapses.
2131 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2133 * This option set is experimental and likely to change.
2134 * Requires memcached.
2136 $wgRateLimits = array(
2137 'edit' => array(
2138 'anon' => null, // for any and all anonymous edits (aggregate)
2139 'user' => null, // for each logged-in user
2140 'newbie' => null, // for each recent account; overrides 'user'
2141 'ip' => null, // for each anon and recent account
2142 'subnet' => null, // ... with final octet removed
2144 'move' => array(
2145 'user' => null,
2146 'newbie' => null,
2147 'ip' => null,
2148 'subnet' => null,
2150 'mailpassword' => array(
2151 'anon' => NULL,
2156 * Set to a filename to log rate limiter hits.
2158 $wgRateLimitLog = null;
2161 * Array of groups which should never trigger the rate limiter
2163 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2166 * On Special:Unusedimages, consider images "used", if they are put
2167 * into a category. Default (false) is not to count those as used.
2169 $wgCountCategorizedImagesAsUsed = false;
2172 * External stores allow including content
2173 * from non database sources following URL links
2175 * Short names of ExternalStore classes may be specified in an array here:
2176 * $wgExternalStores = array("http","file","custom")...
2178 * CAUTION: Access to database might lead to code execution
2180 $wgExternalStores = false;
2183 * An array of external mysql servers, e.g.
2184 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2186 $wgExternalServers = array();
2189 * The place to put new revisions, false to put them in the local text table.
2190 * Part of a URL, e.g. DB://cluster1
2192 * Can be an array instead of a single string, to enable data distribution. Keys
2193 * must be consecutive integers, starting at zero. Example:
2195 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2198 $wgDefaultExternalStore = false;
2201 * Revision text may be cached in $wgMemc to reduce load on external storage
2202 * servers and object extraction overhead for frequently-loaded revisions.
2204 * Set to 0 to disable, or number of seconds before cache expiry.
2206 $wgRevisionCacheExpiry = 0;
2209 * list of trusted media-types and mime types.
2210 * Use the MEDIATYPE_xxx constants to represent media types.
2211 * This list is used by Image::isSafeFile
2213 * Types not listed here will have a warning about unsafe content
2214 * displayed on the images description page. It would also be possible
2215 * to use this for further restrictions, like disabling direct
2216 * [[media:...]] links for non-trusted formats.
2218 $wgTrustedMediaFormats= array(
2219 MEDIATYPE_BITMAP, //all bitmap formats
2220 MEDIATYPE_AUDIO, //all audio formats
2221 MEDIATYPE_VIDEO, //all plain video formats
2222 "image/svg", //svg (only needed if inline rendering of svg is not supported)
2223 "application/pdf", //PDF files
2224 #"application/x-shockwafe-flash", //flash/shockwave movie
2228 * Allow special page inclusions such as {{Special:Allpages}}
2230 $wgAllowSpecialInclusion = true;
2233 * Timeout for HTTP requests done via CURL
2235 $wgHTTPTimeout = 3;
2238 * Proxy to use for CURL requests.
2240 $wgHTTPProxy = false;
2243 * Enable interwiki transcluding. Only when iw_trans=1.
2245 $wgEnableScaryTranscluding = false;
2247 * Expiry time for interwiki transclusion
2249 $wgTranscludeCacheExpiry = 3600;
2252 * Support blog-style "trackbacks" for articles. See
2253 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2255 $wgUseTrackbacks = false;
2258 * Enable filtering of categories in Recentchanges
2260 $wgAllowCategorizedRecentChanges = false ;
2263 * Number of jobs to perform per request. May be less than one in which case
2264 * jobs are performed probabalistically. If this is zero, jobs will not be done
2265 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2266 * be run periodically.
2268 $wgJobRunRate = 1;
2271 * Number of rows to update per job
2273 $wgUpdateRowsPerJob = 500;
2276 * Number of rows to update per query
2278 $wgUpdateRowsPerQuery = 10;
2281 * Enable AJAX framework
2283 $wgUseAjax = false;
2286 * Enable auto suggestion for the search bar
2287 * Requires $wgUseAjax to be true too.
2288 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2290 $wgAjaxSearch = false;
2293 * List of Ajax-callable functions.
2294 * Extensions acting as Ajax callbacks must register here
2296 $wgAjaxExportList = array( );
2299 * Enable watching/unwatching pages using AJAX.
2300 * Requires $wgUseAjax to be true too.
2301 * Causes wfAjaxWatch to be added to $wgAjaxExportList
2303 $wgAjaxWatch = false;
2306 * Allow DISPLAYTITLE to change title display
2308 $wgAllowDisplayTitle = false ;
2311 * Array of usernames which may not be registered or logged in from
2312 * Maintenance scripts can still use these
2314 $wgReservedUsernames = array( 'MediaWiki default', 'Conversion script', 'Maintenance script' );
2317 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
2318 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
2319 * crap files as images. When this directive is on, <title> will be allowed in files with
2320 * an "image/svg" MIME type. You should leave this disabled if your web server is misconfigured
2321 * and doesn't send appropriate MIME types for SVG images.
2323 $wgAllowTitlesInSVG = false;
2326 * Array of namespaces which can be deemed to contain valid "content", as far
2327 * as the site statistics are concerned. Useful if additional namespaces also
2328 * contain "content" which should be considered when generating a count of the
2329 * number of articles in the wiki.
2331 $wgContentNamespaces = array( NS_MAIN );
2334 * Maximum amount of virtual memory available to shell processes under linux, in KB.
2336 $wgMaxShellMemory = 102400;
2339 * Maximum file size created by shell processes under linux, in KB
2340 * ImageMagick convert for example can be fairly hungry for scratch space
2342 $wgMaxShellFileSize = 102400;
2345 * DJVU settings
2346 * Path of the djvutoxml executable
2347 * Enable this and $wgDjvuRenderer to enable djvu rendering
2349 # $wgDjvuToXML = 'djvutoxml';
2350 $wgDjvuToXML = null;
2353 * Path of the ddjvu DJVU renderer
2354 * Enable this and $wgDjvuToXML to enable djvu rendering
2356 # $wgDjvuRenderer = 'ddjvu';
2357 $wgDjvuRenderer = null;
2360 * Path of the DJVU post processor
2361 * May include command line options
2362 * Default: ppmtojpeg, since ddjvu generates ppm output
2364 $wgDjvuPostProcessor = 'ppmtojpeg';
2367 * Enable direct access to the data API
2368 * through api.php
2370 $wgEnableAPI = true;
2371 $wgEnableWriteAPI = false;
2374 * Parser test suite files to be run by parserTests.php when no specific
2375 * filename is passed to it.
2377 * Extensions may add their own tests to this array, or site-local tests
2378 * may be added via LocalSettings.php
2380 * Use full paths.
2382 $wgParserTestFiles = array(
2383 "$IP/maintenance/parserTests.txt",
2387 * Break out of framesets. This can be used to prevent external sites from
2388 * framing your site with ads.
2390 $wgBreakFrames = false;
2393 * Set this to an array of special page names to prevent
2394 * maintenance/updateSpecialPages.php from updating those pages.
2396 $wgDisableQueryPageUpdate = false;