32e9906b562a2ed8656e5b05a5add507cd2189ac
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
15 * Documentation is in the source and on:
16 * http://www.mediawiki.org/wiki/Manual:Configuration_settings
20 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
21 if( !defined( 'MEDIAWIKI' ) ) {
22 echo "This file is part of MediaWiki and is not a valid entry point\n";
27 * Create a site configuration object
28 * Not used for much in a default install
30 require_once( "$IP/includes/SiteConfiguration.php" );
31 $wgConf = new SiteConfiguration
;
33 /** MediaWiki version number */
34 $wgVersion = '1.13alpha';
36 /** Name of the site. It must be changed in LocalSettings.php */
37 $wgSitename = 'MediaWiki';
40 * Name of the project namespace. If left set to false, $wgSitename will be
43 $wgMetaNamespace = false;
46 * Name of the project talk namespace. If left set to false, a name derived
47 * from the name of the project namespace will be used.
49 $wgMetaNamespaceTalk = false;
52 /** URL of the server. It will be automatically built including https mode */
55 if( isset( $_SERVER['SERVER_NAME'] ) ) {
56 $wgServerName = $_SERVER['SERVER_NAME'];
57 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
58 $wgServerName = $_SERVER['HOSTNAME'];
59 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
60 $wgServerName = $_SERVER['HTTP_HOST'];
61 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
62 $wgServerName = $_SERVER['SERVER_ADDR'];
64 $wgServerName = 'localhost';
67 # check if server use https:
68 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
70 $wgServer = $wgProto.'://' . $wgServerName;
71 # If the port is a non-standard one, add it to the URL
72 if( isset( $_SERVER['SERVER_PORT'] )
73 && !strpos( $wgServerName, ':' )
74 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
75 ||
( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
77 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
82 * The path we should point to.
83 * It might be a virtual path in case with use apache mod_rewrite for example
85 * This *needs* to be set correctly.
87 * Other paths will be set to defaults based on it unless they are directly
88 * set in LocalSettings.php
90 $wgScriptPath = '/wiki';
93 * Whether to support URLs like index.php/Page_title
94 * These often break when PHP is set up in CGI mode.
95 * PATH_INFO *may* be correct if cgi.fix_pathinfo is
96 * set, but then again it may not; lighttpd converts
97 * incoming path data to lowercase on systems with
98 * case-insensitive filesystems, and there have been
99 * reports of problems on Apache as well.
101 * To be safe we'll continue to keep it off by default.
103 * Override this to false if $_SERVER['PATH_INFO']
104 * contains unexpectedly incorrect garbage, or to
105 * true if it is really correct.
107 * The default $wgArticlePath will be set based on
108 * this value at runtime, but if you have customized
109 * it, having this incorrectly set to true can
110 * cause redirect loops when "pretty URLs" are used.
114 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
115 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
116 ( strpos( php_sapi_name(), 'isapi' ) === false );
120 * Script users will request to get articles
121 * ATTN: Old installations used wiki.phtml and redirect.phtml -
122 * make sure that LocalSettings.php is correctly set!
124 * Will be set based on $wgScriptPath in Setup.php if not overridden
125 * in LocalSettings.php. Generally you should not need to change this
126 * unless you don't like seeing "index.php".
128 $wgScriptExtension = '.php'; /// extension to append to script names by default
129 $wgScript = false; /// defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
130 $wgRedirectScript = false; /// defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
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.
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 $wgAppleTouchIcon = false; /// This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
161 $wgMathPath = false; /// defaults to "{$wgUploadPath}/math"
162 $wgMathDirectory = false; /// defaults to "{$wgUploadDirectory}/math"
163 $wgTmpDirectory = false; /// defaults to "{$wgUploadDirectory}/tmp"
164 $wgUploadBaseUrl = "";
168 * New file storage paths; currently used only for deleted files.
171 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
174 $wgFileStore = array();
175 $wgFileStore['deleted']['directory'] = false;// Defaults to $wgUploadDirectory/deleted
176 $wgFileStore['deleted']['url'] = null; // Private
177 $wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split
180 * File repository structures
182 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
183 * a an array of such structures. Each repository structure is an associative
184 * array of properties configuring the repository.
186 * Properties required for all repos:
187 * class The class name for the repository. May come from the core or an extension.
188 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
190 * name A unique name for the repository.
192 * For all core repos:
193 * url Base public URL
194 * hashLevels The number of directory levels for hash-based division of files
195 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
196 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
198 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
199 * start with a capital letter. The current implementation may give incorrect
200 * description page links when the local $wgCapitalLinks and initialCapital
202 * pathDisclosureProtection
203 * May be 'paranoid' to remove all parameters from error messages, 'none' to
204 * leave the paths in unchanged, or 'simple' to replace paths with
205 * placeholders. Default for LocalRepo is 'simple'.
207 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
208 * for local repositories:
209 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
210 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
211 * http://en.wikipedia.org/w
213 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
214 * fetchDescription Fetch the text of the remote file description page. Equivalent to
215 * $wgFetchCommonsDescriptions.
218 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
219 * equivalent to the corresponding member of $wgDBservers
220 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
221 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
223 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
224 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
226 $wgLocalFileRepo = false;
227 $wgForeignFileRepos = array();
231 * Allowed title characters -- regex character class
232 * Don't change this unless you know what you're doing
234 * Problematic punctuation:
235 * []{}|# Are needed for link syntax, never enable these
236 * <> Causes problems with HTML escaping, don't use
237 * % Enabled by default, minor problems with path to query rewrite rules, see below
238 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
239 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
241 * All three of these punctuation problems can be avoided by using an alias, instead of a
242 * rewrite rule of either variety.
244 * The problem with % is that when using a path to query rewrite rule, URLs are
245 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
246 * %253F, for example, becomes "?". Our code does not double-escape to compensate
247 * for this, indeed double escaping would break if the double-escaped title was
248 * passed in the query string rather than the path. This is a minor security issue
249 * because articles can be created such that they are hard to view or edit.
251 * In some rare cases you may wish to remove + for compatibility with old links.
253 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
254 * this breaks interlanguage links
256 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
260 * The external URL protocols
262 $wgUrlProtocols = array(
268 'telnet://', // Well if we're going to support the above.. -ævar
269 'nntp://', // @bug 3808 RFC 1738
275 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
276 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
277 * @global string $wgAntivirus
281 /** Configuration for different virus scanners. This an associative array of associative arrays:
282 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
283 * valid values for $wgAntivirus are the keys defined in this array.
285 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
287 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
288 * file to scan. If not present, the filename will be appended to the command. Note that this must be
289 * overwritten if the scanner is not in the system path; in that case, plase set
290 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
292 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
293 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
294 * the file if $wgAntivirusRequired is not set.
295 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
296 * which is probably imune to virusses. This causes the file to pass.
297 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
298 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
299 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
301 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
302 * output. The relevant part should be matched as group one (\1).
303 * If not defined or the pattern does not match, the full message is shown to the user.
305 * @global array $wgAntivirusSetup
307 $wgAntivirusSetup = array(
311 'command' => "clamscan --no-summary ",
314 "0" => AV_NO_VIRUS
, # no virus
315 "1" => AV_VIRUS_FOUND
, # virus found
316 "52" => AV_SCAN_ABORTED
, # unsupported file format (probably imune)
317 "*" => AV_SCAN_FAILED
, # else scan failed
320 'messagepattern' => '/.*?:(.*)/sim',
325 'command' => "f-prot ",
328 "0" => AV_NO_VIRUS
, # no virus
329 "3" => AV_VIRUS_FOUND
, # virus found
330 "6" => AV_VIRUS_FOUND
, # virus found
331 "*" => AV_SCAN_FAILED
, # else scan failed
334 'messagepattern' => '/.*?Infection:(.*)$/m',
339 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
340 * @global boolean $wgAntivirusRequired
342 $wgAntivirusRequired= true;
344 /** Determines if the mime type of uploaded files should be checked
345 * @global boolean $wgVerifyMimeType
347 $wgVerifyMimeType= true;
349 /** Sets the mime type definition file to use by MimeMagic.php.
350 * @global string $wgMimeTypeFile
352 $wgMimeTypeFile= "includes/mime.types";
353 #$wgMimeTypeFile= "/etc/mime.types";
354 #$wgMimeTypeFile= NULL; #use built-in defaults only.
356 /** Sets the mime type info file to use by MimeMagic.php.
357 * @global string $wgMimeInfoFile
359 $wgMimeInfoFile= "includes/mime.info";
360 #$wgMimeInfoFile= NULL; #use built-in defaults only.
362 /** Switch for loading the FileInfo extension by PECL at runtime.
363 * This should be used only if fileinfo is installed as a shared object
364 * or a dynamic libary
365 * @global string $wgLoadFileinfoExtension
367 $wgLoadFileinfoExtension= false;
369 /** Sets an external mime detector program. The command must print only
370 * the mime type to standard output.
371 * The name of the file to process will be appended to the command given here.
372 * If not set or NULL, mime_content_type will be used if available.
374 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
375 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
377 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
378 * things, because only a few types of images are needed and file extensions
381 $wgTrivialMimeDetection= false;
384 * To set 'pretty' URL paths for actions other than
385 * plain page views, add to this array. For instance:
386 * 'edit' => "$wgScriptPath/edit/$1"
388 * There must be an appropriate script or rewrite rule
389 * in place to handle these URLs.
391 $wgActionPaths = array();
394 * If you operate multiple wikis, you can define a shared upload path here.
395 * Uploads to this wiki will NOT be put there - they will be put into
396 * $wgUploadDirectory.
397 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
398 * no file of the given name is found in the local repository (for [[Image:..]],
399 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
402 * Note that these configuration settings can now be defined on a per-
403 * repository basis for an arbitrary number of file repositories, using the
404 * $wgForeignFileRepos variable.
406 $wgUseSharedUploads = false;
407 /** Full path on the web server where shared uploads can be found */
408 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
409 /** Fetch commons image description pages and display them on the local wiki? */
410 $wgFetchCommonsDescriptions = false;
411 /** Path on the file system where shared uploads can be found. */
412 $wgSharedUploadDirectory = "/var/www/wiki3/images";
413 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
414 $wgSharedUploadDBname = false;
415 /** Optional table prefix used in database. */
416 $wgSharedUploadDBprefix = '';
417 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
418 $wgCacheSharedUploads = true;
419 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
420 $wgAllowCopyUploads = false;
422 * Max size for uploads, in bytes. Currently only works for uploads from URL
423 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
424 * normal uploads is currently to edit php.ini.
426 $wgMaxUploadSize = 1024*1024*100; # 100MB
429 * Point the upload navigation link to an external URL
430 * Useful if you want to use a shared repository by default
431 * without disabling local uploads (use $wgEnableUploads = false for that)
432 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
434 $wgUploadNavigationUrl = false;
437 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
438 * generating them on render and outputting a static URL. This is necessary if some of your
439 * apache servers don't have read/write access to the thumbnail path.
442 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
444 $wgThumbnailScriptPath = false;
445 $wgSharedThumbnailScriptPath = false;
448 * Set the following to false especially if you have a set of files that need to
449 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
452 $wgHashedSharedUploadDirectory = true;
455 * Base URL for a repository wiki. Leave this blank if uploads are just stored
456 * in a shared directory and not meant to be accessible through a separate wiki.
457 * Otherwise the image description pages on the local wiki will link to the
458 * image description page on this wiki.
460 * Please specify the namespace, as in the example below.
462 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
469 * Site admin email address
470 * Default to wikiadmin@SERVER_NAME
471 * @global string $wgEmergencyContact
473 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
476 * Password reminder email address
477 * The address we should use as sender when a user is requesting his password
478 * Default to apache@SERVER_NAME
479 * @global string $wgPasswordSender
481 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
484 * dummy address which should be accepted during mail send action
485 * It might be necessay to adapt the address or to set it equal
486 * to the $wgEmergencyContact address
488 #$wgNoReplyAddress = $wgEmergencyContact;
489 $wgNoReplyAddress = 'reply@not.possible';
492 * Set to true to enable the e-mail basic features:
493 * Password reminders, etc. If sending e-mail on your
494 * server doesn't work, you might want to disable this.
495 * @global bool $wgEnableEmail
497 $wgEnableEmail = true;
500 * Set to true to enable user-to-user e-mail.
501 * This can potentially be abused, as it's hard to track.
502 * @global bool $wgEnableUserEmail
504 $wgEnableUserEmail = true;
507 * Set to true to put the sending user's email in a Reply-To header
508 * instead of From. ($wgEmergencyContact will be used as From.)
510 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
511 * which can cause problems with SPF validation and leak recipient addressses
512 * when bounces are sent to the sender.
514 $wgUserEmailUseReplyTo = false;
517 * Minimum time, in hours, which must elapse between password reminder
518 * emails for a given account. This is to prevent abuse by mail flooding.
520 $wgPasswordReminderResendTime = 24;
524 * For using a direct (authenticated) SMTP server connection.
525 * Default to false or fill an array :
527 * "host" => 'SMTP domain',
528 * "IDHost" => 'domain for MessageID',
530 * "auth" => true/false,
531 * "username" => user,
532 * "password" => password
535 * @global mixed $wgSMTP
543 /** database host name or ip address */
544 $wgDBserver = 'localhost';
545 /** database port number */
547 /** name of the database */
548 $wgDBname = 'wikidb';
550 $wgDBconnection = '';
551 /** Database username */
552 $wgDBuser = 'wikiuser';
557 * Leave as null to select the default search engine for the
558 * selected database type (eg SearchMySQL4), or set to a class
559 * name to override to a custom search engine.
561 $wgSearchType = null;
562 /** Table name prefix */
564 /** MySQL table options to use during installation or update */
565 $wgDBTableOptions = 'TYPE=InnoDB';
568 * Make all database connections secretly go to localhost. Fool the load balancer
569 * thinking there is an arbitrarily large cluster of servers to connect to.
570 * Useful for debugging.
572 $wgAllDBsAreLocalhost = false;
577 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
578 $wgCheckDBSchema = true;
582 * Shared database for multiple wikis. Commonly used for storing a user table
583 * for single sign-on. The server for this database must be the same as for the
585 * For backwards compatibility the shared prefix is set to the same as the local
586 * prefix, and the user table is listed in the default list of shared tables.
588 * $wgSharedTables may be customized with a list of tables to share in the shared
589 * datbase. However it is advised to limit what tables you do share as many of
590 * MediaWiki's tables may have side effects if you try to share them.
594 $wgSharedPrefix = $wgDBprefix;
595 $wgSharedTables = array( 'user' );
598 * Database load balancer
599 * This is a two-dimensional array, an array of server info structures
602 * dbname: Default database name
604 * password: DB password
605 * type: "mysql" or "postgres"
606 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
607 * groupLoads: array of load ratios, the key is the query group name. A query may belong
608 * to several groups, the most specific group defined here is used.
611 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
612 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
613 * DBO_TRX -- wrap entire request in a transaction
614 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
615 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
617 * max lag: (optional) Maximum replication lag before a slave will taken out of rotation
618 * max threads: (optional) Maximum number of running threads
620 * These and any other user-defined properties will be assigned to the mLBInfo member
621 * variable of the Database object.
623 * Leave at false to use the single-server variables above. If you set this
624 * variable, the single-server variables will generally be ignored (except
625 * perhaps in some command-line scripts).
627 * The first server listed in this array (with key 0) will be the master. The
628 * rest of the servers will be slaves. To prevent writes to your slaves due to
629 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
630 * slaves in my.cnf. You can set read_only mode at runtime using:
634 * Since the effect of writing to a slave is so damaging and difficult to clean
635 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
636 * our masters, and then set read_only=0 on masters at runtime.
638 $wgDBservers = false;
641 * Load balancer factory configuration
642 * To set up a multi-master wiki farm, set the class here to something that
643 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
644 * The class identified here is responsible for reading $wgDBservers,
645 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
647 * The LBFactory_Multi class is provided for this purpose, please see
648 * includes/LBFactory_Multi.php for configuration information.
650 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
652 /** How long to wait for a slave to catch up to the master */
653 $wgMasterWaitTimeout = 10;
655 /** File to log database errors to */
656 $wgDBerrorLog = false;
658 /** When to give an error message */
659 $wgDBClusterTimeout = 10;
662 * Scale load balancer polling time so that under overload conditions, the database server
663 * receives a SHOW STATUS query at an average interval of this many microseconds
665 $wgDBAvgStatusPoll = 2000;
669 * MySQL 3.x : used to discard words that MySQL will not return any results for
670 * shorter values configure mysql directly.
671 * MySQL 4.x : ignore it and configure mySQL
672 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
675 /** Set to true if using InnoDB tables */
676 $wgDBtransactions = false;
677 /** Set to true for compatibility with extensions that might be checking.
678 * MySQL 3.23.x is no longer supported. */
682 * Set to true to engage MySQL 4.1/5.0 charset-related features;
683 * for now will just cause sending of 'SET NAMES=utf8' on connect.
685 * WARNING: THIS IS EXPERIMENTAL!
687 * May break if you're not using the table defs from mysql5/tables.sql.
688 * May break if you're upgrading an existing wiki if set differently.
689 * Broken symptoms likely to include incorrect behavior with page titles,
690 * usernames, comments etc containing non-ASCII characters.
691 * Might also cause failures on the object cache and other things.
693 * Even correct usage may cause failures with Unicode supplementary
694 * characters (those not in the Basic Multilingual Plane) unless MySQL
695 * has enhanced their Unicode support.
700 * Other wikis on this site, can be administered from a single developer
702 * Array numeric key => database name
704 $wgLocalDatabases = array();
707 * Object cache settings
708 * See Defines.php for types
710 $wgMainCacheType = CACHE_NONE
;
711 $wgMessageCacheType = CACHE_ANYTHING
;
712 $wgParserCacheType = CACHE_ANYTHING
;
714 $wgParserCacheExpireTime = 86400;
716 $wgSessionsInMemcached = false;
719 * Memcached-specific settings
720 * See docs/memcached.txt
722 $wgUseMemCached = false;
723 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
724 $wgMemCachedServers = array( '127.0.0.1:11000' );
725 $wgMemCachedPersistent = false;
728 * Directory for local copy of message cache, for use in addition to memcached
730 $wgLocalMessageCache = false;
732 * Defines format of local cache
733 * true - Serialized object
734 * false - PHP source file (Warning - security risk)
736 $wgLocalMessageCacheSerialized = true;
739 * Directory for compiled constant message array databases
740 * WARNING: turning anything on will just break things, aaaaaah!!!!
742 $wgCachedMessageArrays = false;
746 /** Site language code, should be one of ./languages/Language(.*).php */
747 $wgLanguageCode = 'en';
750 * Some languages need different word forms, usually for different cases.
751 * Used in Language::convertGrammar().
753 $wgGrammarForms = array();
754 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
756 /** Treat language links as magic connectors, not inline links */
757 $wgInterwikiMagic = true;
759 /** Hide interlanguage links from the sidebar */
760 $wgHideInterlanguageLinks = false;
762 /** List of language names or overrides for default names in Names.php */
763 $wgExtraLanguageNames = array();
765 /** We speak UTF-8 all the time now, unless some oddities happen */
766 $wgInputEncoding = 'UTF-8';
767 $wgOutputEncoding = 'UTF-8';
768 $wgEditEncoding = '';
770 # Set this to eg 'ISO-8859-1' to perform character set
771 # conversion when loading old revisions not marked with
772 # "utf-8" flag. Use this when converting wiki to UTF-8
773 # without the burdensome mass conversion of old text data.
775 # NOTE! This DOES NOT touch any fields other than old_text.
776 # Titles, comments, user names, etc still must be converted
777 # en masse in the database before continuing as a UTF-8 wiki.
778 $wgLegacyEncoding = false;
781 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
782 * create stub reference rows in the text table instead of copying
783 * the full text of all current entries from 'cur' to 'text'.
785 * This will speed up the conversion step for large sites, but
786 * requires that the cur table be kept around for those revisions
787 * to remain viewable.
789 * maintenance/migrateCurStubs.php can be used to complete the
790 * migration in the background once the wiki is back online.
792 * This option affects the updaters *only*. Any present cur stub
793 * revisions will be readable at runtime regardless of this setting.
795 $wgLegacySchemaConversion = false;
797 $wgMimeType = 'text/html';
798 $wgJsMimeType = 'text/javascript';
799 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
800 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
801 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
803 # Permit other namespaces in addition to the w3.org default.
804 # Use the prefix for the key and the namespace for the value. For
806 # $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
807 # Normally we wouldn't have to define this in the root <html>
808 # element, but IE needs it there in some circumstances.
809 $wgXhtmlNamespaces = array();
811 /** Enable to allow rewriting dates in page text.
812 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
813 $wgUseDynamicDates = false;
814 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
815 * the interface is set to English
817 $wgAmericanDates = false;
819 * For Hindi and Arabic use local numerals instead of Western style (0-9)
820 * numerals in interface.
822 $wgTranslateNumerals = true;
825 * Translation using MediaWiki: namespace.
826 * This will increase load times by 25-60% unless memcached is installed.
827 * Interface messages will be loaded from the database.
829 $wgUseDatabaseMessages = true;
832 * Expiry time for the message cache key
834 $wgMsgCacheExpiry = 86400;
837 * Maximum entry size in the message cache, in bytes
839 $wgMaxMsgCacheEntrySize = 10000;
842 * Set to false if you are thorough system admin who always remembers to keep
843 * serialized files up to date to save few mtime calls.
845 $wgCheckSerialized = true;
847 # Whether to enable language variant conversion.
848 $wgDisableLangConversion = false;
850 # Default variant code, if false, the default will be the language code
851 $wgDefaultLanguageVariant = false;
854 * Show a bar of language selection links in the user login and user
855 * registration forms; edit the "loginlanguagelinks" message to
858 $wgLoginLanguageSelector = false;
860 # Whether to use zhdaemon to perform Chinese text processing
861 # zhdaemon is under developement, so normally you don't want to
862 # use it unless for testing
863 $wgUseZhdaemon = false;
864 $wgZhdaemonHost="localhost";
865 $wgZhdaemonPort=2004;
868 * Normally you can ignore this and it will be something
869 * like $wgMetaNamespace . "_talk". In some languages, you
870 * may want to set this manually for grammatical reasons.
871 * It is currently only respected by those languages
872 * where it might be relevant and where no automatic
873 * grammar converter exists.
875 $wgMetaNamespaceTalk = false;
877 # Miscellaneous configuration settings
880 $wgLocalInterwiki = 'w';
881 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
883 /** Interwiki caching settings.
884 $wgInterwikiCache specifies path to constant database file
885 This cdb database is generated by dumpInterwiki from maintenance
886 and has such key formats:
887 dbname:key - a simple key (e.g. enwiki:meta)
888 _sitename:key - site-scope key (e.g. wiktionary:meta)
889 __global:key - global-scope key (e.g. __global:meta)
890 __sites:dbname - site mapping (e.g. __sites:enwiki)
891 Sites mapping just specifies site name, other keys provide
892 "local url" data layout.
893 $wgInterwikiScopes specify number of domains to check for messages:
894 1 - Just wiki(db)-level
895 2 - wiki and global levels
897 $wgInterwikiFallbackSite - if unable to resolve from cache
899 $wgInterwikiCache = false;
900 $wgInterwikiScopes = 3;
901 $wgInterwikiFallbackSite = 'wiki';
904 * If local interwikis are set up which allow redirects,
905 * set this regexp to restrict URLs which will be displayed
906 * as 'redirected from' links.
908 * It might look something like this:
909 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
911 * Leave at false to avoid displaying any incoming redirect markers.
912 * This does not affect intra-wiki redirects, which don't change
915 $wgRedirectSources = false;
918 $wgShowIPinHeader = true; # For non-logged in users
919 $wgMaxNameChars = 255; # Maximum number of bytes in username
920 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
921 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
923 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
926 * Maximum recursion depth for templates within templates.
927 * The current parser adds two levels to the PHP call stack for each template,
928 * and xdebug limits the call stack to 100 by default. So this should hopefully
929 * stop the parser before it hits the xdebug limit.
931 $wgMaxTemplateDepth = 40;
932 $wgMaxPPExpandDepth = 40;
934 $wgExtraSubtitle = '';
935 $wgSiteSupportPage = ''; # A page where you users can receive donations
938 * If this lock file exists, the wiki will be forced into read-only mode.
939 * Its contents will be shown to users as part of the read-only warning
942 $wgReadOnlyFile = false; /// defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
945 * The debug log file should be not be publicly accessible if it is used, as it
946 * may contain private data. */
947 $wgDebugLogFile = '';
952 $wgDebugRedirects = false;
953 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
955 $wgDebugComments = false;
957 $wgLogQueries = false;
960 * Write SQL queries to the debug log
962 $wgDebugDumpSql = false;
965 * Set to an array of log group keys to filenames.
966 * If set, wfDebugLog() output for that group will go to that file instead
967 * of the regular $wgDebugLogFile. Useful for enabling selective logging
970 $wgDebugLogGroups = array();
973 * Whether to show "we're sorry, but there has been a database error" pages.
974 * Displaying errors aids in debugging, but may display information useful
977 $wgShowSQLErrors = false;
980 * If true, some error messages will be colorized when running scripts on the
981 * command line; this can aid picking important things out when debugging.
982 * Ignored when running on Windows or when output is redirected to a file.
984 $wgColorErrors = true;
987 * If set to true, uncaught exceptions will print a complete stack trace
988 * to output. This should only be used for debugging, as it may reveal
989 * private information in function parameters due to PHP's backtrace
992 $wgShowExceptionDetails = false;
995 * Expose backend server host names through the API and various HTML comments
997 $wgShowHostnames = false;
1000 * Use experimental, DMOZ-like category browser
1002 $wgUseCategoryBrowser = false;
1005 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
1006 * to speed up output of the same page viewed by another user with the
1009 * This can provide a significant speedup for medium to large pages,
1010 * so you probably want to keep it on.
1012 $wgEnableParserCache = true;
1015 * If on, the sidebar navigation links are cached for users with the
1016 * current language set. This can save a touch of load on a busy site
1017 * by shaving off extra message lookups.
1019 * However it is also fragile: changing the site configuration, or
1020 * having a variable $wgArticlePath, can produce broken links that
1021 * don't update as expected.
1023 $wgEnableSidebarCache = false;
1026 * Expiry time for the sidebar cache, in seconds
1028 $wgSidebarCacheExpiry = 86400;
1031 * Under which condition should a page in the main namespace be counted
1032 * as a valid article? If $wgUseCommaCount is set to true, it will be
1033 * counted if it contains at least one comma. If it is set to false
1034 * (default), it will only be counted if it contains at least one [[wiki
1035 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
1037 * Retroactively changing this variable will not affect
1038 * the existing count (cf. maintenance/recount.sql).
1040 $wgUseCommaCount = false;
1045 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
1046 * values are easier on the database. A value of 1 causes the counters to be
1047 * updated on every hit, any higher value n cause them to update *on average*
1048 * every n hits. Should be set to either 1 or something largish, eg 1000, for
1049 * maximum efficiency.
1051 $wgHitcounterUpdateFreq = 1;
1053 # Basic user rights and block settings
1054 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1055 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1056 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1057 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
1058 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1060 # Pages anonymous user may see as an array, e.g.:
1061 # array ( "Main Page", "Wikipedia:Help");
1062 # Special:Userlogin and Special:Resetpass are always whitelisted.
1063 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1064 # is false -- see below. Otherwise, ALL pages are accessible,
1065 # regardless of this setting.
1066 # Also note that this will only protect _pages in the wiki_.
1067 # Uploaded files will remain readable. Make your upload
1068 # directory name unguessable, or use .htaccess to protect it.
1069 $wgWhitelistRead = false;
1072 * Should editors be required to have a validated e-mail
1073 * address before being allowed to edit?
1075 $wgEmailConfirmToEdit=false;
1078 * Permission keys given to users in each group.
1079 * All users are implicitly in the '*' group including anonymous visitors;
1080 * logged-in users are all implicitly in the 'user' group. These will be
1081 * combined with the permissions of all groups that a given user is listed
1082 * in in the user_groups table.
1084 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1085 * doing! This will wipe all permissions, and may mean that your users are
1086 * unable to perform certain essential tasks or access new functionality
1087 * when new permissions are introduced and default grants established.
1089 * Functionality to make pages inaccessible has not been extensively tested
1090 * for security. Use at your own risk!
1092 * This replaces wgWhitelistAccount and wgWhitelistEdit
1094 $wgGroupPermissions = array();
1096 // Implicit group for all visitors
1097 $wgGroupPermissions['*' ]['createaccount'] = true;
1098 $wgGroupPermissions['*' ]['read'] = true;
1099 $wgGroupPermissions['*' ]['edit'] = true;
1100 $wgGroupPermissions['*' ]['createpage'] = true;
1101 $wgGroupPermissions['*' ]['createtalk'] = true;
1103 // Implicit group for all logged-in accounts
1104 $wgGroupPermissions['user' ]['move'] = true;
1105 $wgGroupPermissions['user' ]['read'] = true;
1106 $wgGroupPermissions['user' ]['edit'] = true;
1107 $wgGroupPermissions['user' ]['createpage'] = true;
1108 $wgGroupPermissions['user' ]['createtalk'] = true;
1109 $wgGroupPermissions['user' ]['upload'] = true;
1110 $wgGroupPermissions['user' ]['reupload'] = true;
1111 $wgGroupPermissions['user' ]['reupload-shared'] = true;
1112 $wgGroupPermissions['user' ]['minoredit'] = true;
1113 $wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
1115 // Implicit group for accounts that pass $wgAutoConfirmAge
1116 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1118 // Users with bot privilege can have their edits hidden
1119 // from various log pages by default
1120 $wgGroupPermissions['bot' ]['bot'] = true;
1121 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
1122 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
1123 $wgGroupPermissions['bot' ]['autopatrol'] = true;
1124 $wgGroupPermissions['bot' ]['suppressredirect'] = true;
1125 $wgGroupPermissions['bot' ]['apihighlimits'] = true;
1126 #$wgGroupPermissions['bot' ]['editprotected'] = true; // can edit all protected pages without cascade protection enabled
1128 // Most extra permission abilities go to this group
1129 $wgGroupPermissions['sysop']['block'] = true;
1130 $wgGroupPermissions['sysop']['createaccount'] = true;
1131 $wgGroupPermissions['sysop']['delete'] = true;
1132 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
1133 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1134 $wgGroupPermissions['sysop']['undelete'] = true;
1135 $wgGroupPermissions['sysop']['editinterface'] = true;
1136 $wgGroupPermissions['sysop']['editusercssjs'] = true;
1137 $wgGroupPermissions['sysop']['import'] = true;
1138 $wgGroupPermissions['sysop']['importupload'] = true;
1139 $wgGroupPermissions['sysop']['move'] = true;
1140 $wgGroupPermissions['sysop']['patrol'] = true;
1141 $wgGroupPermissions['sysop']['autopatrol'] = true;
1142 $wgGroupPermissions['sysop']['protect'] = true;
1143 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1144 $wgGroupPermissions['sysop']['rollback'] = true;
1145 $wgGroupPermissions['sysop']['trackback'] = true;
1146 $wgGroupPermissions['sysop']['upload'] = true;
1147 $wgGroupPermissions['sysop']['reupload'] = true;
1148 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1149 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1150 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1151 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1152 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1153 $wgGroupPermissions['sysop']['blockemail'] = true;
1154 $wgGroupPermissions['sysop']['markbotedits'] = true;
1155 $wgGroupPermissions['sysop']['suppressredirect'] = true;
1156 $wgGroupPermissions['sysop']['apihighlimits'] = true;
1157 $wgGroupPermissions['sysop']['browsearchive'] = true;
1158 #$wgGroupPermissions['sysop']['mergehistory'] = true;
1160 // Permission to change users' group assignments
1161 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1162 // Permission to change users' groups assignments across wikis
1163 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
1165 #$wgGroupPermissions['sysop']['deleterevision'] = true;
1166 // To hide usernames from users and Sysops
1167 #$wgGroupPermissions['suppress']['hideuser'] = true;
1168 // To hide revisions/log items from users and Sysops
1169 #$wgGroupPermissions['suppress']['hiderevision'] = true;
1170 // For private suppression log access
1171 #$wgGroupPermissions['suppress']['suppress'] = true;
1174 * The developer group is deprecated, but can be activated if need be
1175 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1176 * that a lock file be defined and creatable/removable by the web
1179 # $wgGroupPermissions['developer']['siteadmin'] = true;
1183 * Implicit groups, aren't shown on Special:Listusers or somewhere else
1185 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
1188 * These are the groups that users are allowed to add to or remove from
1189 * their own account via Special:Userrights.
1191 $wgGroupsAddToSelf = array();
1192 $wgGroupsRemoveFromSelf = array();
1195 * Set of available actions that can be restricted via action=protect
1196 * You probably shouldn't change this.
1197 * Translated trough restriction-* messages.
1199 $wgRestrictionTypes = array( 'edit', 'move' );
1202 * Rights which can be required for each protection level (via action=protect)
1204 * You can add a new protection level that requires a specific
1205 * permission by manipulating this array. The ordering of elements
1206 * dictates the order on the protection form's lists.
1208 * '' will be ignored (i.e. unprotected)
1209 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1211 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1214 * Set the minimum permissions required to edit pages in each
1215 * namespace. If you list more than one permission, a user must
1216 * have all of them to edit pages in that namespace.
1218 $wgNamespaceProtection = array();
1219 $wgNamespaceProtection[ NS_MEDIAWIKI
] = array( 'editinterface' );
1222 * Pages in namespaces in this array can not be used as templates.
1223 * Elements must be numeric namespace ids.
1224 * Among other things, this may be useful to enforce read-restrictions
1225 * which may otherwise be bypassed by using the template machanism.
1227 $wgNonincludableNamespaces = array();
1230 * Number of seconds an account is required to age before
1231 * it's given the implicit 'autoconfirm' group membership.
1232 * This can be used to limit privileges of new accounts.
1234 * Accounts created by earlier versions of the software
1235 * may not have a recorded creation date, and will always
1236 * be considered to pass the age test.
1238 * When left at 0, all registered accounts will pass.
1240 $wgAutoConfirmAge = 0;
1241 //$wgAutoConfirmAge = 600; // ten minutes
1242 //$wgAutoConfirmAge = 3600*24; // one day
1244 # Number of edits an account requires before it is autoconfirmed
1245 # Passing both this AND the time requirement is needed
1246 $wgAutoConfirmCount = 0;
1247 //$wgAutoConfirmCount = 50;
1250 * Automatically add a usergroup to any user who matches certain conditions.
1252 * array( '&' or '|' or '^', cond1, cond2, ... )
1253 * where cond1, cond2, ... are themselves conditions; *OR*
1254 * APCOND_EMAILCONFIRMED, *OR*
1255 * array( APCOND_EMAILCONFIRMED ), *OR*
1256 * array( APCOND_EDITCOUNT, number of edits ), *OR*
1257 * array( APCOND_AGE, seconds since registration ), *OR*
1258 * similar constructs defined by extensions.
1260 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
1261 * user who has provided an e-mail address.
1263 $wgAutopromote = array(
1264 'autoconfirmed' => array( '&',
1265 array( APCOND_EDITCOUNT
, &$wgAutoConfirmCount ),
1266 array( APCOND_AGE
, &$wgAutoConfirmAge ),
1271 * These settings can be used to give finer control over who can assign which
1272 * groups at Special:Userrights. Example configuration:
1274 * // Bureaucrat can add any group
1275 * $wgAddGroups['bureaucrat'] = true;
1276 * // Bureaucrats can only remove bots and sysops
1277 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1278 * // Sysops can make bots
1279 * $wgAddGroups['sysop'] = array( 'bot' );
1280 * // Sysops can disable other sysops in an emergency, and disable bots
1281 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1283 $wgAddGroups = $wgRemoveGroups = array();
1286 * Optional to restrict deletion of pages with higher revision counts
1287 * to users with the 'bigdelete' permission. (Default given to sysops.)
1289 $wgDeleteRevisionsLimit = 0;
1291 # Proxy scanner settings
1295 * If you enable this, every editor's IP address will be scanned for open HTTP
1298 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1299 * ISP and ask for your server to be shut down.
1301 * You have been warned.
1303 $wgBlockOpenProxies = false;
1304 /** Port we want to scan for a proxy */
1305 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1306 /** Script used to scan */
1307 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1309 $wgProxyMemcExpiry = 86400;
1310 /** This should always be customised in LocalSettings.php */
1311 $wgSecretKey = false;
1312 /** big list of banned IP addresses, in the keys not the values */
1313 $wgProxyList = array();
1315 $wgProxyKey = false;
1317 /** Number of accounts each IP address may create, 0 to disable.
1318 * Requires memcached */
1319 $wgAccountCreationThrottle = 0;
1321 # Client-side caching:
1323 /** Allow client-side caching of pages */
1324 $wgCachePages = true;
1327 * Set this to current time to invalidate all prior cached pages. Affects both
1328 * client- and server-side caching.
1329 * You can get the current date on your server by using the command:
1330 * date +%Y%m%d%H%M%S
1332 $wgCacheEpoch = '20030516000000';
1335 * Bump this number when changing the global style sheets and JavaScript.
1336 * It should be appended in the query string of static CSS and JS includes,
1337 * to ensure that client-side caches don't keep obsolete copies of global
1340 $wgStyleVersion = '141';
1343 # Server-side caching:
1346 * This will cache static pages for non-logged-in users to reduce
1347 * database traffic on public sites.
1348 * Must set $wgShowIPinHeader = false
1350 $wgUseFileCache = false;
1352 /** Directory where the cached page will be saved */
1353 $wgFileCacheDirectory = false; /// defaults to "{$wgUploadDirectory}/cache";
1356 * When using the file cache, we can store the cached HTML gzipped to save disk
1357 * space. Pages will then also be served compressed to clients that support it.
1358 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1359 * the default LocalSettings.php! If you enable this, remove that setting first.
1361 * Requires zlib support enabled in PHP.
1365 /** Whether MediaWiki should send an ETag header */
1368 # Email notification settings
1371 /** For email notification on page changes */
1372 $wgPasswordSender = $wgEmergencyContact;
1374 # true: from page editor if s/he opted-in
1375 # false: Enotif mails appear to come from $wgEmergencyContact
1376 $wgEnotifFromEditor = false;
1378 // TODO move UPO to preferences probably ?
1379 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1380 # If set to false, the corresponding input form on the user preference page is suppressed
1381 # It call this to be a "user-preferences-option (UPO)"
1382 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1383 $wgEnotifWatchlist = false; # UPO
1384 $wgEnotifUserTalk = false; # UPO
1385 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1386 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1387 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1389 # Send a generic mail instead of a personalised mail for each user. This
1390 # always uses UTC as the time zone, and doesn't include the username.
1392 # For pages with many users watching, this can significantly reduce mail load.
1393 # Has no effect when using sendmail rather than SMTP;
1395 $wgEnotifImpersonal = false;
1397 # Maximum number of users to mail at once when using impersonal mail. Should
1398 # match the limit on your mail server.
1399 $wgEnotifMaxRecips = 500;
1401 # Send mails via the job queue.
1402 $wgEnotifUseJobQ = false;
1405 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1407 $wgUsersNotifiedOnAllChanges = array();
1409 /** Show watching users in recent changes, watchlist and page history views */
1410 $wgRCShowWatchingUsers = false; # UPO
1411 /** Show watching users in Page views */
1412 $wgPageShowWatchingUsers = false;
1413 /** Show the amount of changed characters in recent changes */
1414 $wgRCShowChangedSize = true;
1417 * If the difference between the character counts of the text
1418 * before and after the edit is below that value, the value will be
1419 * highlighted on the RC page.
1421 $wgRCChangedSizeThreshold = -500;
1424 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1425 * view for watched pages with new changes */
1426 $wgShowUpdatedMarker = true;
1428 $wgCookieExpiration = 2592000;
1430 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1431 * problems when the user requests two pages within a short period of time. This
1432 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1435 $wgClockSkewFudge = 5;
1437 # Squid-related settings
1440 /** Enable/disable Squid */
1441 $wgUseSquid = false;
1443 /** If you run Squid3 with ESI support, enable this (default:false): */
1446 /** Internal server name as known to Squid, if different */
1447 # $wgInternalServer = 'http://yourinternal.tld:8000';
1448 $wgInternalServer = $wgServer;
1451 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1452 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1453 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1456 $wgSquidMaxage = 18000;
1459 * Default maximum age for raw CSS/JS accesses
1461 $wgForcedRawSMaxage = 300;
1464 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1466 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1467 * headers sent/modified from these proxies when obtaining the remote IP address
1469 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1471 $wgSquidServers = array();
1474 * As above, except these servers aren't purged on page changes; use to set a
1475 * list of trusted proxies, etc.
1477 $wgSquidServersNoPurge = array();
1479 /** Maximum number of titles to purge in any one client operation */
1480 $wgMaxSquidPurgeTitles = 400;
1482 /** HTCP multicast purging */
1484 $wgHTCPMulticastTTL = 1;
1485 # $wgHTCPMulticastAddress = "224.0.0.85";
1486 $wgHTCPMulticastAddress = false;
1491 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1492 * or ".any.subdomain.net"
1494 $wgCookieDomain = '';
1495 $wgCookiePath = '/';
1496 $wgCookieSecure = ($wgProto == 'https');
1497 $wgDisableCookieCheck = false;
1500 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
1501 * in browsers that support this feature. This can mitigates some classes of
1504 * Only supported on PHP 5.2 or higher.
1506 $wgCookieHttpOnly = version_compare("5.2", PHP_VERSION
, "<");
1509 * If the requesting browser matches a regex in this blacklist, we won't
1510 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
1512 $wgHttpOnlyBlacklist = array(
1513 // Internet Explorer for Mac; sometimes the cookies work, sometimes
1514 // they don't. It's difficult to predict, as combinations of path
1515 // and expiration options affect its parsing.
1516 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
1519 /** A list of cookies that vary the cache (for use by extensions) */
1520 $wgCacheVaryCookies = array();
1522 /** Override to customise the session name */
1523 $wgSessionName = false;
1525 /** Whether to allow inline image pointing to other websites */
1526 $wgAllowExternalImages = false;
1528 /** If the above is false, you can specify an exception here. Image URLs
1529 * that start with this string are then rendered, while all others are not.
1530 * You can use this to set up a trusted, simple repository of images.
1533 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1535 $wgAllowExternalImagesFrom = '';
1537 /** Allows to move images and other media files. Experemintal, not sure if it always works */
1538 $wgAllowImageMoving = false;
1540 /** Disable database-intensive features */
1541 $wgMiserMode = false;
1542 /** Disable all query pages if miser mode is on, not just some */
1543 $wgDisableQueryPages = false;
1544 /** Number of rows to cache in 'querycache' table when miser mode is on */
1545 $wgQueryCacheLimit = 1000;
1546 /** Number of links to a page required before it is deemed "wanted" */
1547 $wgWantedPagesThreshold = 1;
1548 /** Enable slow parser functions */
1549 $wgAllowSlowParserFunctions = false;
1552 * Maps jobs to their handling classes; extensions
1553 * can add to this to provide custom jobs
1555 $wgJobClasses = array(
1556 'refreshLinks' => 'RefreshLinksJob',
1557 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1558 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1559 'sendMail' => 'EmaillingJob',
1560 'enotifNotify' => 'EnotifNotifyJob',
1564 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1565 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1566 * (ImageMagick) installed and available in the PATH.
1567 * Please see math/README for more information.
1570 /** Location of the texvc binary */
1571 $wgTexvc = './math/texvc';
1574 # Profiling / debugging
1576 # You have to create a 'profiling' table in your database before using
1577 # profiling see maintenance/archives/patch-profiling.sql .
1579 # To enable profiling, edit StartProfiler.php
1581 /** Only record profiling info for pages that took longer than this */
1582 $wgProfileLimit = 0.0;
1583 /** Don't put non-profiling info into log file */
1584 $wgProfileOnly = false;
1585 /** Log sums from profiling into "profiling" table in db. */
1586 $wgProfileToDatabase = false;
1587 /** If true, print a raw call tree instead of per-function report */
1588 $wgProfileCallTree = false;
1589 /** Should application server host be put into profiling table */
1590 $wgProfilePerHost = false;
1592 /** Settings for UDP profiler */
1593 $wgUDPProfilerHost = '127.0.0.1';
1594 $wgUDPProfilerPort = '3811';
1596 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1597 $wgDebugProfiling = false;
1598 /** Output debug message on every wfProfileIn/wfProfileOut */
1599 $wgDebugFunctionEntry = 0;
1600 /** Lots of debugging output from SquidUpdate.php */
1601 $wgDebugSquid = false;
1604 * Destination for wfIncrStats() data...
1605 * 'cache' to go into the system cache, if enabled (memcached)
1606 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
1609 $wgStatsMethod = 'cache';
1611 /** Whereas to count the number of time an article is viewed.
1612 * Does not work if pages are cached (for example with squid).
1614 $wgDisableCounters = false;
1616 $wgDisableTextSearch = false;
1617 $wgDisableSearchContext = false;
1621 * Set to true to have nicer highligted text in search results,
1622 * by default off due to execution overhead
1624 $wgAdvancedSearchHighlighting = false;
1627 * Regexp to match word boundaries, defaults for non-CJK languages
1628 * should be empty for CJK since the words are not separate
1630 $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION
, "<")?
'[\p{Z}\p{P}\p{C}]'
1631 : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround
1634 * Template for OpenSearch suggestions, defaults to API action=opensearch
1636 * Sites with heavy load would tipically have these point to a custom
1637 * PHP wrapper to avoid firing up mediawiki for every keystroke
1639 * Placeholders: {searchTerms}
1642 $wgOpenSearchTemplate = false;
1645 * Enable suggestions while typing in search boxes
1646 * (results are passed around in OpenSearch format)
1648 $wgEnableMWSuggest = false;
1651 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
1653 * Placeholders: {searchTerms}, {namespaces}, {dbname}
1656 $wgMWSuggestTemplate = false;
1659 * If you've disabled search semi-permanently, this also disables updates to the
1660 * table. If you ever re-enable, be sure to rebuild the search table.
1662 $wgDisableSearchUpdate = false;
1663 /** Uploads have to be specially set up to be secure */
1664 $wgEnableUploads = false;
1666 * Show EXIF data, on by default if available.
1667 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1669 * NOTE FOR WINDOWS USERS:
1670 * To enable EXIF functions, add the folloing lines to the
1671 * "Windows extensions" section of php.ini:
1673 * extension=extensions/php_mbstring.dll
1674 * extension=extensions/php_exif.dll
1676 $wgShowEXIF = function_exists( 'exif_read_data' );
1679 * Set to true to enable the upload _link_ while local uploads are disabled.
1680 * Assumes that the special page link will be bounced to another server where
1683 $wgRemoteUploads = false;
1684 $wgDisableAnonTalk = false;
1686 * Do DELETE/INSERT for link updates instead of incremental
1688 $wgUseDumbLinkUpdate = false;
1691 * Anti-lock flags - bitfield
1693 * Preload links during link update for save
1694 * ALF_PRELOAD_EXISTENCE
1695 * Preload cur_id during replaceLinkHolders
1697 * Don't use locking reads when updating the link table. This is
1698 * necessary for wikis with a high edit rate for performance
1699 * reasons, but may cause link table inconsistency
1701 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1704 $wgAntiLockFlags = 0;
1707 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1708 * fall back to the old behaviour (no merging).
1710 $wgDiff3 = '/usr/bin/diff3';
1713 * We can also compress text stored in the 'text' table. If this is set on, new
1714 * revisions will be compressed on page save if zlib support is available. Any
1715 * compressed revisions will be decompressed on load regardless of this setting
1716 * *but will not be readable at all* if zlib support is not available.
1718 $wgCompressRevisions = false;
1721 * This is the list of preferred extensions for uploading files. Uploading files
1722 * with extensions not in this list will trigger a warning.
1724 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1726 /** Files with these extensions will never be allowed as uploads. */
1727 $wgFileBlacklist = array(
1728 # HTML may contain cookie-stealing JavaScript and web bugs
1729 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
1730 # PHP scripts may execute arbitrary code on the server
1731 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1732 # Other types that may be interpreted by some servers
1733 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1734 # May contain harmful executables for Windows victims
1735 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1737 /** Files with these mime types will never be allowed as uploads
1738 * if $wgVerifyMimeType is enabled.
1740 $wgMimeTypeBlacklist= array(
1741 # HTML may contain cookie-stealing JavaScript and web bugs
1742 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1743 # PHP scripts may execute arbitrary code on the server
1744 'application/x-php', 'text/x-php',
1745 # Other types that may be interpreted by some servers
1746 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1747 # Windows metafile, client-side vulnerability on some systems
1748 'application/x-msmetafile'
1751 /** This is a flag to determine whether or not to check file extensions on upload. */
1752 $wgCheckFileExtensions = true;
1755 * If this is turned off, users may override the warning for files not covered
1756 * by $wgFileExtensions.
1758 $wgStrictFileExtensions = true;
1760 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
1761 $wgUploadSizeWarning = false;
1763 /** For compatibility with old installations set to false */
1764 $wgPasswordSalt = true;
1766 /** Which namespaces should support subpages?
1767 * See Language.php for a list of namespaces.
1769 $wgNamespacesWithSubpages = array(
1772 NS_USER_TALK
=> true,
1773 NS_PROJECT_TALK
=> true,
1774 NS_IMAGE_TALK
=> true,
1775 NS_MEDIAWIKI_TALK
=> true,
1776 NS_TEMPLATE_TALK
=> true,
1777 NS_HELP_TALK
=> true,
1778 NS_CATEGORY_TALK
=> true
1781 $wgNamespacesToBeSearchedDefault = array(
1786 * Site notice shown at the top of each page
1788 * This message can contain wiki text, and can also be set through the
1789 * MediaWiki:Sitenotice page. You can also provide a separate message for
1790 * logged-out users using the MediaWiki:Anonnotice page.
1799 * Plugins for media file type handling.
1800 * Each entry in the array maps a MIME type to a class name
1802 $wgMediaHandlers = array(
1803 'image/jpeg' => 'BitmapHandler',
1804 'image/png' => 'BitmapHandler',
1805 'image/gif' => 'BitmapHandler',
1806 'image/x-ms-bmp' => 'BmpHandler',
1807 'image/x-bmp' => 'BmpHandler',
1808 'image/svg+xml' => 'SvgHandler', // official
1809 'image/svg' => 'SvgHandler', // compat
1810 'image/vnd.djvu' => 'DjVuHandler', // official
1811 'image/x.djvu' => 'DjVuHandler', // compat
1812 'image/x-djvu' => 'DjVuHandler', // compat
1817 * Resizing can be done using PHP's internal image libraries or using
1818 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1819 * These support more file formats than PHP, which only supports PNG,
1820 * GIF, JPG, XBM and WBMP.
1822 * Use Image Magick instead of PHP builtin functions.
1824 $wgUseImageMagick = false;
1825 /** The convert command shipped with ImageMagick */
1826 $wgImageMagickConvertCommand = '/usr/bin/convert';
1828 /** Sharpening parameter to ImageMagick */
1829 $wgSharpenParameter = '0x0.4';
1831 /** Reduction in linear dimensions below which sharpening will be enabled */
1832 $wgSharpenReductionThreshold = 0.85;
1835 * Use another resizing converter, e.g. GraphicMagick
1836 * %s will be replaced with the source path, %d with the destination
1837 * %w and %h will be replaced with the width and height
1839 * An example is provided for GraphicMagick
1840 * Leave as false to skip this
1842 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1843 $wgCustomConvertCommand = false;
1845 # Scalable Vector Graphics (SVG) may be uploaded as images.
1846 # Since SVG support is not yet standard in browsers, it is
1847 # necessary to rasterize SVGs to PNG as a fallback format.
1849 # An external program is required to perform this conversion:
1850 $wgSVGConverters = array(
1851 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1852 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1853 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1854 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1855 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1857 /** Pick one of the above */
1858 $wgSVGConverter = 'ImageMagick';
1859 /** If not in the executable PATH, specify */
1860 $wgSVGConverterPath = '';
1861 /** Don't scale a SVG larger than this */
1862 $wgSVGMaxSize = 2048;
1864 * Don't thumbnail an image if it will use too much working memory
1865 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1866 * 12.5 million pixels or 3500x3500
1868 $wgMaxImageArea = 1.25e7
;
1870 * If rendered thumbnail files are older than this timestamp, they
1871 * will be rerendered on demand as if the file didn't already exist.
1872 * Update if there is some need to force thumbs and SVG rasterizations
1873 * to rerender, such as fixes to rendering bugs.
1875 $wgThumbnailEpoch = '20030516000000';
1878 * If set, inline scaled images will still produce <img> tags ready for
1879 * output instead of showing an error message.
1881 * This may be useful if errors are transitory, especially if the site
1882 * is configured to automatically render thumbnails on request.
1884 * On the other hand, it may obscure error conditions from debugging.
1885 * Enable the debug log or the 'thumbnail' log group to make sure errors
1886 * are logged to a file for review.
1888 $wgIgnoreImageErrors = false;
1891 * Allow thumbnail rendering on page view. If this is false, a valid
1892 * thumbnail URL is still output, but no file will be created at
1893 * the target location. This may save some time if you have a
1894 * thumb.php or 404 handler set up which is faster than the regular
1897 $wgGenerateThumbnailOnParse = true;
1899 /** Obsolete, always true, kept for compatibility with extensions */
1900 $wgUseImageResize = true;
1903 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1904 if( !isset( $wgCommandLineMode ) ) {
1905 $wgCommandLineMode = false;
1908 /** For colorized maintenance script output, is your terminal background dark ? */
1909 $wgCommandLineDarkBg = false;
1912 # Recent changes settings
1915 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1916 $wgPutIPinRC = true;
1919 * Recentchanges items are periodically purged; entries older than this many
1921 * For one week : 7 * 24 * 3600
1923 $wgRCMaxAge = 7 * 24 * 3600;
1926 # Send RC updates via UDP
1927 $wgRC2UDPAddress = false;
1928 $wgRC2UDPPort = false;
1929 $wgRC2UDPPrefix = '';
1931 # Enable user search in Special:Newpages
1932 # This is really a temporary hack around an index install bug on some Wikipedias.
1933 # Kill it once fixed.
1934 $wgEnableNewpagesUserFilter = true;
1937 # Copyright and credits settings
1940 /** RDF metadata toggles */
1941 $wgEnableDublinCoreRdf = false;
1942 $wgEnableCreativeCommonsRdf = false;
1944 /** Override for copyright metadata.
1945 * TODO: these options need documentation
1947 $wgRightsPage = NULL;
1948 $wgRightsUrl = NULL;
1949 $wgRightsText = NULL;
1950 $wgRightsIcon = NULL;
1952 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1953 $wgCopyrightIcon = NULL;
1955 /** Set this to true if you want detailed copyright information forms on Upload. */
1956 $wgUseCopyrightUpload = false;
1958 /** Set this to false if you want to disable checking that detailed copyright
1959 * information values are not empty. */
1960 $wgCheckCopyrightUpload = true;
1963 * Set this to the number of authors that you want to be credited below an
1964 * article text. Set it to zero to hide the attribution block, and a negative
1965 * number (like -1) to show all authors. Note that this will require 2-3 extra
1966 * database hits, which can have a not insignificant impact on performance for
1971 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1972 * Otherwise, link to a separate credits page. */
1973 $wgShowCreditsIfMax = true;
1978 * Set this to false to avoid forcing the first letter of links to capitals.
1979 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1980 * appearing with a capital at the beginning of a sentence will *not* go to the
1981 * same place as links in the middle of a sentence using a lowercase initial.
1983 $wgCapitalLinks = true;
1986 * List of interwiki prefixes for wikis we'll accept as sources for
1987 * Special:Import (for sysops). Since complete page history can be imported,
1988 * these should be 'trusted'.
1990 * If a user has the 'import' permission but not the 'importupload' permission,
1991 * they will only be able to run imports through this transwiki interface.
1993 $wgImportSources = array();
1996 * Optional default target namespace for interwiki imports.
1997 * Can use this to create an incoming "transwiki"-style queue.
1998 * Set to numeric key, not the name.
2000 * Users may override this in the Special:Import dialog.
2002 $wgImportTargetNamespace = null;
2005 * If set to false, disables the full-history option on Special:Export.
2006 * This is currently poorly optimized for long edit histories, so is
2007 * disabled on Wikimedia's sites.
2009 $wgExportAllowHistory = true;
2012 * If set nonzero, Special:Export requests for history of pages with
2013 * more revisions than this will be rejected. On some big sites things
2014 * could get bogged down by very very long pages.
2016 $wgExportMaxHistory = 0;
2018 $wgExportAllowListContributors = false ;
2021 /** Text matching this regular expression will be recognised as spam
2022 * See http://en.wikipedia.org/wiki/Regular_expression */
2023 $wgSpamRegex = false;
2024 /** Similarly you can get a function to do the job. The function will be given
2025 * the following args:
2026 * - a Title object for the article the edit is made on
2027 * - the text submitted in the textarea (wpTextbox1)
2028 * - the section number.
2029 * The return should be boolean indicating whether the edit matched some evilness:
2031 * - false : let it through
2033 * For a complete example, have a look at the SpamBlacklist extension.
2035 $wgFilterCallback = false;
2037 /** Go button goes straight to the edit screen if the article doesn't exist. */
2038 $wgGoToEdit = false;
2040 /** Allow raw, unchecked HTML in <html>...</html> sections.
2041 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
2042 * TO RESTRICT EDITING to only those that you trust
2047 * $wgUseTidy: use tidy to make sure HTML output is sane.
2048 * Tidy is a free tool that fixes broken HTML.
2049 * See http://www.w3.org/People/Raggett/tidy/
2050 * $wgTidyBin should be set to the path of the binary and
2051 * $wgTidyConf to the path of the configuration file.
2052 * $wgTidyOpts can include any number of parameters.
2054 * $wgTidyInternal controls the use of the PECL extension to use an in-
2055 * process tidy library instead of spawning a separate program.
2056 * Normally you shouldn't need to override the setting except for
2057 * debugging. To install, use 'pear install tidy' and add a line
2058 * 'extension=tidy.so' to php.ini.
2061 $wgAlwaysUseTidy = false;
2062 $wgTidyBin = 'tidy';
2063 $wgTidyConf = $IP.'/includes/tidy.conf';
2065 $wgTidyInternal = extension_loaded( 'tidy' );
2068 * Put tidy warnings in HTML comments
2069 * Only works for internal tidy.
2071 $wgDebugTidy = false;
2074 * Validate the overall output using tidy and refuse
2075 * to display the page if it's not valid.
2077 $wgValidateAllHtml = false;
2079 /** See list of skins and their symbolic names in languages/Language.php */
2080 $wgDefaultSkin = 'monobook';
2083 * Settings added to this array will override the default globals for the user
2084 * preferences used by anonymous visitors and newly created accounts.
2085 * For instance, to disable section editing links:
2086 * $wgDefaultUserOptions ['editsection'] = 0;
2089 $wgDefaultUserOptions = array(
2094 'searchlimit' => 20,
2095 'contextlines' => 5,
2096 'contextchars' => 50,
2097 'disablesuggest' => 0,
2106 'highlightbroken' => 1,
2107 'stubthreshold' => 0,
2108 'previewontop' => 1,
2109 'previewonfirst' => 0,
2111 'editsectiononrightclick' => 0,
2112 'editondblclick' => 0,
2116 'minordefault' => 0,
2117 'date' => 'default',
2120 'rememberpassword' => 0,
2121 'enotifwatchlistpages' => 0,
2122 'enotifusertalkpages' => 1,
2123 'enotifminoredits' => 0,
2124 'enotifrevealaddr' => 0,
2125 'shownumberswatching' => 1,
2127 'externaleditor' => 0,
2128 'externaldiff' => 0,
2129 'showjumplinks' => 1,
2130 'numberheadings' => 0,
2131 'uselivepreview' => 0,
2132 'watchlistdays' => 3.0,
2133 'extendwatchlist' => 0,
2134 'watchlisthideminor' => 0,
2135 'watchlisthidebots' => 0,
2136 'watchlisthideown' => 0,
2137 'watchcreations' => 0,
2138 'watchdefault' => 0,
2140 'watchdeletion' => 0,
2143 /** Whether or not to allow and use real name fields. Defaults to true. */
2144 $wgAllowRealName = true;
2146 /*****************************************************************************
2151 * A list of callback functions which are called once MediaWiki is fully initialised
2153 $wgExtensionFunctions = array();
2156 * Extension functions for initialisation of skins. This is called somewhat earlier
2157 * than $wgExtensionFunctions.
2159 $wgSkinExtensionFunctions = array();
2162 * Extension messages files
2163 * Associative array mapping extension name to the filename where messages can be found.
2164 * The file must create a variable called $messages.
2165 * When the messages are needed, the extension should call wfLoadExtensionMessages().
2168 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
2171 $wgExtensionMessagesFiles = array();
2174 * Parser output hooks.
2175 * This is an associative array where the key is an extension-defined tag
2176 * (typically the extension name), and the value is a PHP callback.
2177 * These will be called as an OutputPageParserOutput hook, if the relevant
2178 * tag has been registered with the parser output object.
2180 * Registration is done with $pout->addOutputHook( $tag, $data ).
2182 * The callback has the form:
2183 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
2185 $wgParserOutputHooks = array();
2188 * List of valid skin names.
2189 * The key should be the name in all lower case, the value should be a display name.
2190 * The default skins will be added later, by Skin::getSkinNames(). Use
2191 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
2193 $wgValidSkinNames = array();
2196 * Special page list.
2197 * See the top of SpecialPage.php for documentation.
2199 $wgSpecialPages = array();
2202 * Array mapping class names to filenames, for autoloading.
2204 $wgAutoloadClasses = array();
2207 * An array of extension types and inside that their names, versions, authors,
2208 * urls, descriptions and pointers to localized description msgs. Note that
2209 * the version, url, description and descriptionmsg key can be omitted.
2212 * $wgExtensionCredits[$type][] = array(
2213 * 'name' => 'Example extension',
2215 * 'svn-revision' => '$LastChangedRevision$',
2216 * 'author' => 'Foo Barstein',
2217 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2218 * 'description' => 'An example extension',
2219 * 'descriptionmsg' => 'exampleextension-desc',
2223 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
2225 $wgExtensionCredits = array();
2228 ******************************************************************************/
2231 * Allow user Javascript page?
2232 * This enables a lot of neat customizations, but may
2233 * increase security risk to users and server load.
2235 $wgAllowUserJs = false;
2238 * Allow user Cascading Style Sheets (CSS)?
2239 * This enables a lot of neat customizations, but may
2240 * increase security risk to users and server load.
2242 $wgAllowUserCss = false;
2244 /** Use the site's Javascript page? */
2245 $wgUseSiteJs = true;
2247 /** Use the site's Cascading Style Sheets (CSS)? */
2248 $wgUseSiteCss = true;
2250 /** Filter for Special:Randompage. Part of a WHERE clause */
2251 $wgExtraRandompageSQL = false;
2253 /** Allow the "info" action, very inefficient at the moment */
2254 $wgAllowPageInfo = false;
2256 /** Maximum indent level of toc. */
2257 $wgMaxTocLevel = 999;
2259 /** Name of the external diff engine to use */
2260 $wgExternalDiffEngine = false;
2262 /** Use RC Patrolling to check for vandalism */
2263 $wgUseRCPatrol = true;
2265 /** Use new page patrolling to check new pages on Special:Newpages */
2266 $wgUseNPPatrol = true;
2268 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
2271 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2272 * eg Recentchanges, Newpages. */
2275 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2276 * A cached version will continue to be served out even if changes
2277 * are made, until this many seconds runs out since the last render.
2279 * If set to 0, feed caching is disabled. Use this for debugging only;
2280 * feed generation can be pretty slow with diffs.
2282 $wgFeedCacheTimeout = 60;
2284 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2285 * pages larger than this size. */
2286 $wgFeedDiffCutoff = 32768;
2290 * Additional namespaces. If the namespaces defined in Language.php and
2291 * Namespace.php are insufficient, you can create new ones here, for example,
2292 * to import Help files in other languages.
2293 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2294 * no longer be accessible. If you rename it, then you can access them through
2295 * the new namespace name.
2297 * Custom namespaces should start at 100 to avoid conflicting with standard
2298 * namespaces, and should always follow the even/odd main/talk pattern.
2300 #$wgExtraNamespaces =
2301 # array(100 => "Hilfe",
2302 # 101 => "Hilfe_Diskussion",
2304 # 103 => "Discussion_Aide"
2306 $wgExtraNamespaces = NULL;
2310 * These are alternate names for the primary localised namespace names, which
2311 * are defined by $wgExtraNamespaces and the language file. If a page is
2312 * requested with such a prefix, the request will be redirected to the primary
2315 * Set this to a map from namespace names to IDs.
2317 * $wgNamespaceAliases = array(
2318 * 'Wikipedian' => NS_USER,
2322 $wgNamespaceAliases = array();
2325 * Limit images on image description pages to a user-selectable limit. In order
2326 * to reduce disk usage, limits can only be selected from a list.
2327 * The user preference is saved as an array offset in the database, by default
2328 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2329 * change it if you alter the array (see bug 8858).
2330 * This is the list of settings the user can choose from:
2332 $wgImageLimits = array (
2338 array(10000,10000) );
2341 * Adjust thumbnails on image pages according to a user setting. In order to
2342 * reduce disk usage, the values can only be selected from a list. This is the
2343 * list of settings the user can choose from:
2345 $wgThumbLimits = array(
2355 * Adjust width of upright images when parameter 'upright' is used
2356 * This allows a nicer look for upright images without the need to fix the width
2357 * by hardcoded px in wiki sourcecode.
2359 $wgThumbUpright = 0.75;
2362 * On category pages, show thumbnail gallery for images belonging to that
2363 * category instead of listing them as articles.
2365 $wgCategoryMagicGallery = true;
2368 * Paging limit for categories
2370 $wgCategoryPagingLimit = 200;
2373 * Browser Blacklist for unicode non compliant browsers
2374 * Contains a list of regexps : "/regexp/" matching problematic browsers
2376 $wgBrowserBlackList = array(
2378 * Netscape 2-4 detection
2379 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2380 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2381 * with a negative assertion. The [UIN] identifier specifies the level of security
2382 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2383 * The language string is unreliable, it is missing on NS4 Mac.
2385 * Reference: http://www.psychedelix.com/agents/index.shtml
2387 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2388 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2389 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2392 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2395 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2396 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2397 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2400 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2401 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2403 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2406 * Google wireless transcoder, seems to eat a lot of chars alive
2407 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2409 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2413 * Fake out the timezone that the server thinks it's in. This will be used for
2414 * date display and not for what's stored in the DB. Leave to null to retain
2415 * your server's OS-based timezone value. This is the same as the timezone.
2417 * This variable is currently used ONLY for signature formatting, not for
2420 # $wgLocaltimezone = 'GMT';
2421 # $wgLocaltimezone = 'PST8PDT';
2422 # $wgLocaltimezone = 'Europe/Sweden';
2423 # $wgLocaltimezone = 'CET';
2424 $wgLocaltimezone = null;
2427 * Set an offset from UTC in minutes to use for the default timezone setting
2428 * for anonymous users and new user accounts.
2430 * This setting is used for most date/time displays in the software, and is
2431 * overrideable in user preferences. It is *not* used for signature timestamps.
2433 * You can set it to match the configured server timezone like this:
2434 * $wgLocalTZoffset = date("Z") / 60;
2436 * If your server is not configured for the timezone you want, you can set
2437 * this in conjunction with the signature timezone and override the TZ
2438 * environment variable like so:
2439 * $wgLocaltimezone="Europe/Berlin";
2440 * putenv("TZ=$wgLocaltimezone");
2441 * $wgLocalTZoffset = date("Z") / 60;
2443 * Leave at NULL to show times in universal time (UTC/GMT).
2445 $wgLocalTZoffset = null;
2449 * When translating messages with wfMsg(), it is not always clear what should be
2450 * considered UI messages and what shoud be content messages.
2452 * For example, for regular wikipedia site like en, there should be only one
2453 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2454 * it as content of the site and call wfMsgForContent(), while for rendering the
2455 * text of the link, we call wfMsg(). The code in default behaves this way.
2456 * However, sites like common do offer different versions of 'mainpage' and the
2457 * like for different languages. This array provides a way to override the
2458 * default behavior. For example, to allow language specific mainpage and
2459 * community portal, set
2461 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2463 $wgForceUIMsgAsContentMsg = array();
2467 * Authentication plugin.
2472 * Global list of hooks.
2473 * Add a hook by doing:
2474 * $wgHooks['event_name'][] = $function;
2476 * $wgHooks['event_name'][] = array($function, $data);
2478 * $wgHooks['event_name'][] = array($object, 'method');
2483 * The logging system has two levels: an event type, which describes the
2484 * general category and can be viewed as a named subset of all logs; and
2485 * an action, which is a specific kind of event that can exist in that
2488 $wgLogTypes = array( '',
2502 * This restricts log access to those who have a certain right
2503 * Users without this will not see it in the option menu and can not view it
2504 * Restricted logs are not added to recent changes
2505 * Logs should remain non-transcludable
2507 $wgLogRestrictions = array(
2508 'suppress' => 'suppress'
2512 * Lists the message key string for each log type. The localized messages
2513 * will be listed in the user interface.
2515 * Extensions with custom log types may add to this array.
2517 $wgLogNames = array(
2518 '' => 'all-logs-page',
2519 'block' => 'blocklogpage',
2520 'protect' => 'protectlogpage',
2521 'rights' => 'rightslog',
2522 'delete' => 'dellogpage',
2523 'upload' => 'uploadlogpage',
2524 'move' => 'movelogpage',
2525 'import' => 'importlogpage',
2526 'patrol' => 'patrol-log-page',
2527 'merge' => 'mergelog',
2528 'suppress' => 'suppressionlog',
2532 * Lists the message key string for descriptive text to be shown at the
2533 * top of each log type.
2535 * Extensions with custom log types may add to this array.
2537 $wgLogHeaders = array(
2538 '' => 'alllogstext',
2539 'block' => 'blocklogtext',
2540 'protect' => 'protectlogtext',
2541 'rights' => 'rightslogtext',
2542 'delete' => 'dellogpagetext',
2543 'upload' => 'uploadlogpagetext',
2544 'move' => 'movelogpagetext',
2545 'import' => 'importlogpagetext',
2546 'patrol' => 'patrol-log-header',
2547 'merge' => 'mergelogpagetext',
2548 'suppress' => 'suppressionlogtext',
2552 * Lists the message key string for formatting individual events of each
2553 * type and action when listed in the logs.
2555 * Extensions with custom log types may add to this array.
2557 $wgLogActions = array(
2558 'block/block' => 'blocklogentry',
2559 'block/unblock' => 'unblocklogentry',
2560 'protect/protect' => 'protectedarticle',
2561 'protect/modify' => 'modifiedarticleprotection',
2562 'protect/unprotect' => 'unprotectedarticle',
2563 'rights/rights' => 'rightslogentry',
2564 'delete/delete' => 'deletedarticle',
2565 'delete/restore' => 'undeletedarticle',
2566 'delete/revision' => 'revdelete-logentry',
2567 'delete/event' => 'logdelete-logentry',
2568 'upload/upload' => 'uploadedimage',
2569 'upload/overwrite' => 'overwroteimage',
2570 'upload/revert' => 'uploadedimage',
2571 'move/move' => '1movedto2',
2572 'move/move_redir' => '1movedto2_redir',
2573 'import/upload' => 'import-logentry-upload',
2574 'import/interwiki' => 'import-logentry-interwiki',
2575 'merge/merge' => 'pagemerge-logentry',
2576 'suppress/revision' => 'revdelete-logentry',
2577 'suppress/file' => 'revdelete-logentry',
2578 'suppress/event' => 'logdelete-logentry',
2579 'suppress/delete' => 'suppressedarticle',
2580 'suppress/block' => 'blocklogentry',
2584 * List of special pages, followed by what subtitle they should go under
2585 * at Special:SpecialPages
2587 $wgSpecialPageGroups = array(
2588 'DoubleRedirects' => 'maintenance',
2589 'BrokenRedirects' => 'maintenance',
2590 'Lonelypages' => 'maintenance',
2591 'Uncategorizedpages' => 'maintenance',
2592 'Uncategorizedcategories' => 'maintenance',
2593 'Uncategorizedimages' => 'maintenance',
2594 'Uncategorizedtemplates' => 'maintenance',
2595 'Unusedcategories' => 'maintenance',
2596 'Unusedimages' => 'maintenance',
2597 'Protectedpages' => 'maintenance',
2598 'Protectedtitles' => 'maintenance',
2599 'Unusedtemplates' => 'maintenance',
2600 'Withoutinterwiki' => 'maintenance',
2601 'Longpages' => 'maintenance',
2603 'Userlogin' => 'login',
2604 'Userlogout' => 'login',
2605 'CreateAccount' => 'login',
2607 'Recentchanges' => 'changes',
2608 'Recentchangeslinked' => 'changes',
2609 'Watchlist' => 'changes',
2610 'Newimages' => 'changes',
2611 'Newpages' => 'changes',
2614 'Upload' => 'media',
2615 'Imagelist' => 'media',
2616 'MIMEsearch' => 'media',
2617 'FileDuplicateSearch' => 'media',
2618 'Filepath' => 'media',
2620 'Listusers' => 'users',
2621 'Listgrouprights' => 'users',
2622 'Ipblocklist' => 'users',
2623 'Contributions' => 'users',
2624 'Emailuser' => 'users',
2625 'Listadmins' => 'users',
2626 'Listbots' => 'users',
2627 'Userrights' => 'users',
2628 'Blockip' => 'users',
2630 'Wantedpages' => 'needy',
2631 'Wantedcategories' => 'needy',
2632 'Shortpages' => 'needy',
2633 'Ancientpages' => 'needy',
2634 'Deadendpages' => 'needy',
2636 'Mostlinked' => 'highuse',
2637 'Mostlinkedcategories' => 'highuse',
2638 'Mostlinkedtemplates' => 'highuse',
2639 'Mostcategories' => 'highuse',
2640 'Mostimages' => 'highuse',
2641 'Mostrevisions' => 'highuse',
2643 'Statistics' => 'other',
2644 'Fewestrevisions' => 'other',
2645 'Randompage' => 'other',
2646 'Disambiguations' => 'other',
2647 'Specialpages' => 'other',
2648 'Blockme' => 'other',
2649 'Movepage' => 'other',
2650 'MergeHistory' => 'other',
2651 'Lockdb' => 'other',
2652 'Unlockdb' => 'other',
2653 'Version' => 'other',
2654 'Whatlinkshere' => 'other',
2655 'Booksources' => 'other',
2656 'Revisiondelete' => 'other',
2657 'Export' => 'other',
2658 'Categories' => 'other',
2659 'Undelete' => 'other',
2660 'Import' => 'other',
2661 'Unwatchedpages' => 'other',
2662 'Randomredirect' => 'other',
2663 'Allpages' => 'other',
2664 'Allmessages' => 'other',
2665 'Prefixindex' => 'other',
2666 'Listredirects' => 'other',
2667 'Preferences' => 'other',
2668 'Resetpass' => 'other',
2669 'Mypage' => 'other',
2670 'Mytalk' => 'other',
2671 'Mycontributions' => 'other',
2675 * Experimental preview feature to fetch rendered text
2676 * over an XMLHttpRequest from JavaScript instead of
2677 * forcing a submit and reload of the whole page.
2678 * Leave disabled unless you're testing it.
2680 $wgLivePreview = false;
2683 * Disable the internal MySQL-based search, to allow it to be
2684 * implemented by an extension instead.
2686 $wgDisableInternalSearch = false;
2689 * Set this to a URL to forward search requests to some external location.
2690 * If the URL includes '$1', this will be replaced with the URL-encoded
2693 * For example, to forward to Google you'd have something like:
2694 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2695 * '&domains=http://example.com' .
2696 * '&sitesearch=http://example.com' .
2697 * '&ie=utf-8&oe=utf-8';
2699 $wgSearchForwardUrl = null;
2702 * If true, external URL links in wiki text will be given the
2703 * rel="nofollow" attribute as a hint to search engines that
2704 * they should not be followed for ranking purposes as they
2705 * are user-supplied and thus subject to spamming.
2707 $wgNoFollowLinks = true;
2710 * Namespaces in which $wgNoFollowLinks doesn't apply.
2711 * See Language.php for a list of namespaces.
2713 $wgNoFollowNsExceptions = array();
2716 * Default robot policy.
2717 * The default policy is to encourage indexing and following of links.
2718 * It may be overridden on a per-namespace and/or per-page basis.
2720 $wgDefaultRobotPolicy = 'index,follow';
2723 * Robot policies per namespaces.
2724 * The default policy is given above, the array is made of namespace
2725 * constants as defined in includes/Defines.php
2727 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2729 $wgNamespaceRobotPolicies = array();
2732 * Robot policies per article.
2733 * These override the per-namespace robot policies.
2734 * Must be in the form of an array where the key part is a properly
2735 * canonicalised text form title and the value is a robot policy.
2737 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex' );
2739 $wgArticleRobotPolicies = array();
2742 * Specifies the minimal length of a user password. If set to
2743 * 0, empty passwords are allowed.
2745 $wgMinimalPasswordLength = 0;
2748 * Activate external editor interface for files and pages
2749 * See http://meta.wikimedia.org/wiki/Help:External_editors
2751 $wgUseExternalEditor = true;
2753 /** Whether or not to sort special pages in Special:Specialpages */
2755 $wgSortSpecialPages = true;
2758 * Specify the name of a skin that should not be presented in the
2759 * list of available skins.
2760 * Use for blacklisting a skin which you do not want to remove
2761 * from the .../skins/ directory
2764 $wgSkipSkins = array(); # More of the same
2767 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2769 $wgDisabledActions = array();
2772 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2774 $wgDisableHardRedirects = false;
2777 * Use http.dnsbl.sorbs.net to check for open proxies
2779 $wgEnableSorbs = false;
2780 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2783 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2786 $wgProxyWhitelist = array();
2789 * Simple rate limiter options to brake edit floods.
2790 * Maximum number actions allowed in the given number of seconds;
2791 * after that the violating client receives HTTP 500 error pages
2792 * until the period elapses.
2794 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2796 * This option set is experimental and likely to change.
2797 * Requires memcached.
2799 $wgRateLimits = array(
2801 'anon' => null, // for any and all anonymous edits (aggregate)
2802 'user' => null, // for each logged-in user
2803 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
2804 'ip' => null, // for each anon and recent account
2805 'subnet' => null, // ... with final octet removed
2813 'mailpassword' => array(
2816 'emailuser' => array(
2822 * Set to a filename to log rate limiter hits.
2824 $wgRateLimitLog = null;
2827 * Array of groups which should never trigger the rate limiter
2829 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2832 * On Special:Unusedimages, consider images "used", if they are put
2833 * into a category. Default (false) is not to count those as used.
2835 $wgCountCategorizedImagesAsUsed = false;
2838 * External stores allow including content
2839 * from non database sources following URL links
2841 * Short names of ExternalStore classes may be specified in an array here:
2842 * $wgExternalStores = array("http","file","custom")...
2844 * CAUTION: Access to database might lead to code execution
2846 $wgExternalStores = false;
2849 * An array of external mysql servers, e.g.
2850 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2851 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
2853 $wgExternalServers = array();
2856 * The place to put new revisions, false to put them in the local text table.
2857 * Part of a URL, e.g. DB://cluster1
2859 * Can be an array instead of a single string, to enable data distribution. Keys
2860 * must be consecutive integers, starting at zero. Example:
2862 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2865 $wgDefaultExternalStore = false;
2868 * Revision text may be cached in $wgMemc to reduce load on external storage
2869 * servers and object extraction overhead for frequently-loaded revisions.
2871 * Set to 0 to disable, or number of seconds before cache expiry.
2873 $wgRevisionCacheExpiry = 0;
2876 * list of trusted media-types and mime types.
2877 * Use the MEDIATYPE_xxx constants to represent media types.
2878 * This list is used by Image::isSafeFile
2880 * Types not listed here will have a warning about unsafe content
2881 * displayed on the images description page. It would also be possible
2882 * to use this for further restrictions, like disabling direct
2883 * [[media:...]] links for non-trusted formats.
2885 $wgTrustedMediaFormats= array(
2886 MEDIATYPE_BITMAP
, //all bitmap formats
2887 MEDIATYPE_AUDIO
, //all audio formats
2888 MEDIATYPE_VIDEO
, //all plain video formats
2889 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
2890 "application/pdf", //PDF files
2891 #"application/x-shockwave-flash", //flash/shockwave movie
2895 * Allow special page inclusions such as {{Special:Allpages}}
2897 $wgAllowSpecialInclusion = true;
2900 * Timeout for HTTP requests done via CURL
2905 * Proxy to use for CURL requests.
2907 $wgHTTPProxy = false;
2910 * Enable interwiki transcluding. Only when iw_trans=1.
2912 $wgEnableScaryTranscluding = false;
2914 * Expiry time for interwiki transclusion
2916 $wgTranscludeCacheExpiry = 3600;
2919 * Support blog-style "trackbacks" for articles. See
2920 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2922 $wgUseTrackbacks = false;
2925 * Enable filtering of categories in Recentchanges
2927 $wgAllowCategorizedRecentChanges = false ;
2930 * Number of jobs to perform per request. May be less than one in which case
2931 * jobs are performed probabalistically. If this is zero, jobs will not be done
2932 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2933 * be run periodically.
2938 * Number of rows to update per job
2940 $wgUpdateRowsPerJob = 500;
2943 * Number of rows to update per query
2945 $wgUpdateRowsPerQuery = 10;
2948 * Enable AJAX framework
2953 * Enable auto suggestion for the search bar
2954 * Requires $wgUseAjax to be true too.
2955 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2957 $wgAjaxSearch = false;
2960 * List of Ajax-callable functions.
2961 * Extensions acting as Ajax callbacks must register here
2963 $wgAjaxExportList = array( );
2966 * Enable watching/unwatching pages using AJAX.
2967 * Requires $wgUseAjax to be true too.
2968 * Causes wfAjaxWatch to be added to $wgAjaxExportList
2970 $wgAjaxWatch = true;
2973 * Enable AJAX check for file overwrite, pre-upload
2975 $wgAjaxUploadDestCheck = true;
2978 * Enable previewing licences via AJAX
2980 $wgAjaxLicensePreview = true;
2983 * Allow DISPLAYTITLE to change title display
2985 $wgAllowDisplayTitle = true;
2988 * Array of usernames which may not be registered or logged in from
2989 * Maintenance scripts can still use these
2991 $wgReservedUsernames = array(
2992 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
2993 'Conversion script', // Used for the old Wikipedia software upgrade
2994 'Maintenance script', // Maintenance scripts which perform editing, image import script
2995 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
2999 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
3000 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
3001 * crap files as images. When this directive is on, <title> will be allowed in files with
3002 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
3003 * and doesn't send appropriate MIME types for SVG images.
3005 $wgAllowTitlesInSVG = false;
3008 * Array of namespaces which can be deemed to contain valid "content", as far
3009 * as the site statistics are concerned. Useful if additional namespaces also
3010 * contain "content" which should be considered when generating a count of the
3011 * number of articles in the wiki.
3013 $wgContentNamespaces = array( NS_MAIN
);
3016 * Maximum amount of virtual memory available to shell processes under linux, in KB.
3018 $wgMaxShellMemory = 102400;
3021 * Maximum file size created by shell processes under linux, in KB
3022 * ImageMagick convert for example can be fairly hungry for scratch space
3024 $wgMaxShellFileSize = 102400;
3028 * Path of the djvudump executable
3029 * Enable this and $wgDjvuRenderer to enable djvu rendering
3031 # $wgDjvuDump = 'djvudump';
3035 * Path of the ddjvu DJVU renderer
3036 * Enable this and $wgDjvuDump to enable djvu rendering
3038 # $wgDjvuRenderer = 'ddjvu';
3039 $wgDjvuRenderer = null;
3042 * Path of the djvutoxml executable
3043 * This works like djvudump except much, much slower as of version 3.5.
3045 * For now I recommend you use djvudump instead. The djvuxml output is
3046 * probably more stable, so we'll switch back to it as soon as they fix
3047 * the efficiency problem.
3048 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
3050 # $wgDjvuToXML = 'djvutoxml';
3051 $wgDjvuToXML = null;
3055 * Shell command for the DJVU post processor
3056 * Default: pnmtopng, since ddjvu generates ppm output
3057 * Set this to false to output the ppm file directly.
3059 $wgDjvuPostProcessor = 'pnmtojpeg';
3061 * File extension for the DJVU post processor output
3063 $wgDjvuOutputExtension = 'jpg';
3066 * Enable the MediaWiki API for convenient access to
3067 * machine-readable data via api.php
3069 * See http://www.mediawiki.org/wiki/API
3071 $wgEnableAPI = true;
3074 * Allow the API to be used to perform write operations
3075 * (page edits, rollback, etc.) when an authorised user
3078 $wgEnableWriteAPI = false;
3081 * API module extensions
3082 * Associative array mapping module name to class name.
3083 * Extension modules may override the core modules.
3085 $wgAPIModules = array();
3088 * Maximum amount of rows to scan in a DB query in the API
3089 * The default value is generally fine
3091 $wgAPIMaxDBRows = 5000;
3094 * Parser test suite files to be run by parserTests.php when no specific
3095 * filename is passed to it.
3097 * Extensions may add their own tests to this array, or site-local tests
3098 * may be added via LocalSettings.php
3102 $wgParserTestFiles = array(
3103 "$IP/maintenance/parserTests.txt",
3107 * Break out of framesets. This can be used to prevent external sites from
3108 * framing your site with ads.
3110 $wgBreakFrames = false;
3113 * Set this to an array of special page names to prevent
3114 * maintenance/updateSpecialPages.php from updating those pages.
3116 $wgDisableQueryPageUpdate = false;
3119 * Set this to false to disable cascading protection
3121 $wgEnableCascadingProtection = true;
3124 * Disable output compression (enabled by default if zlib is available)
3126 $wgDisableOutputCompression = false;
3129 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
3130 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
3131 * show a more obvious warning.
3133 $wgSlaveLagWarning = 10;
3134 $wgSlaveLagCritical = 30;
3137 * Parser configuration. Associative array with the following members:
3139 * class The class name
3140 * preprocessorClass The preprocessor class, by default it is Preprocessor_Hash.
3141 * Preprocessor_DOM is also available and better tested, but
3142 * it has a dependency of the dom module of PHP.
3143 * It has no effect with Parser_OldPP parser class.
3146 * The entire associative array will be passed through to the constructor as
3147 * the first parameter. Note that only Setup.php can use this variable --
3148 * the configuration will change at runtime via $wgParser member functions, so
3149 * the contents of this variable will be out-of-date. The variable can only be
3150 * changed during LocalSettings.php, in particular, it can't be changed during
3151 * an extension setup function.
3153 $wgParserConf = array(
3154 'class' => 'Parser',
3155 'preprocessorClass' => 'Preprocessor_Hash',
3159 * Hooks that are used for outputting exceptions
3161 * $wgExceptionHooks[] = $funcname
3163 * $wgExceptionHooks[] = array( $class, $funcname )
3164 * Hooks should return strings or false
3166 $wgExceptionHooks = array();
3169 * Page property link table invalidation lists.
3170 * Should only be set by extensions.
3172 $wgPagePropLinkInvalidations = array(
3173 'hiddencat' => 'categorylinks',
3177 * Maximum number of links to a redirect page listed on
3178 * Special:Whatlinkshere/RedirectDestination
3180 $wgMaxRedirectLinksRetrieved = 500;
3183 * Maximum number of calls to expensive parser functions
3184 * such as PAGESINCATEGORY.
3186 $wgExpensiveParserFunctionLimit = 100;
3189 * Array of namespaces to generate a sitemap for when the
3190 * maintenance/generateSitemap.php script is run, or false
3191 * if one is to be generated for all namespaces.
3193 $wgSitemapNamespaces = false;