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.14alpha';
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.
48 * Normally you can ignore this and it will be something like
49 * $wgMetaNamespace . "_talk". In some languages, you may want to set this
50 * manually for grammatical reasons. It is currently only respected by those
51 * languages where it might be relevant and where no automatic grammar converter
54 $wgMetaNamespaceTalk = false;
57 /** URL of the server. It will be automatically built including https mode */
60 if( isset( $_SERVER['SERVER_NAME'] ) ) {
61 $wgServerName = $_SERVER['SERVER_NAME'];
62 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
63 $wgServerName = $_SERVER['HOSTNAME'];
64 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
65 $wgServerName = $_SERVER['HTTP_HOST'];
66 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
67 $wgServerName = $_SERVER['SERVER_ADDR'];
69 $wgServerName = 'localhost';
72 # Before we put http:// and other things onto it, need to
73 # wrap IPv6 in []. Bug 14977.
74 if ( IP
::isIPv6( $wgServerName ) ) {
75 $wgServerName = '[' . $wgServerName . ']';
78 # check if server use https:
79 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
81 $wgServer = $wgProto.'://' . $wgServerName;
82 # If the port is a non-standard one, add it to the URL
83 if( isset( $_SERVER['SERVER_PORT'] )
84 && !strpos( $wgServerName, ':' )
85 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
86 ||
( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
88 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
93 * The path we should point to.
94 * It might be a virtual path in case with use apache mod_rewrite for example
96 * This *needs* to be set correctly.
98 * Other paths will be set to defaults based on it unless they are directly
99 * set in LocalSettings.php
101 $wgScriptPath = '/wiki';
104 * Whether to support URLs like index.php/Page_title These often break when PHP
105 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
106 * but then again it may not; lighttpd converts incoming path data to lowercase
107 * on systems with case-insensitive filesystems, and there have been reports of
108 * problems on Apache as well.
110 * To be safe we'll continue to keep it off by default.
112 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
113 * incorrect garbage, or to true if it is really correct.
115 * The default $wgArticlePath will be set based on this value at runtime, but if
116 * you have customized it, having this incorrectly set to true can cause
117 * redirect loops when "pretty URLs" are used.
120 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
121 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
122 ( strpos( php_sapi_name(), 'isapi' ) === false );
126 * Script users will request to get articles
127 * ATTN: Old installations used wiki.phtml and redirect.phtml - make sure that
128 * LocalSettings.php is correctly set!
130 * Will be set based on $wgScriptPath in Setup.php if not overridden in
131 * LocalSettings.php. Generally you should not need to change this unless you
132 * don't like seeing "index.php".
134 $wgScriptExtension = '.php'; ///< extension to append to script names by default
135 $wgScript = false; ///< defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
136 $wgRedirectScript = false; ///< defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
141 * These various web and file path variables are set to their defaults
142 * in Setup.php if they are not explicitly set from LocalSettings.php.
143 * If you do override them, be sure to set them all!
145 * These will relatively rarely need to be set manually, unless you are
146 * splitting style sheets or images outside the main document root.
149 * style path as seen by users
151 $wgStylePath = false; ///< defaults to "{$wgScriptPath}/skins"
153 * filesystem stylesheets directory
155 $wgStyleDirectory = false; ///< defaults to "{$IP}/skins"
156 $wgStyleSheetPath = &$wgStylePath;
157 $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
158 $wgVariantArticlePath = false;
159 $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images"
160 $wgUploadDirectory = false; ///< defaults to "{$IP}/images"
161 $wgHashedUploadDirectory = true;
162 $wgLogo = false; ///< defaults to "{$wgStylePath}/common/images/wiki.png"
163 $wgFavicon = '/favicon.ico';
164 $wgAppleTouchIcon = false; ///< This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
165 $wgMathPath = false; ///< defaults to "{$wgUploadPath}/math"
166 $wgMathDirectory = false; ///< defaults to "{$wgUploadDirectory}/math"
167 $wgTmpDirectory = false; ///< defaults to "{$wgUploadDirectory}/tmp"
168 $wgUploadBaseUrl = "";
172 * Default value for chmoding of new directories.
174 $wgDirectoryMode = 0777;
177 * New file storage paths; currently used only for deleted files.
180 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
183 $wgFileStore = array();
184 $wgFileStore['deleted']['directory'] = false;///< Defaults to $wgUploadDirectory/deleted
185 $wgFileStore['deleted']['url'] = null; ///< Private
186 $wgFileStore['deleted']['hash'] = 3; ///< 3-level subdirectory split
189 * File repository structures
191 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
192 * a an array of such structures. Each repository structure is an associative
193 * array of properties configuring the repository.
195 * Properties required for all repos:
196 * class The class name for the repository. May come from the core or an extension.
197 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
199 * name A unique name for the repository.
201 * For all core repos:
202 * url Base public URL
203 * hashLevels The number of directory levels for hash-based division of files
204 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
205 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
207 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
208 * start with a capital letter. The current implementation may give incorrect
209 * description page links when the local $wgCapitalLinks and initialCapital
211 * pathDisclosureProtection
212 * May be 'paranoid' to remove all parameters from error messages, 'none' to
213 * leave the paths in unchanged, or 'simple' to replace paths with
214 * placeholders. Default for LocalRepo is 'simple'.
216 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
217 * for local repositories:
218 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
219 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
220 * http://en.wikipedia.org/w
222 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
223 * fetchDescription Fetch the text of the remote file description page. Equivalent to
224 * $wgFetchCommonsDescriptions.
227 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
228 * equivalent to the corresponding member of $wgDBservers
229 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
230 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
232 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
233 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
235 $wgLocalFileRepo = false;
236 $wgForeignFileRepos = array();
240 * Allowed title characters -- regex character class
241 * Don't change this unless you know what you're doing
243 * Problematic punctuation:
244 * []{}|# Are needed for link syntax, never enable these
245 * <> Causes problems with HTML escaping, don't use
246 * % Enabled by default, minor problems with path to query rewrite rules, see below
247 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
248 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
250 * All three of these punctuation problems can be avoided by using an alias, instead of a
251 * rewrite rule of either variety.
253 * The problem with % is that when using a path to query rewrite rule, URLs are
254 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
255 * %253F, for example, becomes "?". Our code does not double-escape to compensate
256 * for this, indeed double escaping would break if the double-escaped title was
257 * passed in the query string rather than the path. This is a minor security issue
258 * because articles can be created such that they are hard to view or edit.
260 * In some rare cases you may wish to remove + for compatibility with old links.
262 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
263 * this breaks interlanguage links
265 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
269 * The external URL protocols
271 $wgUrlProtocols = array(
277 'telnet://', // Well if we're going to support the above.. -ævar
278 'nntp://', // @bug 3808 RFC 1738
284 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
285 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
289 /** Configuration for different virus scanners. This an associative array of associative arrays:
290 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
291 * valid values for $wgAntivirus are the keys defined in this array.
293 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
295 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
296 * file to scan. If not present, the filename will be appended to the command. Note that this must be
297 * overwritten if the scanner is not in the system path; in that case, plase set
298 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
300 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
301 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
302 * the file if $wgAntivirusRequired is not set.
303 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
304 * which is probably imune to virusses. This causes the file to pass.
305 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
306 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
307 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
309 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
310 * output. The relevant part should be matched as group one (\1).
311 * If not defined or the pattern does not match, the full message is shown to the user.
313 $wgAntivirusSetup = array(
317 'command' => "clamscan --no-summary ",
320 "0" => AV_NO_VIRUS
, # no virus
321 "1" => AV_VIRUS_FOUND
, # virus found
322 "52" => AV_SCAN_ABORTED
, # unsupported file format (probably imune)
323 "*" => AV_SCAN_FAILED
, # else scan failed
326 'messagepattern' => '/.*?:(.*)/sim',
331 'command' => "f-prot ",
334 "0" => AV_NO_VIRUS
, # no virus
335 "3" => AV_VIRUS_FOUND
, # virus found
336 "6" => AV_VIRUS_FOUND
, # virus found
337 "*" => AV_SCAN_FAILED
, # else scan failed
340 'messagepattern' => '/.*?Infection:(.*)$/m',
345 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
346 $wgAntivirusRequired= true;
348 /** Determines if the mime type of uploaded files should be checked */
349 $wgVerifyMimeType= true;
351 /** Sets the mime type definition file to use by MimeMagic.php. */
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 $wgMimeInfoFile= "includes/mime.info";
358 #$wgMimeInfoFile= NULL; #use built-in defaults only.
360 /** Switch for loading the FileInfo extension by PECL at runtime.
361 * This should be used only if fileinfo is installed as a shared object
362 * or a dynamic libary
364 $wgLoadFileinfoExtension= false;
366 /** Sets an external mime detector program. The command must print only
367 * the mime type to standard output.
368 * The name of the file to process will be appended to the command given here.
369 * If not set or NULL, mime_content_type will be used if available.
371 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
372 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
374 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
375 * things, because only a few types of images are needed and file extensions
378 $wgTrivialMimeDetection= false;
381 * Additional XML types we can allow via mime-detection.
382 * array = ( 'rootElement' => 'associatedMimeType' )
384 $wgXMLMimeTypes = array(
385 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
386 'svg' => 'image/svg+xml',
387 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
388 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
389 'html' => 'text/html', // application/xhtml+xml?
393 * To set 'pretty' URL paths for actions other than
394 * plain page views, add to this array. For instance:
395 * 'edit' => "$wgScriptPath/edit/$1"
397 * There must be an appropriate script or rewrite rule
398 * in place to handle these URLs.
400 $wgActionPaths = array();
403 * If you operate multiple wikis, you can define a shared upload path here.
404 * Uploads to this wiki will NOT be put there - they will be put into
405 * $wgUploadDirectory.
406 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
407 * no file of the given name is found in the local repository (for [[Image:..]],
408 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
411 * Note that these configuration settings can now be defined on a per-
412 * repository basis for an arbitrary number of file repositories, using the
413 * $wgForeignFileRepos variable.
415 $wgUseSharedUploads = false;
416 /** Full path on the web server where shared uploads can be found */
417 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
418 /** Fetch commons image description pages and display them on the local wiki? */
419 $wgFetchCommonsDescriptions = false;
420 /** Path on the file system where shared uploads can be found. */
421 $wgSharedUploadDirectory = "/var/www/wiki3/images";
422 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
423 $wgSharedUploadDBname = false;
424 /** Optional table prefix used in database. */
425 $wgSharedUploadDBprefix = '';
426 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
427 $wgCacheSharedUploads = true;
428 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
429 $wgAllowCopyUploads = false;
431 * Max size for uploads, in bytes. Currently only works for uploads from URL
432 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
433 * normal uploads is currently to edit php.ini.
435 $wgMaxUploadSize = 1024*1024*100; # 100MB
438 * Point the upload navigation link to an external URL
439 * Useful if you want to use a shared repository by default
440 * without disabling local uploads (use $wgEnableUploads = false for that)
441 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
443 $wgUploadNavigationUrl = false;
446 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
447 * generating them on render and outputting a static URL. This is necessary if some of your
448 * apache servers don't have read/write access to the thumbnail path.
451 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
453 $wgThumbnailScriptPath = false;
454 $wgSharedThumbnailScriptPath = false;
457 * Set the following to false especially if you have a set of files that need to
458 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
461 $wgHashedSharedUploadDirectory = true;
464 * Base URL for a repository wiki. Leave this blank if uploads are just stored
465 * in a shared directory and not meant to be accessible through a separate wiki.
466 * Otherwise the image description pages on the local wiki will link to the
467 * image description page on this wiki.
469 * Please specify the namespace, as in the example below.
471 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
478 * Site admin email address
479 * Default to wikiadmin@SERVER_NAME
481 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
484 * Password reminder email address
485 * The address we should use as sender when a user is requesting his password
486 * Default to apache@SERVER_NAME
488 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
491 * dummy address which should be accepted during mail send action
492 * It might be necessay to adapt the address or to set it equal
493 * to the $wgEmergencyContact address
495 #$wgNoReplyAddress = $wgEmergencyContact;
496 $wgNoReplyAddress = 'reply@not.possible';
499 * Set to true to enable the e-mail basic features:
500 * Password reminders, etc. If sending e-mail on your
501 * server doesn't work, you might want to disable this.
503 $wgEnableEmail = true;
506 * Set to true to enable user-to-user e-mail.
507 * This can potentially be abused, as it's hard to track.
509 $wgEnableUserEmail = true;
512 * Set to true to put the sending user's email in a Reply-To header
513 * instead of From. ($wgEmergencyContact will be used as From.)
515 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
516 * which can cause problems with SPF validation and leak recipient addressses
517 * when bounces are sent to the sender.
519 $wgUserEmailUseReplyTo = false;
522 * Minimum time, in hours, which must elapse between password reminder
523 * emails for a given account. This is to prevent abuse by mail flooding.
525 $wgPasswordReminderResendTime = 24;
529 * For using a direct (authenticated) SMTP server connection.
530 * Default to false or fill an array :
532 * "host" => 'SMTP domain',
533 * "IDHost" => 'domain for MessageID',
535 * "auth" => true/false,
536 * "username" => user,
537 * "password" => password
546 /** database host name or ip address */
547 $wgDBserver = 'localhost';
548 /** database port number */
550 /** name of the database */
551 $wgDBname = 'wikidb';
553 $wgDBconnection = '';
554 /** Database username */
555 $wgDBuser = 'wikiuser';
556 /** Database user's password */
562 * Leave as null to select the default search engine for the
563 * selected database type (eg SearchMySQL), or set to a class
564 * name to override to a custom search engine.
566 $wgSearchType = null;
568 /** Table name prefix */
570 /** MySQL table options to use during installation or update */
571 $wgDBTableOptions = 'ENGINE=InnoDB';
573 /** Mediawiki schema */
574 $wgDBmwschema = 'mediawiki';
575 /** Tsearch2 schema */
576 $wgDBts2schema = 'public';
578 /** To override default SQLite data directory ($docroot/../data) */
579 $wgSQLiteDataDir = '';
582 * Make all database connections secretly go to localhost. Fool the load balancer
583 * thinking there is an arbitrarily large cluster of servers to connect to.
584 * Useful for debugging.
586 $wgAllDBsAreLocalhost = false;
591 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
592 $wgCheckDBSchema = true;
596 * Shared database for multiple wikis. Commonly used for storing a user table
597 * for single sign-on. The server for this database must be the same as for the
599 * For backwards compatibility the shared prefix is set to the same as the local
600 * prefix, and the user table is listed in the default list of shared tables.
602 * $wgSharedTables may be customized with a list of tables to share in the shared
603 * datbase. However it is advised to limit what tables you do share as many of
604 * MediaWiki's tables may have side effects if you try to share them.
608 $wgSharedPrefix = false; # Defaults to $wgDBprefix
609 $wgSharedTables = array( 'user' );
612 * Database load balancer
613 * This is a two-dimensional array, an array of server info structures
616 * dbname: Default database name
618 * password: DB password
619 * type: "mysql" or "postgres"
620 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
621 * groupLoads: array of load ratios, the key is the query group name. A query may belong
622 * to several groups, the most specific group defined here is used.
625 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
626 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
627 * DBO_TRX -- wrap entire request in a transaction
628 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
629 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
631 * max lag: (optional) Maximum replication lag before a slave will taken out of rotation
632 * max threads: (optional) Maximum number of running threads
634 * These and any other user-defined properties will be assigned to the mLBInfo member
635 * variable of the Database object.
637 * Leave at false to use the single-server variables above. If you set this
638 * variable, the single-server variables will generally be ignored (except
639 * perhaps in some command-line scripts).
641 * The first server listed in this array (with key 0) will be the master. The
642 * rest of the servers will be slaves. To prevent writes to your slaves due to
643 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
644 * slaves in my.cnf. You can set read_only mode at runtime using:
648 * Since the effect of writing to a slave is so damaging and difficult to clean
649 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
650 * our masters, and then set read_only=0 on masters at runtime.
652 $wgDBservers = false;
655 * Load balancer factory configuration
656 * To set up a multi-master wiki farm, set the class here to something that
657 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
658 * The class identified here is responsible for reading $wgDBservers,
659 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
661 * The LBFactory_Multi class is provided for this purpose, please see
662 * includes/db/LBFactory_Multi.php for configuration information.
664 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
666 /** How long to wait for a slave to catch up to the master */
667 $wgMasterWaitTimeout = 10;
669 /** File to log database errors to */
670 $wgDBerrorLog = false;
672 /** When to give an error message */
673 $wgDBClusterTimeout = 10;
676 * Scale load balancer polling time so that under overload conditions, the database server
677 * receives a SHOW STATUS query at an average interval of this many microseconds
679 $wgDBAvgStatusPoll = 2000;
683 * MySQL 3.x : used to discard words that MySQL will not return any results for
684 * shorter values configure mysql directly.
685 * MySQL 4.x : ignore it and configure mySQL
686 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
689 /** Set to true if using InnoDB tables */
690 $wgDBtransactions = false;
691 /** Set to true for compatibility with extensions that might be checking.
692 * MySQL 3.23.x is no longer supported. */
696 * Set to true to engage MySQL 4.1/5.0 charset-related features;
697 * for now will just cause sending of 'SET NAMES=utf8' on connect.
699 * WARNING: THIS IS EXPERIMENTAL!
701 * May break if you're not using the table defs from mysql5/tables.sql.
702 * May break if you're upgrading an existing wiki if set differently.
703 * Broken symptoms likely to include incorrect behavior with page titles,
704 * usernames, comments etc containing non-ASCII characters.
705 * Might also cause failures on the object cache and other things.
707 * Even correct usage may cause failures with Unicode supplementary
708 * characters (those not in the Basic Multilingual Plane) unless MySQL
709 * has enhanced their Unicode support.
714 * Other wikis on this site, can be administered from a single developer
716 * Array numeric key => database name
718 $wgLocalDatabases = array();
721 * Object cache settings
722 * See Defines.php for types
724 $wgMainCacheType = CACHE_NONE
;
725 $wgMessageCacheType = CACHE_ANYTHING
;
726 $wgParserCacheType = CACHE_ANYTHING
;
729 $wgParserCacheExpireTime = 86400;
731 $wgSessionsInMemcached = false;
734 * Memcached-specific settings
735 * See docs/memcached.txt
737 $wgUseMemCached = false;
738 $wgMemCachedDebug = false; ///< Will be set to false in Setup.php, if the server isn't working
739 $wgMemCachedServers = array( '127.0.0.1:11000' );
740 $wgMemCachedPersistent = false;
744 * Directory for local copy of message cache, for use in addition to memcached
746 $wgLocalMessageCache = false;
748 * Defines format of local cache
749 * true - Serialized object
750 * false - PHP source file (Warning - security risk)
752 $wgLocalMessageCacheSerialized = true;
755 * Directory for compiled constant message array databases
756 * WARNING: turning anything on will just break things, aaaaaah!!!!
758 $wgCachedMessageArrays = false;
762 /** Site language code, should be one of ./languages/Language(.*).php */
763 $wgLanguageCode = 'en';
766 * Some languages need different word forms, usually for different cases.
767 * Used in Language::convertGrammar().
769 $wgGrammarForms = array();
770 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
772 /** Treat language links as magic connectors, not inline links */
773 $wgInterwikiMagic = true;
775 /** Hide interlanguage links from the sidebar */
776 $wgHideInterlanguageLinks = false;
778 /** List of language names or overrides for default names in Names.php */
779 $wgExtraLanguageNames = array();
781 /** We speak UTF-8 all the time now, unless some oddities happen */
782 $wgInputEncoding = 'UTF-8';
783 $wgOutputEncoding = 'UTF-8';
784 $wgEditEncoding = '';
787 * Set this to eg 'ISO-8859-1' to perform character set
788 * conversion when loading old revisions not marked with
789 * "utf-8" flag. Use this when converting wiki to UTF-8
790 * without the burdensome mass conversion of old text data.
792 * NOTE! This DOES NOT touch any fields other than old_text.
793 * Titles, comments, user names, etc still must be converted
794 * en masse in the database before continuing as a UTF-8 wiki.
796 $wgLegacyEncoding = false;
799 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
800 * create stub reference rows in the text table instead of copying
801 * the full text of all current entries from 'cur' to 'text'.
803 * This will speed up the conversion step for large sites, but
804 * requires that the cur table be kept around for those revisions
805 * to remain viewable.
807 * maintenance/migrateCurStubs.php can be used to complete the
808 * migration in the background once the wiki is back online.
810 * This option affects the updaters *only*. Any present cur stub
811 * revisions will be readable at runtime regardless of this setting.
813 $wgLegacySchemaConversion = false;
815 $wgMimeType = 'text/html';
816 $wgJsMimeType = 'text/javascript';
817 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
818 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
819 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
822 * Permit other namespaces in addition to the w3.org default.
823 * Use the prefix for the key and the namespace for the value. For
825 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
826 * Normally we wouldn't have to define this in the root <html>
827 * element, but IE needs it there in some circumstances.
829 $wgXhtmlNamespaces = array();
831 /** Enable to allow rewriting dates in page text.
832 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
833 $wgUseDynamicDates = false;
834 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
835 * the interface is set to English
837 $wgAmericanDates = false;
839 * For Hindi and Arabic use local numerals instead of Western style (0-9)
840 * numerals in interface.
842 $wgTranslateNumerals = true;
845 * Translation using MediaWiki: namespace.
846 * This will increase load times by 25-60% unless memcached is installed.
847 * Interface messages will be loaded from the database.
849 $wgUseDatabaseMessages = true;
852 * Expiry time for the message cache key
854 $wgMsgCacheExpiry = 86400;
857 * Maximum entry size in the message cache, in bytes
859 $wgMaxMsgCacheEntrySize = 10000;
862 * Set to false if you are thorough system admin who always remembers to keep
863 * serialized files up to date to save few mtime calls.
865 $wgCheckSerialized = true;
867 /** Whether to enable language variant conversion. */
868 $wgDisableLangConversion = false;
870 /** Default variant code, if false, the default will be the language code */
871 $wgDefaultLanguageVariant = false;
874 * Show a bar of language selection links in the user login and user
875 * registration forms; edit the "loginlanguagelinks" message to
878 $wgLoginLanguageSelector = false;
881 * Whether to use zhdaemon to perform Chinese text processing
882 * zhdaemon is under developement, so normally you don't want to
883 * use it unless for testing
885 $wgUseZhdaemon = false;
886 $wgZhdaemonHost="localhost";
887 $wgZhdaemonPort=2004;
890 # Miscellaneous configuration settings
893 $wgLocalInterwiki = 'w';
894 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
896 /** Interwiki caching settings.
897 $wgInterwikiCache specifies path to constant database file
898 This cdb database is generated by dumpInterwiki from maintenance
899 and has such key formats:
900 dbname:key - a simple key (e.g. enwiki:meta)
901 _sitename:key - site-scope key (e.g. wiktionary:meta)
902 __global:key - global-scope key (e.g. __global:meta)
903 __sites:dbname - site mapping (e.g. __sites:enwiki)
904 Sites mapping just specifies site name, other keys provide
905 "local url" data layout.
906 $wgInterwikiScopes specify number of domains to check for messages:
907 1 - Just wiki(db)-level
908 2 - wiki and global levels
910 $wgInterwikiFallbackSite - if unable to resolve from cache
912 $wgInterwikiCache = false;
913 $wgInterwikiScopes = 3;
914 $wgInterwikiFallbackSite = 'wiki';
917 * If local interwikis are set up which allow redirects,
918 * set this regexp to restrict URLs which will be displayed
919 * as 'redirected from' links.
921 * It might look something like this:
922 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
924 * Leave at false to avoid displaying any incoming redirect markers.
925 * This does not affect intra-wiki redirects, which don't change
928 $wgRedirectSources = false;
931 $wgShowIPinHeader = true; # For non-logged in users
932 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
933 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
934 # Maximum number of bytes in username. You want to run the maintenance
935 # script ./maintenancecheckUsernames.php once you have changed this value
936 $wgMaxNameChars = 255;
938 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
941 * Maximum recursion depth for templates within templates.
942 * The current parser adds two levels to the PHP call stack for each template,
943 * and xdebug limits the call stack to 100 by default. So this should hopefully
944 * stop the parser before it hits the xdebug limit.
946 $wgMaxTemplateDepth = 40;
947 $wgMaxPPExpandDepth = 40;
949 $wgExtraSubtitle = '';
950 $wgSiteSupportPage = ''; # A page where you users can receive donations
953 * If this lock file exists, the wiki will be forced into read-only mode.
954 * Its contents will be shown to users as part of the read-only warning
957 $wgReadOnlyFile = false; ///< defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
960 * The debug log file should be not be publicly accessible if it is used, as it
961 * may contain private data. */
962 $wgDebugLogFile = '';
964 $wgDebugRedirects = false;
965 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
967 $wgDebugComments = false;
969 $wgLogQueries = false;
972 * Write SQL queries to the debug log
974 $wgDebugDumpSql = false;
977 * Set to an array of log group keys to filenames.
978 * If set, wfDebugLog() output for that group will go to that file instead
979 * of the regular $wgDebugLogFile. Useful for enabling selective logging
982 $wgDebugLogGroups = array();
985 * Show the contents of $wgHooks in Special:Version
987 $wgSpecialVersionShowHooks = false;
990 * Whether to show "we're sorry, but there has been a database error" pages.
991 * Displaying errors aids in debugging, but may display information useful
994 $wgShowSQLErrors = false;
997 * If true, some error messages will be colorized when running scripts on the
998 * command line; this can aid picking important things out when debugging.
999 * Ignored when running on Windows or when output is redirected to a file.
1001 $wgColorErrors = true;
1004 * If set to true, uncaught exceptions will print a complete stack trace
1005 * to output. This should only be used for debugging, as it may reveal
1006 * private information in function parameters due to PHP's backtrace
1009 $wgShowExceptionDetails = false;
1012 * Expose backend server host names through the API and various HTML comments
1014 $wgShowHostnames = false;
1017 * Use experimental, DMOZ-like category browser
1019 $wgUseCategoryBrowser = false;
1022 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
1023 * to speed up output of the same page viewed by another user with the
1026 * This can provide a significant speedup for medium to large pages,
1027 * so you probably want to keep it on.
1029 $wgEnableParserCache = true;
1032 * If on, the sidebar navigation links are cached for users with the
1033 * current language set. This can save a touch of load on a busy site
1034 * by shaving off extra message lookups.
1036 * However it is also fragile: changing the site configuration, or
1037 * having a variable $wgArticlePath, can produce broken links that
1038 * don't update as expected.
1040 $wgEnableSidebarCache = false;
1043 * Expiry time for the sidebar cache, in seconds
1045 $wgSidebarCacheExpiry = 86400;
1048 * Under which condition should a page in the main namespace be counted
1049 * as a valid article? If $wgUseCommaCount is set to true, it will be
1050 * counted if it contains at least one comma. If it is set to false
1051 * (default), it will only be counted if it contains at least one [[wiki
1052 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
1054 * Retroactively changing this variable will not affect
1055 * the existing count (cf. maintenance/recount.sql).
1057 $wgUseCommaCount = false;
1060 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
1061 * values are easier on the database. A value of 1 causes the counters to be
1062 * updated on every hit, any higher value n cause them to update *on average*
1063 * every n hits. Should be set to either 1 or something largish, eg 1000, for
1064 * maximum efficiency.
1066 $wgHitcounterUpdateFreq = 1;
1068 # Basic user rights and block settings
1069 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1070 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1071 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1072 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
1073 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1075 # Pages anonymous user may see as an array, e.g.:
1076 # array ( "Main Page", "Wikipedia:Help");
1077 # Special:Userlogin and Special:Resetpass are always whitelisted.
1078 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1079 # is false -- see below. Otherwise, ALL pages are accessible,
1080 # regardless of this setting.
1081 # Also note that this will only protect _pages in the wiki_.
1082 # Uploaded files will remain readable. Make your upload
1083 # directory name unguessable, or use .htaccess to protect it.
1084 $wgWhitelistRead = false;
1087 * Should editors be required to have a validated e-mail
1088 * address before being allowed to edit?
1090 $wgEmailConfirmToEdit=false;
1093 * Permission keys given to users in each group.
1094 * All users are implicitly in the '*' group including anonymous visitors;
1095 * logged-in users are all implicitly in the 'user' group. These will be
1096 * combined with the permissions of all groups that a given user is listed
1097 * in in the user_groups table.
1099 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1100 * doing! This will wipe all permissions, and may mean that your users are
1101 * unable to perform certain essential tasks or access new functionality
1102 * when new permissions are introduced and default grants established.
1104 * Functionality to make pages inaccessible has not been extensively tested
1105 * for security. Use at your own risk!
1107 * This replaces wgWhitelistAccount and wgWhitelistEdit
1109 $wgGroupPermissions = array();
1111 // Implicit group for all visitors
1112 $wgGroupPermissions['*' ]['createaccount'] = true;
1113 $wgGroupPermissions['*' ]['read'] = true;
1114 $wgGroupPermissions['*' ]['edit'] = true;
1115 $wgGroupPermissions['*' ]['createpage'] = true;
1116 $wgGroupPermissions['*' ]['createtalk'] = true;
1117 $wgGroupPermissions['*' ]['writeapi'] = true;
1119 // Implicit group for all logged-in accounts
1120 $wgGroupPermissions['user' ]['move'] = true;
1121 $wgGroupPermissions['user' ]['move-subpages'] = true;
1122 $wgGroupPermissions['user' ]['read'] = true;
1123 $wgGroupPermissions['user' ]['edit'] = true;
1124 $wgGroupPermissions['user' ]['createpage'] = true;
1125 $wgGroupPermissions['user' ]['createtalk'] = true;
1126 $wgGroupPermissions['user' ]['writeapi'] = true;
1127 $wgGroupPermissions['user' ]['upload'] = true;
1128 $wgGroupPermissions['user' ]['reupload'] = true;
1129 $wgGroupPermissions['user' ]['reupload-shared'] = true;
1130 $wgGroupPermissions['user' ]['minoredit'] = true;
1131 $wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
1133 // Implicit group for accounts that pass $wgAutoConfirmAge
1134 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1136 // Users with bot privilege can have their edits hidden
1137 // from various log pages by default
1138 $wgGroupPermissions['bot' ]['bot'] = true;
1139 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
1140 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
1141 $wgGroupPermissions['bot' ]['autopatrol'] = true;
1142 $wgGroupPermissions['bot' ]['suppressredirect'] = true;
1143 $wgGroupPermissions['bot' ]['apihighlimits'] = true;
1144 $wgGroupPermissions['bot' ]['writeapi'] = true;
1145 #$wgGroupPermissions['bot' ]['editprotected'] = true; // can edit all protected pages without cascade protection enabled
1147 // Most extra permission abilities go to this group
1148 $wgGroupPermissions['sysop']['block'] = true;
1149 $wgGroupPermissions['sysop']['createaccount'] = true;
1150 $wgGroupPermissions['sysop']['delete'] = true;
1151 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
1152 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1153 $wgGroupPermissions['sysop']['undelete'] = true;
1154 $wgGroupPermissions['sysop']['editinterface'] = true;
1155 $wgGroupPermissions['sysop']['editusercssjs'] = true;
1156 $wgGroupPermissions['sysop']['import'] = true;
1157 $wgGroupPermissions['sysop']['importupload'] = true;
1158 $wgGroupPermissions['sysop']['move'] = true;
1159 $wgGroupPermissions['sysop']['move-subpages'] = true;
1160 $wgGroupPermissions['sysop']['patrol'] = true;
1161 $wgGroupPermissions['sysop']['autopatrol'] = true;
1162 $wgGroupPermissions['sysop']['protect'] = true;
1163 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1164 $wgGroupPermissions['sysop']['rollback'] = true;
1165 $wgGroupPermissions['sysop']['trackback'] = true;
1166 $wgGroupPermissions['sysop']['upload'] = true;
1167 $wgGroupPermissions['sysop']['reupload'] = true;
1168 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1169 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1170 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1171 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1172 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1173 $wgGroupPermissions['sysop']['blockemail'] = true;
1174 $wgGroupPermissions['sysop']['markbotedits'] = true;
1175 $wgGroupPermissions['sysop']['suppressredirect'] = true;
1176 $wgGroupPermissions['sysop']['apihighlimits'] = true;
1177 $wgGroupPermissions['sysop']['browsearchive'] = true;
1178 $wgGroupPermissions['sysop']['noratelimit'] = true;
1179 #$wgGroupPermissions['sysop']['mergehistory'] = true;
1181 // Permission to change users' group assignments
1182 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1183 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
1184 // Permission to change users' groups assignments across wikis
1185 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
1187 #$wgGroupPermissions['sysop']['deleterevision'] = true;
1188 // To hide usernames from users and Sysops
1189 #$wgGroupPermissions['suppress']['hideuser'] = true;
1190 // To hide revisions/log items from users and Sysops
1191 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
1192 // For private suppression log access
1193 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
1196 * The developer group is deprecated, but can be activated if need be
1197 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1198 * that a lock file be defined and creatable/removable by the web
1201 # $wgGroupPermissions['developer']['siteadmin'] = true;
1205 * Implicit groups, aren't shown on Special:Listusers or somewhere else
1207 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
1210 * These are the groups that users are allowed to add to or remove from
1211 * their own account via Special:Userrights.
1213 $wgGroupsAddToSelf = array();
1214 $wgGroupsRemoveFromSelf = array();
1217 * Set of available actions that can be restricted via action=protect
1218 * You probably shouldn't change this.
1219 * Translated trough restriction-* messages.
1221 $wgRestrictionTypes = array( 'edit', 'move' );
1224 * Rights which can be required for each protection level (via action=protect)
1226 * You can add a new protection level that requires a specific
1227 * permission by manipulating this array. The ordering of elements
1228 * dictates the order on the protection form's lists.
1230 * '' will be ignored (i.e. unprotected)
1231 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1233 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1236 * Set the minimum permissions required to edit pages in each
1237 * namespace. If you list more than one permission, a user must
1238 * have all of them to edit pages in that namespace.
1240 $wgNamespaceProtection = array();
1241 $wgNamespaceProtection[ NS_MEDIAWIKI
] = array( 'editinterface' );
1244 * Pages in namespaces in this array can not be used as templates.
1245 * Elements must be numeric namespace ids.
1246 * Among other things, this may be useful to enforce read-restrictions
1247 * which may otherwise be bypassed by using the template machanism.
1249 $wgNonincludableNamespaces = array();
1252 * Number of seconds an account is required to age before
1253 * it's given the implicit 'autoconfirm' group membership.
1254 * This can be used to limit privileges of new accounts.
1256 * Accounts created by earlier versions of the software
1257 * may not have a recorded creation date, and will always
1258 * be considered to pass the age test.
1260 * When left at 0, all registered accounts will pass.
1262 $wgAutoConfirmAge = 0;
1263 //$wgAutoConfirmAge = 600; // ten minutes
1264 //$wgAutoConfirmAge = 3600*24; // one day
1266 # Number of edits an account requires before it is autoconfirmed
1267 # Passing both this AND the time requirement is needed
1268 $wgAutoConfirmCount = 0;
1269 //$wgAutoConfirmCount = 50;
1272 * Automatically add a usergroup to any user who matches certain conditions.
1274 * array( '&' or '|' or '^', cond1, cond2, ... )
1275 * where cond1, cond2, ... are themselves conditions; *OR*
1276 * APCOND_EMAILCONFIRMED, *OR*
1277 * array( APCOND_EMAILCONFIRMED ), *OR*
1278 * array( APCOND_EDITCOUNT, number of edits ), *OR*
1279 * array( APCOND_AGE, seconds since registration ), *OR*
1280 * similar constructs defined by extensions.
1282 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
1283 * user who has provided an e-mail address.
1285 $wgAutopromote = array(
1286 'autoconfirmed' => array( '&',
1287 array( APCOND_EDITCOUNT
, &$wgAutoConfirmCount ),
1288 array( APCOND_AGE
, &$wgAutoConfirmAge ),
1293 * These settings can be used to give finer control over who can assign which
1294 * groups at Special:Userrights. Example configuration:
1296 * // Bureaucrat can add any group
1297 * $wgAddGroups['bureaucrat'] = true;
1298 * // Bureaucrats can only remove bots and sysops
1299 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1300 * // Sysops can make bots
1301 * $wgAddGroups['sysop'] = array( 'bot' );
1302 * // Sysops can disable other sysops in an emergency, and disable bots
1303 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1305 $wgAddGroups = $wgRemoveGroups = array();
1309 * A list of available rights, in addition to the ones defined by the core.
1310 * For extensions only.
1312 $wgAvailableRights = array();
1315 * Optional to restrict deletion of pages with higher revision counts
1316 * to users with the 'bigdelete' permission. (Default given to sysops.)
1318 $wgDeleteRevisionsLimit = 0;
1321 * Used to figure out if a user is "active" or not. User::isActiveEditor()
1322 * sees if a user has made at least $wgActiveUserEditCount number of edits
1323 * within the last $wgActiveUserDays days.
1325 $wgActiveUserEditCount = 30;
1326 $wgActiveUserDays = 30;
1328 # Proxy scanner settings
1332 * If you enable this, every editor's IP address will be scanned for open HTTP
1335 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1336 * ISP and ask for your server to be shut down.
1338 * You have been warned.
1340 $wgBlockOpenProxies = false;
1341 /** Port we want to scan for a proxy */
1342 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1343 /** Script used to scan */
1344 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1346 $wgProxyMemcExpiry = 86400;
1347 /** This should always be customised in LocalSettings.php */
1348 $wgSecretKey = false;
1349 /** big list of banned IP addresses, in the keys not the values */
1350 $wgProxyList = array();
1352 $wgProxyKey = false;
1354 /** Number of accounts each IP address may create, 0 to disable.
1355 * Requires memcached */
1356 $wgAccountCreationThrottle = 0;
1358 # Client-side caching:
1360 /** Allow client-side caching of pages */
1361 $wgCachePages = true;
1364 * Set this to current time to invalidate all prior cached pages. Affects both
1365 * client- and server-side caching.
1366 * You can get the current date on your server by using the command:
1367 * date +%Y%m%d%H%M%S
1369 $wgCacheEpoch = '20030516000000';
1372 * Bump this number when changing the global style sheets and JavaScript.
1373 * It should be appended in the query string of static CSS and JS includes,
1374 * to ensure that client-side caches don't keep obsolete copies of global
1377 $wgStyleVersion = '164';
1380 # Server-side caching:
1383 * This will cache static pages for non-logged-in users to reduce
1384 * database traffic on public sites.
1385 * Must set $wgShowIPinHeader = false
1387 $wgUseFileCache = false;
1389 /** Directory where the cached page will be saved */
1390 $wgFileCacheDirectory = false; ///< defaults to "{$wgUploadDirectory}/cache";
1393 * When using the file cache, we can store the cached HTML gzipped to save disk
1394 * space. Pages will then also be served compressed to clients that support it.
1395 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1396 * the default LocalSettings.php! If you enable this, remove that setting first.
1398 * Requires zlib support enabled in PHP.
1402 /** Whether MediaWiki should send an ETag header */
1405 # Email notification settings
1408 /** For email notification on page changes */
1409 $wgPasswordSender = $wgEmergencyContact;
1411 # true: from page editor if s/he opted-in
1412 # false: Enotif mails appear to come from $wgEmergencyContact
1413 $wgEnotifFromEditor = false;
1415 // TODO move UPO to preferences probably ?
1416 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1417 # If set to false, the corresponding input form on the user preference page is suppressed
1418 # It call this to be a "user-preferences-option (UPO)"
1419 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1420 $wgEnotifWatchlist = false; # UPO
1421 $wgEnotifUserTalk = false; # UPO
1422 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1423 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1424 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1426 # Send a generic mail instead of a personalised mail for each user. This
1427 # always uses UTC as the time zone, and doesn't include the username.
1429 # For pages with many users watching, this can significantly reduce mail load.
1430 # Has no effect when using sendmail rather than SMTP;
1432 $wgEnotifImpersonal = false;
1434 # Maximum number of users to mail at once when using impersonal mail. Should
1435 # match the limit on your mail server.
1436 $wgEnotifMaxRecips = 500;
1438 # Send mails via the job queue.
1439 $wgEnotifUseJobQ = false;
1442 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1444 $wgUsersNotifiedOnAllChanges = array();
1446 /** Show watching users in recent changes, watchlist and page history views */
1447 $wgRCShowWatchingUsers = false; # UPO
1448 /** Show watching users in Page views */
1449 $wgPageShowWatchingUsers = false;
1450 /** Show the amount of changed characters in recent changes */
1451 $wgRCShowChangedSize = true;
1454 * If the difference between the character counts of the text
1455 * before and after the edit is below that value, the value will be
1456 * highlighted on the RC page.
1458 $wgRCChangedSizeThreshold = -500;
1461 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1462 * view for watched pages with new changes */
1463 $wgShowUpdatedMarker = true;
1465 $wgCookieExpiration = 2592000;
1467 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1468 * problems when the user requests two pages within a short period of time. This
1469 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1472 $wgClockSkewFudge = 5;
1474 # Squid-related settings
1477 /** Enable/disable Squid */
1478 $wgUseSquid = false;
1480 /** If you run Squid3 with ESI support, enable this (default:false): */
1483 /** Internal server name as known to Squid, if different */
1484 # $wgInternalServer = 'http://yourinternal.tld:8000';
1485 $wgInternalServer = $wgServer;
1488 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1489 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1490 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1493 $wgSquidMaxage = 18000;
1496 * Default maximum age for raw CSS/JS accesses
1498 $wgForcedRawSMaxage = 300;
1501 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1503 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1504 * headers sent/modified from these proxies when obtaining the remote IP address
1506 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1508 $wgSquidServers = array();
1511 * As above, except these servers aren't purged on page changes; use to set a
1512 * list of trusted proxies, etc.
1514 $wgSquidServersNoPurge = array();
1516 /** Maximum number of titles to purge in any one client operation */
1517 $wgMaxSquidPurgeTitles = 400;
1519 /** HTCP multicast purging */
1521 $wgHTCPMulticastTTL = 1;
1522 # $wgHTCPMulticastAddress = "224.0.0.85";
1523 $wgHTCPMulticastAddress = false;
1528 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1529 * or ".any.subdomain.net"
1531 $wgCookieDomain = '';
1532 $wgCookiePath = '/';
1533 $wgCookieSecure = ($wgProto == 'https');
1534 $wgDisableCookieCheck = false;
1537 * Set $wgCookiePrefix to use a custom one. Setting to false sets the default of
1538 * using the database name.
1540 $wgCookiePrefix = false;
1543 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
1544 * in browsers that support this feature. This can mitigates some classes of
1547 * Only supported on PHP 5.2 or higher.
1549 $wgCookieHttpOnly = version_compare("5.2", PHP_VERSION
, "<");
1552 * If the requesting browser matches a regex in this blacklist, we won't
1553 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
1555 $wgHttpOnlyBlacklist = array(
1556 // Internet Explorer for Mac; sometimes the cookies work, sometimes
1557 // they don't. It's difficult to predict, as combinations of path
1558 // and expiration options affect its parsing.
1559 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
1562 /** A list of cookies that vary the cache (for use by extensions) */
1563 $wgCacheVaryCookies = array();
1565 /** Override to customise the session name */
1566 $wgSessionName = false;
1568 /** Whether to allow inline image pointing to other websites */
1569 $wgAllowExternalImages = false;
1571 /** If the above is false, you can specify an exception here. Image URLs
1572 * that start with this string are then rendered, while all others are not.
1573 * You can use this to set up a trusted, simple repository of images.
1576 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1578 $wgAllowExternalImagesFrom = '';
1580 /** Allows to move images and other media files. Experemintal, not sure if it always works */
1581 $wgAllowImageMoving = false;
1583 /** Disable database-intensive features */
1584 $wgMiserMode = false;
1585 /** Disable all query pages if miser mode is on, not just some */
1586 $wgDisableQueryPages = false;
1587 /** Number of rows to cache in 'querycache' table when miser mode is on */
1588 $wgQueryCacheLimit = 1000;
1589 /** Number of links to a page required before it is deemed "wanted" */
1590 $wgWantedPagesThreshold = 1;
1591 /** Enable slow parser functions */
1592 $wgAllowSlowParserFunctions = false;
1595 * Maps jobs to their handling classes; extensions
1596 * can add to this to provide custom jobs
1598 $wgJobClasses = array(
1599 'refreshLinks' => 'RefreshLinksJob',
1600 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1601 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1602 'sendMail' => 'EmaillingJob',
1603 'enotifNotify' => 'EnotifNotifyJob',
1604 'fixDoubleRedirect' => 'DoubleRedirectJob',
1608 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1609 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1610 * (ImageMagick) installed and available in the PATH.
1611 * Please see math/README for more information.
1614 /** Location of the texvc binary */
1615 $wgTexvc = './math/texvc';
1618 # Profiling / debugging
1620 # You have to create a 'profiling' table in your database before using
1621 # profiling see maintenance/archives/patch-profiling.sql .
1623 # To enable profiling, edit StartProfiler.php
1625 /** Only record profiling info for pages that took longer than this */
1626 $wgProfileLimit = 0.0;
1627 /** Don't put non-profiling info into log file */
1628 $wgProfileOnly = false;
1629 /** Log sums from profiling into "profiling" table in db. */
1630 $wgProfileToDatabase = false;
1631 /** If true, print a raw call tree instead of per-function report */
1632 $wgProfileCallTree = false;
1633 /** Should application server host be put into profiling table */
1634 $wgProfilePerHost = false;
1636 /** Settings for UDP profiler */
1637 $wgUDPProfilerHost = '127.0.0.1';
1638 $wgUDPProfilerPort = '3811';
1640 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1641 $wgDebugProfiling = false;
1642 /** Output debug message on every wfProfileIn/wfProfileOut */
1643 $wgDebugFunctionEntry = 0;
1644 /** Lots of debugging output from SquidUpdate.php */
1645 $wgDebugSquid = false;
1648 * Destination for wfIncrStats() data...
1649 * 'cache' to go into the system cache, if enabled (memcached)
1650 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
1653 $wgStatsMethod = 'cache';
1655 /** Whereas to count the number of time an article is viewed.
1656 * Does not work if pages are cached (for example with squid).
1658 $wgDisableCounters = false;
1660 $wgDisableTextSearch = false;
1661 $wgDisableSearchContext = false;
1665 * Set to true to have nicer highligted text in search results,
1666 * by default off due to execution overhead
1668 $wgAdvancedSearchHighlighting = false;
1671 * Regexp to match word boundaries, defaults for non-CJK languages
1672 * should be empty for CJK since the words are not separate
1674 $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION
, "<")?
'[\p{Z}\p{P}\p{C}]'
1675 : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround
1678 * Template for OpenSearch suggestions, defaults to API action=opensearch
1680 * Sites with heavy load would tipically have these point to a custom
1681 * PHP wrapper to avoid firing up mediawiki for every keystroke
1683 * Placeholders: {searchTerms}
1686 $wgOpenSearchTemplate = false;
1689 * Enable suggestions while typing in search boxes
1690 * (results are passed around in OpenSearch format)
1692 $wgEnableMWSuggest = false;
1695 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
1697 * Placeholders: {searchTerms}, {namespaces}, {dbname}
1700 $wgMWSuggestTemplate = false;
1703 * If you've disabled search semi-permanently, this also disables updates to the
1704 * table. If you ever re-enable, be sure to rebuild the search table.
1706 $wgDisableSearchUpdate = false;
1707 /** Uploads have to be specially set up to be secure */
1708 $wgEnableUploads = false;
1710 * Show EXIF data, on by default if available.
1711 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1713 * NOTE FOR WINDOWS USERS:
1714 * To enable EXIF functions, add the folloing lines to the
1715 * "Windows extensions" section of php.ini:
1717 * extension=extensions/php_mbstring.dll
1718 * extension=extensions/php_exif.dll
1720 $wgShowEXIF = function_exists( 'exif_read_data' );
1723 * Set to true to enable the upload _link_ while local uploads are disabled.
1724 * Assumes that the special page link will be bounced to another server where
1727 $wgRemoteUploads = false;
1728 $wgDisableAnonTalk = false;
1730 * Do DELETE/INSERT for link updates instead of incremental
1732 $wgUseDumbLinkUpdate = false;
1735 * Anti-lock flags - bitfield
1737 * Preload links during link update for save
1738 * ALF_PRELOAD_EXISTENCE
1739 * Preload cur_id during replaceLinkHolders
1741 * Don't use locking reads when updating the link table. This is
1742 * necessary for wikis with a high edit rate for performance
1743 * reasons, but may cause link table inconsistency
1745 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1748 $wgAntiLockFlags = 0;
1751 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1752 * fall back to the old behaviour (no merging).
1754 $wgDiff3 = '/usr/bin/diff3';
1757 * Path to the GNU diff utility.
1759 $wgDiff = '/usr/bin/diff';
1762 * We can also compress text stored in the 'text' table. If this is set on, new
1763 * revisions will be compressed on page save if zlib support is available. Any
1764 * compressed revisions will be decompressed on load regardless of this setting
1765 * *but will not be readable at all* if zlib support is not available.
1767 $wgCompressRevisions = false;
1770 * This is the list of preferred extensions for uploading files. Uploading files
1771 * with extensions not in this list will trigger a warning.
1773 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1775 /** Files with these extensions will never be allowed as uploads. */
1776 $wgFileBlacklist = array(
1777 # HTML may contain cookie-stealing JavaScript and web bugs
1778 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
1779 # PHP scripts may execute arbitrary code on the server
1780 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1781 # Other types that may be interpreted by some servers
1782 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1783 # May contain harmful executables for Windows victims
1784 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1786 /** Files with these mime types will never be allowed as uploads
1787 * if $wgVerifyMimeType is enabled.
1789 $wgMimeTypeBlacklist= array(
1790 # HTML may contain cookie-stealing JavaScript and web bugs
1791 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1792 # PHP scripts may execute arbitrary code on the server
1793 'application/x-php', 'text/x-php',
1794 # Other types that may be interpreted by some servers
1795 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1796 # Windows metafile, client-side vulnerability on some systems
1797 'application/x-msmetafile'
1800 /** This is a flag to determine whether or not to check file extensions on upload. */
1801 $wgCheckFileExtensions = true;
1804 * If this is turned off, users may override the warning for files not covered
1805 * by $wgFileExtensions.
1807 $wgStrictFileExtensions = true;
1809 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
1810 $wgUploadSizeWarning = false;
1812 /** For compatibility with old installations set to false */
1813 $wgPasswordSalt = true;
1815 /** Which namespaces should support subpages?
1816 * See Language.php for a list of namespaces.
1818 $wgNamespacesWithSubpages = array(
1821 NS_USER_TALK
=> true,
1822 NS_PROJECT_TALK
=> true,
1823 NS_IMAGE_TALK
=> true,
1824 NS_MEDIAWIKI_TALK
=> true,
1825 NS_TEMPLATE_TALK
=> true,
1826 NS_HELP_TALK
=> true,
1827 NS_CATEGORY_TALK
=> true
1830 $wgNamespacesToBeSearchedDefault = array(
1835 * Site notice shown at the top of each page
1837 * This message can contain wiki text, and can also be set through the
1838 * MediaWiki:Sitenotice page. You can also provide a separate message for
1839 * logged-out users using the MediaWiki:Anonnotice page.
1848 * Plugins for media file type handling.
1849 * Each entry in the array maps a MIME type to a class name
1851 $wgMediaHandlers = array(
1852 'image/jpeg' => 'BitmapHandler',
1853 'image/png' => 'BitmapHandler',
1854 'image/gif' => 'BitmapHandler',
1855 'image/x-ms-bmp' => 'BmpHandler',
1856 'image/x-bmp' => 'BmpHandler',
1857 'image/svg+xml' => 'SvgHandler', // official
1858 'image/svg' => 'SvgHandler', // compat
1859 'image/vnd.djvu' => 'DjVuHandler', // official
1860 'image/x.djvu' => 'DjVuHandler', // compat
1861 'image/x-djvu' => 'DjVuHandler', // compat
1866 * Resizing can be done using PHP's internal image libraries or using
1867 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1868 * These support more file formats than PHP, which only supports PNG,
1869 * GIF, JPG, XBM and WBMP.
1871 * Use Image Magick instead of PHP builtin functions.
1873 $wgUseImageMagick = false;
1874 /** The convert command shipped with ImageMagick */
1875 $wgImageMagickConvertCommand = '/usr/bin/convert';
1877 /** Sharpening parameter to ImageMagick */
1878 $wgSharpenParameter = '0x0.4';
1880 /** Reduction in linear dimensions below which sharpening will be enabled */
1881 $wgSharpenReductionThreshold = 0.85;
1884 * Use another resizing converter, e.g. GraphicMagick
1885 * %s will be replaced with the source path, %d with the destination
1886 * %w and %h will be replaced with the width and height
1888 * An example is provided for GraphicMagick
1889 * Leave as false to skip this
1891 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1892 $wgCustomConvertCommand = false;
1894 # Scalable Vector Graphics (SVG) may be uploaded as images.
1895 # Since SVG support is not yet standard in browsers, it is
1896 # necessary to rasterize SVGs to PNG as a fallback format.
1898 # An external program is required to perform this conversion:
1899 $wgSVGConverters = array(
1900 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1901 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1902 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1903 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1904 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1905 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1907 /** Pick one of the above */
1908 $wgSVGConverter = 'ImageMagick';
1909 /** If not in the executable PATH, specify */
1910 $wgSVGConverterPath = '';
1911 /** Don't scale a SVG larger than this */
1912 $wgSVGMaxSize = 2048;
1914 * Don't thumbnail an image if it will use too much working memory
1915 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1916 * 12.5 million pixels or 3500x3500
1918 $wgMaxImageArea = 1.25e7
;
1920 * If rendered thumbnail files are older than this timestamp, they
1921 * will be rerendered on demand as if the file didn't already exist.
1922 * Update if there is some need to force thumbs and SVG rasterizations
1923 * to rerender, such as fixes to rendering bugs.
1925 $wgThumbnailEpoch = '20030516000000';
1928 * If set, inline scaled images will still produce <img> tags ready for
1929 * output instead of showing an error message.
1931 * This may be useful if errors are transitory, especially if the site
1932 * is configured to automatically render thumbnails on request.
1934 * On the other hand, it may obscure error conditions from debugging.
1935 * Enable the debug log or the 'thumbnail' log group to make sure errors
1936 * are logged to a file for review.
1938 $wgIgnoreImageErrors = false;
1941 * Allow thumbnail rendering on page view. If this is false, a valid
1942 * thumbnail URL is still output, but no file will be created at
1943 * the target location. This may save some time if you have a
1944 * thumb.php or 404 handler set up which is faster than the regular
1947 $wgGenerateThumbnailOnParse = true;
1949 /** Obsolete, always true, kept for compatibility with extensions */
1950 $wgUseImageResize = true;
1953 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1954 if( !isset( $wgCommandLineMode ) ) {
1955 $wgCommandLineMode = false;
1958 /** For colorized maintenance script output, is your terminal background dark ? */
1959 $wgCommandLineDarkBg = false;
1962 # Recent changes settings
1965 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1966 $wgPutIPinRC = true;
1969 * Recentchanges items are periodically purged; entries older than this many
1971 * For one week : 7 * 24 * 3600
1973 $wgRCMaxAge = 7 * 24 * 3600;
1976 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
1977 * Note that this is disabled by default because we sometimes do have RC data which is beyond the limit
1978 * for some reason, and some users may use the high numbers to display that data which is still there.
1980 $wgRCFilterByAge = false;
1983 * List of Days and Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
1985 $wgRCLinkLimits = array( 50, 100, 250, 500 );
1986 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
1988 # Send RC updates via UDP
1989 $wgRC2UDPAddress = false;
1990 $wgRC2UDPPort = false;
1991 $wgRC2UDPPrefix = '';
1992 $wgRC2UDPOmitBots = false;
1994 # Enable user search in Special:Newpages
1995 # This is really a temporary hack around an index install bug on some Wikipedias.
1996 # Kill it once fixed.
1997 $wgEnableNewpagesUserFilter = true;
2000 # Copyright and credits settings
2003 /** RDF metadata toggles */
2004 $wgEnableDublinCoreRdf = false;
2005 $wgEnableCreativeCommonsRdf = false;
2007 /** Override for copyright metadata.
2008 * TODO: these options need documentation
2010 $wgRightsPage = NULL;
2011 $wgRightsUrl = NULL;
2012 $wgRightsText = NULL;
2013 $wgRightsIcon = NULL;
2015 /** Set this to some HTML to override the rights icon with an arbitrary logo */
2016 $wgCopyrightIcon = NULL;
2018 /** Set this to true if you want detailed copyright information forms on Upload. */
2019 $wgUseCopyrightUpload = false;
2021 /** Set this to false if you want to disable checking that detailed copyright
2022 * information values are not empty. */
2023 $wgCheckCopyrightUpload = true;
2026 * Set this to the number of authors that you want to be credited below an
2027 * article text. Set it to zero to hide the attribution block, and a negative
2028 * number (like -1) to show all authors. Note that this will require 2-3 extra
2029 * database hits, which can have a not insignificant impact on performance for
2034 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
2035 * Otherwise, link to a separate credits page. */
2036 $wgShowCreditsIfMax = true;
2041 * Set this to false to avoid forcing the first letter of links to capitals.
2042 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
2043 * appearing with a capital at the beginning of a sentence will *not* go to the
2044 * same place as links in the middle of a sentence using a lowercase initial.
2046 $wgCapitalLinks = true;
2049 * List of interwiki prefixes for wikis we'll accept as sources for
2050 * Special:Import (for sysops). Since complete page history can be imported,
2051 * these should be 'trusted'.
2053 * If a user has the 'import' permission but not the 'importupload' permission,
2054 * they will only be able to run imports through this transwiki interface.
2056 $wgImportSources = array();
2059 * Optional default target namespace for interwiki imports.
2060 * Can use this to create an incoming "transwiki"-style queue.
2061 * Set to numeric key, not the name.
2063 * Users may override this in the Special:Import dialog.
2065 $wgImportTargetNamespace = null;
2068 * If set to false, disables the full-history option on Special:Export.
2069 * This is currently poorly optimized for long edit histories, so is
2070 * disabled on Wikimedia's sites.
2072 $wgExportAllowHistory = true;
2075 * If set nonzero, Special:Export requests for history of pages with
2076 * more revisions than this will be rejected. On some big sites things
2077 * could get bogged down by very very long pages.
2079 $wgExportMaxHistory = 0;
2081 $wgExportAllowListContributors = false ;
2084 /** Text matching this regular expression will be recognised as spam
2085 * See http://en.wikipedia.org/wiki/Regular_expression */
2086 $wgSpamRegex = false;
2087 /** Similarly you can get a function to do the job. The function will be given
2088 * the following args:
2089 * - a Title object for the article the edit is made on
2090 * - the text submitted in the textarea (wpTextbox1)
2091 * - the section number.
2092 * The return should be boolean indicating whether the edit matched some evilness:
2094 * - false : let it through
2096 * For a complete example, have a look at the SpamBlacklist extension.
2098 $wgFilterCallback = false;
2100 /** Go button goes straight to the edit screen if the article doesn't exist. */
2101 $wgGoToEdit = false;
2103 /** Allow raw, unchecked HTML in <html>...</html> sections.
2104 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
2105 * TO RESTRICT EDITING to only those that you trust
2110 * $wgUseTidy: use tidy to make sure HTML output is sane.
2111 * Tidy is a free tool that fixes broken HTML.
2112 * See http://www.w3.org/People/Raggett/tidy/
2113 * $wgTidyBin should be set to the path of the binary and
2114 * $wgTidyConf to the path of the configuration file.
2115 * $wgTidyOpts can include any number of parameters.
2117 * $wgTidyInternal controls the use of the PECL extension to use an in-
2118 * process tidy library instead of spawning a separate program.
2119 * Normally you shouldn't need to override the setting except for
2120 * debugging. To install, use 'pear install tidy' and add a line
2121 * 'extension=tidy.so' to php.ini.
2124 $wgAlwaysUseTidy = false;
2125 $wgTidyBin = 'tidy';
2126 $wgTidyConf = $IP.'/includes/tidy.conf';
2128 $wgTidyInternal = extension_loaded( 'tidy' );
2131 * Put tidy warnings in HTML comments
2132 * Only works for internal tidy.
2134 $wgDebugTidy = false;
2137 * Validate the overall output using tidy and refuse
2138 * to display the page if it's not valid.
2140 $wgValidateAllHtml = false;
2142 /** See list of skins and their symbolic names in languages/Language.php */
2143 $wgDefaultSkin = 'monobook';
2146 * Optionally, we can specify a stylesheet to use for media="handheld".
2147 * This is recognized by some, but not all, handheld/mobile/PDA browsers.
2148 * If left empty, compliant handheld browsers won't pick up the skin
2149 * stylesheet, which is specified for 'screen' media.
2151 * Can be a complete URL, base-relative path, or $wgStylePath-relative path.
2152 * Try 'chick/main.css' to apply the Chick styles to the MonoBook HTML.
2154 * Will also be switched in when 'handheld=yes' is added to the URL, like
2155 * the 'printable=yes' mode for print media.
2157 $wgHandheldStyle = false;
2160 * If set, 'screen' and 'handheld' media specifiers for stylesheets are
2161 * transformed such that they apply to the iPhone/iPod Touch Mobile Safari,
2162 * which doesn't recognize 'handheld' but does support media queries on its
2165 * Consider only using this if you have a *really good* handheld stylesheet,
2166 * as iPhone users won't have any way to disable it and use the "grown-up"
2169 $wgHandheldForIPhone = false;
2172 * Settings added to this array will override the default globals for the user
2173 * preferences used by anonymous visitors and newly created accounts.
2174 * For instance, to disable section editing links:
2175 * $wgDefaultUserOptions ['editsection'] = 0;
2178 $wgDefaultUserOptions = array(
2183 'searchlimit' => 20,
2184 'contextlines' => 5,
2185 'contextchars' => 50,
2186 'disablesuggest' => 0,
2195 'highlightbroken' => 1,
2196 'stubthreshold' => 0,
2197 'previewontop' => 1,
2198 'previewonfirst' => 0,
2200 'editsectiononrightclick' => 0,
2201 'editondblclick' => 0,
2205 'minordefault' => 0,
2206 'date' => 'default',
2209 'rememberpassword' => 0,
2210 'enotifwatchlistpages' => 0,
2211 'enotifusertalkpages' => 1,
2212 'enotifminoredits' => 0,
2213 'enotifrevealaddr' => 0,
2214 'shownumberswatching' => 1,
2216 'externaleditor' => 0,
2217 'externaldiff' => 0,
2218 'showjumplinks' => 1,
2219 'numberheadings' => 0,
2220 'uselivepreview' => 0,
2221 'watchlistdays' => 3.0,
2222 'extendwatchlist' => 0,
2223 'watchlisthideminor' => 0,
2224 'watchlisthidebots' => 0,
2225 'watchlisthideown' => 0,
2226 'watchcreations' => 0,
2227 'watchdefault' => 0,
2229 'watchdeletion' => 0,
2232 /** Whether or not to allow and use real name fields. Defaults to true. */
2233 $wgAllowRealName = true;
2235 /*****************************************************************************
2240 * A list of callback functions which are called once MediaWiki is fully initialised
2242 $wgExtensionFunctions = array();
2245 * Extension functions for initialisation of skins. This is called somewhat earlier
2246 * than $wgExtensionFunctions.
2248 $wgSkinExtensionFunctions = array();
2251 * Extension messages files
2252 * Associative array mapping extension name to the filename where messages can be found.
2253 * The file must create a variable called $messages.
2254 * When the messages are needed, the extension should call wfLoadExtensionMessages().
2257 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
2260 $wgExtensionMessagesFiles = array();
2263 * Aliases for special pages provided by extensions.
2264 * Associative array mapping special page to array of aliases. First alternative
2265 * for each special page will be used as the normalised name for it. English
2266 * aliases will be added to the end of the list so that they always work. The
2267 * file must define a variable $aliases.
2270 * $wgExtensionAliasesFiles['Translate'] = dirname(__FILE__).'/Translate.alias.php';
2272 $wgExtensionAliasesFiles = array();
2275 * Parser output hooks.
2276 * This is an associative array where the key is an extension-defined tag
2277 * (typically the extension name), and the value is a PHP callback.
2278 * These will be called as an OutputPageParserOutput hook, if the relevant
2279 * tag has been registered with the parser output object.
2281 * Registration is done with $pout->addOutputHook( $tag, $data ).
2283 * The callback has the form:
2284 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
2286 $wgParserOutputHooks = array();
2289 * List of valid skin names.
2290 * The key should be the name in all lower case, the value should be a display name.
2291 * The default skins will be added later, by Skin::getSkinNames(). Use
2292 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
2294 $wgValidSkinNames = array();
2297 * Special page list.
2298 * See the top of SpecialPage.php for documentation.
2300 $wgSpecialPages = array();
2303 * Array mapping class names to filenames, for autoloading.
2305 $wgAutoloadClasses = array();
2308 * An array of extension types and inside that their names, versions, authors,
2309 * urls, descriptions and pointers to localized description msgs. Note that
2310 * the version, url, description and descriptionmsg key can be omitted.
2313 * $wgExtensionCredits[$type][] = array(
2314 * 'name' => 'Example extension',
2316 * 'svn-revision' => '$LastChangedRevision$',
2317 * 'author' => 'Foo Barstein',
2318 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2319 * 'description' => 'An example extension',
2320 * 'descriptionmsg' => 'exampleextension-desc',
2324 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
2326 $wgExtensionCredits = array();
2329 ******************************************************************************/
2332 * Allow user Javascript page?
2333 * This enables a lot of neat customizations, but may
2334 * increase security risk to users and server load.
2336 $wgAllowUserJs = false;
2339 * Allow user Cascading Style Sheets (CSS)?
2340 * This enables a lot of neat customizations, but may
2341 * increase security risk to users and server load.
2343 $wgAllowUserCss = false;
2345 /** Use the site's Javascript page? */
2346 $wgUseSiteJs = true;
2348 /** Use the site's Cascading Style Sheets (CSS)? */
2349 $wgUseSiteCss = true;
2351 /** Filter for Special:Randompage. Part of a WHERE clause */
2352 $wgExtraRandompageSQL = false;
2354 /** Allow the "info" action, very inefficient at the moment */
2355 $wgAllowPageInfo = false;
2357 /** Maximum indent level of toc. */
2358 $wgMaxTocLevel = 999;
2360 /** Name of the external diff engine to use */
2361 $wgExternalDiffEngine = false;
2363 /** Use RC Patrolling to check for vandalism */
2364 $wgUseRCPatrol = true;
2366 /** Use new page patrolling to check new pages on Special:Newpages */
2367 $wgUseNPPatrol = true;
2369 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
2372 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2373 * eg Recentchanges, Newpages. */
2376 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2377 * A cached version will continue to be served out even if changes
2378 * are made, until this many seconds runs out since the last render.
2380 * If set to 0, feed caching is disabled. Use this for debugging only;
2381 * feed generation can be pretty slow with diffs.
2383 $wgFeedCacheTimeout = 60;
2385 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2386 * pages larger than this size. */
2387 $wgFeedDiffCutoff = 32768;
2391 * Additional namespaces. If the namespaces defined in Language.php and
2392 * Namespace.php are insufficient, you can create new ones here, for example,
2393 * to import Help files in other languages.
2394 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2395 * no longer be accessible. If you rename it, then you can access them through
2396 * the new namespace name.
2398 * Custom namespaces should start at 100 to avoid conflicting with standard
2399 * namespaces, and should always follow the even/odd main/talk pattern.
2401 #$wgExtraNamespaces =
2402 # array(100 => "Hilfe",
2403 # 101 => "Hilfe_Diskussion",
2405 # 103 => "Discussion_Aide"
2407 $wgExtraNamespaces = NULL;
2411 * These are alternate names for the primary localised namespace names, which
2412 * are defined by $wgExtraNamespaces and the language file. If a page is
2413 * requested with such a prefix, the request will be redirected to the primary
2416 * Set this to a map from namespace names to IDs.
2418 * $wgNamespaceAliases = array(
2419 * 'Wikipedian' => NS_USER,
2423 $wgNamespaceAliases = array();
2426 * Limit images on image description pages to a user-selectable limit. In order
2427 * to reduce disk usage, limits can only be selected from a list.
2428 * The user preference is saved as an array offset in the database, by default
2429 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2430 * change it if you alter the array (see bug 8858).
2431 * This is the list of settings the user can choose from:
2433 $wgImageLimits = array (
2439 array(10000,10000) );
2442 * Adjust thumbnails on image pages according to a user setting. In order to
2443 * reduce disk usage, the values can only be selected from a list. This is the
2444 * list of settings the user can choose from:
2446 $wgThumbLimits = array(
2456 * Adjust width of upright images when parameter 'upright' is used
2457 * This allows a nicer look for upright images without the need to fix the width
2458 * by hardcoded px in wiki sourcecode.
2460 $wgThumbUpright = 0.75;
2463 * On category pages, show thumbnail gallery for images belonging to that
2464 * category instead of listing them as articles.
2466 $wgCategoryMagicGallery = true;
2469 * Paging limit for categories
2471 $wgCategoryPagingLimit = 200;
2474 * Browser Blacklist for unicode non compliant browsers
2475 * Contains a list of regexps : "/regexp/" matching problematic browsers
2477 $wgBrowserBlackList = array(
2479 * Netscape 2-4 detection
2480 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2481 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2482 * with a negative assertion. The [UIN] identifier specifies the level of security
2483 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2484 * The language string is unreliable, it is missing on NS4 Mac.
2486 * Reference: http://www.psychedelix.com/agents/index.shtml
2488 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2489 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2490 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2493 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2496 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2497 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2498 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2501 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2502 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2504 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2507 * Google wireless transcoder, seems to eat a lot of chars alive
2508 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2510 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2514 * Fake out the timezone that the server thinks it's in. This will be used for
2515 * date display and not for what's stored in the DB. Leave to null to retain
2516 * your server's OS-based timezone value. This is the same as the timezone.
2518 * This variable is currently used ONLY for signature formatting, not for
2521 # $wgLocaltimezone = 'GMT';
2522 # $wgLocaltimezone = 'PST8PDT';
2523 # $wgLocaltimezone = 'Europe/Sweden';
2524 # $wgLocaltimezone = 'CET';
2525 $wgLocaltimezone = null;
2528 * Set an offset from UTC in minutes to use for the default timezone setting
2529 * for anonymous users and new user accounts.
2531 * This setting is used for most date/time displays in the software, and is
2532 * overrideable in user preferences. It is *not* used for signature timestamps.
2534 * You can set it to match the configured server timezone like this:
2535 * $wgLocalTZoffset = date("Z") / 60;
2537 * If your server is not configured for the timezone you want, you can set
2538 * this in conjunction with the signature timezone and override the TZ
2539 * environment variable like so:
2540 * $wgLocaltimezone="Europe/Berlin";
2541 * putenv("TZ=$wgLocaltimezone");
2542 * $wgLocalTZoffset = date("Z") / 60;
2544 * Leave at NULL to show times in universal time (UTC/GMT).
2546 $wgLocalTZoffset = null;
2550 * When translating messages with wfMsg(), it is not always clear what should be
2551 * considered UI messages and what shoud be content messages.
2553 * For example, for regular wikipedia site like en, there should be only one
2554 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2555 * it as content of the site and call wfMsgForContent(), while for rendering the
2556 * text of the link, we call wfMsg(). The code in default behaves this way.
2557 * However, sites like common do offer different versions of 'mainpage' and the
2558 * like for different languages. This array provides a way to override the
2559 * default behavior. For example, to allow language specific mainpage and
2560 * community portal, set
2562 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2564 $wgForceUIMsgAsContentMsg = array();
2568 * Authentication plugin.
2573 * Global list of hooks.
2574 * Add a hook by doing:
2575 * $wgHooks['event_name'][] = $function;
2577 * $wgHooks['event_name'][] = array($function, $data);
2579 * $wgHooks['event_name'][] = array($object, 'method');
2584 * The logging system has two levels: an event type, which describes the
2585 * general category and can be viewed as a named subset of all logs; and
2586 * an action, which is a specific kind of event that can exist in that
2589 $wgLogTypes = array( '',
2603 * This restricts log access to those who have a certain right
2604 * Users without this will not see it in the option menu and can not view it
2605 * Restricted logs are not added to recent changes
2606 * Logs should remain non-transcludable
2608 $wgLogRestrictions = array(
2609 'suppress' => 'suppressionlog'
2613 * Lists the message key string for each log type. The localized messages
2614 * will be listed in the user interface.
2616 * Extensions with custom log types may add to this array.
2618 $wgLogNames = array(
2619 '' => 'all-logs-page',
2620 'block' => 'blocklogpage',
2621 'protect' => 'protectlogpage',
2622 'rights' => 'rightslog',
2623 'delete' => 'dellogpage',
2624 'upload' => 'uploadlogpage',
2625 'move' => 'movelogpage',
2626 'import' => 'importlogpage',
2627 'patrol' => 'patrol-log-page',
2628 'merge' => 'mergelog',
2629 'suppress' => 'suppressionlog',
2633 * Lists the message key string for descriptive text to be shown at the
2634 * top of each log type.
2636 * Extensions with custom log types may add to this array.
2638 $wgLogHeaders = array(
2639 '' => 'alllogstext',
2640 'block' => 'blocklogtext',
2641 'protect' => 'protectlogtext',
2642 'rights' => 'rightslogtext',
2643 'delete' => 'dellogpagetext',
2644 'upload' => 'uploadlogpagetext',
2645 'move' => 'movelogpagetext',
2646 'import' => 'importlogpagetext',
2647 'patrol' => 'patrol-log-header',
2648 'merge' => 'mergelogpagetext',
2649 'suppress' => 'suppressionlogtext',
2653 * Lists the message key string for formatting individual events of each
2654 * type and action when listed in the logs.
2656 * Extensions with custom log types may add to this array.
2658 $wgLogActions = array(
2659 'block/block' => 'blocklogentry',
2660 'block/unblock' => 'unblocklogentry',
2661 'protect/protect' => 'protectedarticle',
2662 'protect/modify' => 'modifiedarticleprotection',
2663 'protect/unprotect' => 'unprotectedarticle',
2664 'rights/rights' => 'rightslogentry',
2665 'delete/delete' => 'deletedarticle',
2666 'delete/restore' => 'undeletedarticle',
2667 'delete/revision' => 'revdelete-logentry',
2668 'delete/event' => 'logdelete-logentry',
2669 'upload/upload' => 'uploadedimage',
2670 'upload/overwrite' => 'overwroteimage',
2671 'upload/revert' => 'uploadedimage',
2672 'move/move' => '1movedto2',
2673 'move/move_redir' => '1movedto2_redir',
2674 'import/upload' => 'import-logentry-upload',
2675 'import/interwiki' => 'import-logentry-interwiki',
2676 'merge/merge' => 'pagemerge-logentry',
2677 'suppress/revision' => 'revdelete-logentry',
2678 'suppress/file' => 'revdelete-logentry',
2679 'suppress/event' => 'logdelete-logentry',
2680 'suppress/delete' => 'suppressedarticle',
2681 'suppress/block' => 'blocklogentry',
2685 * The same as above, but here values are names of functions,
2688 $wgLogActionsHandlers = array();
2691 * List of special pages, followed by what subtitle they should go under
2692 * at Special:SpecialPages
2694 $wgSpecialPageGroups = array(
2695 'DoubleRedirects' => 'maintenance',
2696 'BrokenRedirects' => 'maintenance',
2697 'Lonelypages' => 'maintenance',
2698 'Uncategorizedpages' => 'maintenance',
2699 'Uncategorizedcategories' => 'maintenance',
2700 'Uncategorizedimages' => 'maintenance',
2701 'Uncategorizedtemplates' => 'maintenance',
2702 'Unusedcategories' => 'maintenance',
2703 'Unusedimages' => 'maintenance',
2704 'Protectedpages' => 'maintenance',
2705 'Protectedtitles' => 'maintenance',
2706 'Unusedtemplates' => 'maintenance',
2707 'Withoutinterwiki' => 'maintenance',
2708 'Longpages' => 'maintenance',
2709 'Shortpages' => 'maintenance',
2710 'Ancientpages' => 'maintenance',
2711 'Deadendpages' => 'maintenance',
2712 'Wantedpages' => 'maintenance',
2713 'Wantedcategories' => 'maintenance',
2714 'Unwatchedpages' => 'maintenance',
2715 'Fewestrevisions' => 'maintenance',
2717 'Userlogin' => 'login',
2718 'Userlogout' => 'login',
2719 'CreateAccount' => 'login',
2721 'Recentchanges' => 'changes',
2722 'Recentchangeslinked' => 'changes',
2723 'Watchlist' => 'changes',
2724 'Newimages' => 'changes',
2725 'Newpages' => 'changes',
2728 'Upload' => 'media',
2729 'Imagelist' => 'media',
2730 'MIMEsearch' => 'media',
2731 'FileDuplicateSearch' => 'media',
2732 'Filepath' => 'media',
2734 'Listusers' => 'users',
2735 'Listgrouprights' => 'users',
2736 'Ipblocklist' => 'users',
2737 'Contributions' => 'users',
2738 'Emailuser' => 'users',
2739 'Listadmins' => 'users',
2740 'Listbots' => 'users',
2741 'Userrights' => 'users',
2742 'Blockip' => 'users',
2743 'Preferences' => 'users',
2744 'Resetpass' => 'users',
2746 'Mostlinked' => 'highuse',
2747 'Mostlinkedcategories' => 'highuse',
2748 'Mostlinkedtemplates' => 'highuse',
2749 'Mostcategories' => 'highuse',
2750 'Mostimages' => 'highuse',
2751 'Mostrevisions' => 'highuse',
2753 'Allpages' => 'pages',
2754 'Prefixindex' => 'pages',
2755 'Listredirects' => 'pages',
2756 'Categories' => 'pages',
2757 'Disambiguations' => 'pages',
2759 'Randompage' => 'redirects',
2760 'Randomredirect' => 'redirects',
2761 'Mypage' => 'redirects',
2762 'Mytalk' => 'redirects',
2763 'Mycontributions' => 'redirects',
2764 'Search' => 'redirects',
2766 'Movepage' => 'pagetools',
2767 'MergeHistory' => 'pagetools',
2768 'Revisiondelete' => 'pagetools',
2769 'Undelete' => 'pagetools',
2770 'Export' => 'pagetools',
2771 'Import' => 'pagetools',
2772 'Whatlinkshere' => 'pagetools',
2774 'Statistics' => 'wiki',
2775 'Version' => 'wiki',
2777 'Unlockdb' => 'wiki',
2778 'Allmessages' => 'wiki',
2779 'Popularpages' => 'wiki',
2781 'Specialpages' => 'other',
2782 'Blockme' => 'other',
2783 'Booksources' => 'other',
2787 * Experimental preview feature to fetch rendered text
2788 * over an XMLHttpRequest from JavaScript instead of
2789 * forcing a submit and reload of the whole page.
2790 * Leave disabled unless you're testing it.
2792 $wgLivePreview = false;
2795 * Disable the internal MySQL-based search, to allow it to be
2796 * implemented by an extension instead.
2798 $wgDisableInternalSearch = false;
2801 * Set this to a URL to forward search requests to some external location.
2802 * If the URL includes '$1', this will be replaced with the URL-encoded
2805 * For example, to forward to Google you'd have something like:
2806 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2807 * '&domains=http://example.com' .
2808 * '&sitesearch=http://example.com' .
2809 * '&ie=utf-8&oe=utf-8';
2811 $wgSearchForwardUrl = null;
2814 * If true, external URL links in wiki text will be given the
2815 * rel="nofollow" attribute as a hint to search engines that
2816 * they should not be followed for ranking purposes as they
2817 * are user-supplied and thus subject to spamming.
2819 $wgNoFollowLinks = true;
2822 * Namespaces in which $wgNoFollowLinks doesn't apply.
2823 * See Language.php for a list of namespaces.
2825 $wgNoFollowNsExceptions = array();
2828 * Default robot policy. The default policy is to encourage indexing and fol-
2829 * lowing of links. It may be overridden on a per-namespace and/or per-page
2832 $wgDefaultRobotPolicy = 'index,follow';
2835 * Robot policies per namespaces. The default policy is given above, the array
2836 * is made of namespace constants as defined in includes/Defines.php. You can-
2837 * not specify a different default policy for NS_SPECIAL: it is always noindex,
2838 * nofollow. This is because a number of special pages (e.g., ListPages) have
2839 * many permutations of options that display the same data under redundant
2840 * URLs, so search engine spiders risk getting lost in a maze of twisty special
2841 * pages, all alike, and never reaching your actual content.
2844 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2846 $wgNamespaceRobotPolicies = array();
2849 * Robot policies per article. These override the per-namespace robot policies.
2850 * Must be in the form of an array where the key part is a properly canonical-
2851 * ised text form title and the value is a robot policy.
2853 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex,follow',
2854 * 'User:Bob' => 'index,follow' );
2855 * Example that DOES NOT WORK because the names are not canonical text forms:
2856 * $wgArticleRobotPolicies = array(
2857 * # Underscore, not space!
2858 * 'Main_Page' => 'noindex,follow',
2859 * # "Project", not the actual project name!
2860 * 'Project:X' => 'index,follow',
2861 * # Needs to be "Abc", not "abc" (unless $wgCapitalLinks is false)!
2862 * 'abc' => 'noindex,nofollow'
2865 $wgArticleRobotPolicies = array();
2868 * An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words
2869 * will not function, so users can't decide whether pages in that namespace are
2870 * indexed by search engines. If set to null, default to $wgContentNamespaces.
2872 * $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );
2874 $wgExemptFromUserRobotsControl = null;
2877 * Specifies the minimal length of a user password. If set to 0, empty pass-
2878 * words are allowed.
2880 $wgMinimalPasswordLength = 0;
2883 * Activate external editor interface for files and pages
2884 * See http://meta.wikimedia.org/wiki/Help:External_editors
2886 $wgUseExternalEditor = true;
2888 /** Whether or not to sort special pages in Special:Specialpages */
2890 $wgSortSpecialPages = true;
2893 * Specify the name of a skin that should not be presented in the list of a-
2894 * vailable skins. Use for blacklisting a skin which you do not want to remove
2895 * from the .../skins/ directory
2898 $wgSkipSkins = array(); # More of the same
2901 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2903 $wgDisabledActions = array();
2906 * Disable redirects to special pages and interwiki redirects, which use a 302
2907 * and have no "redirected from" link.
2909 $wgDisableHardRedirects = false;
2912 * Use http.dnsbl.sorbs.net to check for open proxies
2914 $wgEnableSorbs = false;
2915 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2918 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite
2919 * what the other methods might say.
2921 $wgProxyWhitelist = array();
2924 * Simple rate limiter options to brake edit floods. Maximum number actions
2925 * allowed in the given number of seconds; after that the violating client re-
2926 * ceives HTTP 500 error pages until the period elapses.
2928 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2930 * This option set is experimental and likely to change. Requires memcached.
2932 $wgRateLimits = array(
2934 'anon' => null, // for any and all anonymous edits (aggregate)
2935 'user' => null, // for each logged-in user
2936 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
2937 'ip' => null, // for each anon and recent account
2938 'subnet' => null, // ... with final octet removed
2946 'mailpassword' => array(
2949 'emailuser' => array(
2955 * Set to a filename to log rate limiter hits.
2957 $wgRateLimitLog = null;
2960 * Array of groups which should never trigger the rate limiter
2962 * @deprecated as of 1.13.0, the preferred method is using
2963 * $wgGroupPermissions[]['noratelimit']. However, this will still
2966 * $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2968 $wgRateLimitsExcludedGroups = array();
2971 * On Special:Unusedimages, consider images "used", if they are put
2972 * into a category. Default (false) is not to count those as used.
2974 $wgCountCategorizedImagesAsUsed = false;
2977 * External stores allow including content
2978 * from non database sources following URL links
2980 * Short names of ExternalStore classes may be specified in an array here:
2981 * $wgExternalStores = array("http","file","custom")...
2983 * CAUTION: Access to database might lead to code execution
2985 $wgExternalStores = false;
2988 * An array of external mysql servers, e.g.
2989 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2990 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
2992 $wgExternalServers = array();
2995 * The place to put new revisions, false to put them in the local text table.
2996 * Part of a URL, e.g. DB://cluster1
2998 * Can be an array instead of a single string, to enable data distribution. Keys
2999 * must be consecutive integers, starting at zero. Example:
3001 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
3004 $wgDefaultExternalStore = false;
3007 * Revision text may be cached in $wgMemc to reduce load on external storage
3008 * servers and object extraction overhead for frequently-loaded revisions.
3010 * Set to 0 to disable, or number of seconds before cache expiry.
3012 $wgRevisionCacheExpiry = 0;
3015 * list of trusted media-types and mime types.
3016 * Use the MEDIATYPE_xxx constants to represent media types.
3017 * This list is used by Image::isSafeFile
3019 * Types not listed here will have a warning about unsafe content
3020 * displayed on the images description page. It would also be possible
3021 * to use this for further restrictions, like disabling direct
3022 * [[media:...]] links for non-trusted formats.
3024 $wgTrustedMediaFormats= array(
3025 MEDIATYPE_BITMAP
, //all bitmap formats
3026 MEDIATYPE_AUDIO
, //all audio formats
3027 MEDIATYPE_VIDEO
, //all plain video formats
3028 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
3029 "application/pdf", //PDF files
3030 #"application/x-shockwave-flash", //flash/shockwave movie
3034 * Allow special page inclusions such as {{Special:Allpages}}
3036 $wgAllowSpecialInclusion = true;
3039 * Timeout for HTTP requests done via CURL
3044 * Proxy to use for CURL requests.
3046 $wgHTTPProxy = false;
3049 * Enable interwiki transcluding. Only when iw_trans=1.
3051 $wgEnableScaryTranscluding = false;
3053 * Expiry time for interwiki transclusion
3055 $wgTranscludeCacheExpiry = 3600;
3058 * Support blog-style "trackbacks" for articles. See
3059 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
3061 $wgUseTrackbacks = false;
3064 * Enable filtering of categories in Recentchanges
3066 $wgAllowCategorizedRecentChanges = false ;
3069 * Number of jobs to perform per request. May be less than one in which case
3070 * jobs are performed probabalistically. If this is zero, jobs will not be done
3071 * during ordinary apache requests. In this case, maintenance/runJobs.php should
3072 * be run periodically.
3077 * Number of rows to update per job
3079 $wgUpdateRowsPerJob = 500;
3082 * Number of rows to update per query
3084 $wgUpdateRowsPerQuery = 10;
3087 * Enable AJAX framework
3092 * Enable auto suggestion for the search bar
3093 * Requires $wgUseAjax to be true too.
3094 * Causes wfSajaxSearch to be added to $wgAjaxExportList
3096 $wgAjaxSearch = false;
3099 * List of Ajax-callable functions.
3100 * Extensions acting as Ajax callbacks must register here
3102 $wgAjaxExportList = array( );
3105 * Enable watching/unwatching pages using AJAX.
3106 * Requires $wgUseAjax to be true too.
3107 * Causes wfAjaxWatch to be added to $wgAjaxExportList
3109 $wgAjaxWatch = true;
3112 * Enable AJAX check for file overwrite, pre-upload
3114 $wgAjaxUploadDestCheck = true;
3117 * Enable previewing licences via AJAX
3119 $wgAjaxLicensePreview = true;
3122 * Allow DISPLAYTITLE to change title display
3124 $wgAllowDisplayTitle = true;
3127 * Array of usernames which may not be registered or logged in from
3128 * Maintenance scripts can still use these
3130 $wgReservedUsernames = array(
3131 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3132 'Conversion script', // Used for the old Wikipedia software upgrade
3133 'Maintenance script', // Maintenance scripts which perform editing, image import script
3134 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3135 'msg:double-redirect-fixer', // Automatic double redirect fix
3139 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
3140 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
3141 * crap files as images. When this directive is on, <title> will be allowed in files with
3142 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
3143 * and doesn't send appropriate MIME types for SVG images.
3145 $wgAllowTitlesInSVG = false;
3148 * Array of namespaces which can be deemed to contain valid "content", as far
3149 * as the site statistics are concerned. Useful if additional namespaces also
3150 * contain "content" which should be considered when generating a count of the
3151 * number of articles in the wiki.
3153 $wgContentNamespaces = array( NS_MAIN
);
3156 * Maximum amount of virtual memory available to shell processes under linux, in KB.
3158 $wgMaxShellMemory = 102400;
3161 * Maximum file size created by shell processes under linux, in KB
3162 * ImageMagick convert for example can be fairly hungry for scratch space
3164 $wgMaxShellFileSize = 102400;
3168 * Path of the djvudump executable
3169 * Enable this and $wgDjvuRenderer to enable djvu rendering
3171 # $wgDjvuDump = 'djvudump';
3175 * Path of the ddjvu DJVU renderer
3176 * Enable this and $wgDjvuDump to enable djvu rendering
3178 # $wgDjvuRenderer = 'ddjvu';
3179 $wgDjvuRenderer = null;
3182 * Path of the djvutoxml executable
3183 * This works like djvudump except much, much slower as of version 3.5.
3185 * For now I recommend you use djvudump instead. The djvuxml output is
3186 * probably more stable, so we'll switch back to it as soon as they fix
3187 * the efficiency problem.
3188 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
3190 # $wgDjvuToXML = 'djvutoxml';
3191 $wgDjvuToXML = null;
3195 * Shell command for the DJVU post processor
3196 * Default: pnmtopng, since ddjvu generates ppm output
3197 * Set this to false to output the ppm file directly.
3199 $wgDjvuPostProcessor = 'pnmtojpeg';
3201 * File extension for the DJVU post processor output
3203 $wgDjvuOutputExtension = 'jpg';
3206 * Enable the MediaWiki API for convenient access to
3207 * machine-readable data via api.php
3209 * See http://www.mediawiki.org/wiki/API
3211 $wgEnableAPI = true;
3214 * Allow the API to be used to perform write operations
3215 * (page edits, rollback, etc.) when an authorised user
3218 $wgEnableWriteAPI = false;
3221 * API module extensions
3222 * Associative array mapping module name to class name.
3223 * Extension modules may override the core modules.
3225 $wgAPIModules = array();
3226 $wgAPIMetaModules = array();
3227 $wgAPIPropModules = array();
3228 $wgAPIListModules = array();
3231 * Maximum amount of rows to scan in a DB query in the API
3232 * The default value is generally fine
3234 $wgAPIMaxDBRows = 5000;
3237 * Parser test suite files to be run by parserTests.php when no specific
3238 * filename is passed to it.
3240 * Extensions may add their own tests to this array, or site-local tests
3241 * may be added via LocalSettings.php
3245 $wgParserTestFiles = array(
3246 "$IP/maintenance/parserTests.txt",
3250 * Break out of framesets. This can be used to prevent external sites from
3251 * framing your site with ads.
3253 $wgBreakFrames = false;
3256 * Set this to an array of special page names to prevent
3257 * maintenance/updateSpecialPages.php from updating those pages.
3259 $wgDisableQueryPageUpdate = false;
3262 * Disable output compression (enabled by default if zlib is available)
3264 $wgDisableOutputCompression = false;
3267 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
3268 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
3269 * show a more obvious warning.
3271 $wgSlaveLagWarning = 10;
3272 $wgSlaveLagCritical = 30;
3275 * Parser configuration. Associative array with the following members:
3277 * class The class name
3279 * preprocessorClass The preprocessor class. Two classes are currently available:
3280 * Preprocessor_Hash, which uses plain PHP arrays for tempoarary
3281 * storage, and Preprocessor_DOM, which uses the DOM module for
3282 * temporary storage. Preprocessor_DOM generally uses less memory;
3283 * the speed of the two is roughly the same.
3285 * If this parameter is not given, it uses Preprocessor_DOM if the
3286 * DOM module is available, otherwise it uses Preprocessor_Hash.
3288 * Has no effect on Parser_OldPP.
3290 * The entire associative array will be passed through to the constructor as
3291 * the first parameter. Note that only Setup.php can use this variable --
3292 * the configuration will change at runtime via $wgParser member functions, so
3293 * the contents of this variable will be out-of-date. The variable can only be
3294 * changed during LocalSettings.php, in particular, it can't be changed during
3295 * an extension setup function.
3297 $wgParserConf = array(
3298 'class' => 'Parser',
3299 #'preprocessorClass' => 'Preprocessor_Hash',
3303 * Hooks that are used for outputting exceptions. Format is:
3304 * $wgExceptionHooks[] = $funcname
3306 * $wgExceptionHooks[] = array( $class, $funcname )
3307 * Hooks should return strings or false
3309 $wgExceptionHooks = array();
3312 * Page property link table invalidation lists. Should only be set by exten-
3315 $wgPagePropLinkInvalidations = array(
3316 'hiddencat' => 'categorylinks',
3320 * Maximum number of links to a redirect page listed on
3321 * Special:Whatlinkshere/RedirectDestination
3323 $wgMaxRedirectLinksRetrieved = 500;
3326 * Maximum number of calls per parse to expensive parser functions such as
3329 $wgExpensiveParserFunctionLimit = 100;
3332 * Maximum number of pages to move at once when moving subpages with a page.
3334 $wgMaximumMovedPages = 100;
3337 * Array of namespaces to generate a sitemap for when the
3338 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
3339 * nerated for all namespaces.
3341 $wgSitemapNamespaces = false;
3345 * If user doesn't specify any edit summary when making a an edit, MediaWiki
3346 * will try to automatically create one. This feature can be disabled by set-
3347 * ting this variable false.
3349 $wgUseAutomaticEditSummaries = true;