Recommitting User::isActiveUser() as User::isActiveEditor() per suggestions from...
[mediawiki.git] / includes / DefaultSettings.php
blob52fd2ac6280a346792fcb695e34441a09a23c9f4
1 <?php
2 /**
4 * NEVER EDIT THIS FILE
7 * To customize your installation, edit "LocalSettings.php". If you make
8 * changes here, they will be lost on next upgrade of MediaWiki!
10 * Note that since all these string interpolations are expanded
11 * before LocalSettings is included, if you localize something
12 * like $wgScriptPath, you must also localize everything that
13 * depends on it.
15 * Documentation is in the source and on:
16 * http://www.mediawiki.org/wiki/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";
23 die( 1 );
26 /**
27 * Create a site configuration object
28 * Not used for much in a default install
30 require_once( "$IP/includes/SiteConfiguration.php" );
31 $wgConf = new SiteConfiguration;
33 /** MediaWiki version number */
34 $wgVersion = '1.13alpha';
36 /** Name of the site. It must be changed in LocalSettings.php */
37 $wgSitename = 'MediaWiki';
39 /**
40 * Name of the project namespace. If left set to false, $wgSitename will be
41 * used instead.
43 $wgMetaNamespace = false;
45 /**
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
52 * exists.
54 $wgMetaNamespaceTalk = false;
57 /** URL of the server. It will be automatically built including https mode */
58 $wgServer = '';
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'];
68 } else {
69 $wgServerName = 'localhost';
72 # check if server use https:
73 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
75 $wgServer = $wgProto.'://' . $wgServerName;
76 # If the port is a non-standard one, add it to the URL
77 if( isset( $_SERVER['SERVER_PORT'] )
78 && !strpos( $wgServerName, ':' )
79 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
80 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
82 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
86 /**
87 * The path we should point to.
88 * It might be a virtual path in case with use apache mod_rewrite for example
90 * This *needs* to be set correctly.
92 * Other paths will be set to defaults based on it unless they are directly
93 * set in LocalSettings.php
95 $wgScriptPath = '/wiki';
97 /**
98 * Whether to support URLs like index.php/Page_title These often break when PHP
99 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
100 * but then again it may not; lighttpd converts incoming path data to lowercase
101 * on systems with case-insensitive filesystems, and there have been reports of
102 * problems on Apache as well.
104 * To be safe we'll continue to keep it off by default.
106 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
107 * incorrect garbage, or to true if it is really correct.
109 * The default $wgArticlePath will be set based on this value at runtime, but if
110 * you have customized it, having this incorrectly set to true can cause
111 * redirect loops when "pretty URLs" are used.
113 $wgUsePathInfo =
114 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
115 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
116 ( strpos( php_sapi_name(), 'isapi' ) === false );
119 /**@{
120 * Script users will request to get articles
121 * ATTN: Old installations used wiki.phtml and redirect.phtml - make sure that
122 * LocalSettings.php is correctly set!
124 * Will be set based on $wgScriptPath in Setup.php if not overridden in
125 * LocalSettings.php. Generally you should not need to change this unless you
126 * don't like seeing "index.php".
128 $wgScriptExtension = '.php'; ///< extension to append to script names by default
129 $wgScript = false; ///< defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
130 $wgRedirectScript = false; ///< defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
131 /**@}*/
134 /**@{
135 * These various web and file path variables are set to their defaults
136 * in Setup.php if they are not explicitly set from LocalSettings.php.
137 * If you do override them, be sure to set them all!
139 * These will relatively rarely need to be set manually, unless you are
140 * splitting style sheets or images outside the main document root.
143 * style path as seen by users
145 $wgStylePath = false; ///< defaults to "{$wgScriptPath}/skins"
147 * filesystem stylesheets directory
149 $wgStyleDirectory = false; ///< defaults to "{$IP}/skins"
150 $wgStyleSheetPath = &$wgStylePath;
151 $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
152 $wgVariantArticlePath = false;
153 $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images"
154 $wgUploadDirectory = false; ///< defaults to "{$IP}/images"
155 $wgHashedUploadDirectory = true;
156 $wgLogo = false; ///< defaults to "{$wgStylePath}/common/images/wiki.png"
157 $wgFavicon = '/favicon.ico';
158 $wgAppleTouchIcon = false; ///< This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
159 $wgMathPath = false; ///< defaults to "{$wgUploadPath}/math"
160 $wgMathDirectory = false; ///< defaults to "{$wgUploadDirectory}/math"
161 $wgTmpDirectory = false; ///< defaults to "{$wgUploadDirectory}/tmp"
162 $wgUploadBaseUrl = "";
163 /**@}*/
166 * New file storage paths; currently used only for deleted files.
167 * Set it like this:
169 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
172 $wgFileStore = array();
173 $wgFileStore['deleted']['directory'] = false;///< Defaults to $wgUploadDirectory/deleted
174 $wgFileStore['deleted']['url'] = null; ///< Private
175 $wgFileStore['deleted']['hash'] = 3; ///< 3-level subdirectory split
177 /**@{
178 * File repository structures
180 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
181 * a an array of such structures. Each repository structure is an associative
182 * array of properties configuring the repository.
184 * Properties required for all repos:
185 * class The class name for the repository. May come from the core or an extension.
186 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
188 * name A unique name for the repository.
190 * For all core repos:
191 * url Base public URL
192 * hashLevels The number of directory levels for hash-based division of files
193 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
194 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
195 * handler instead.
196 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
197 * start with a capital letter. The current implementation may give incorrect
198 * description page links when the local $wgCapitalLinks and initialCapital
199 * are mismatched.
200 * pathDisclosureProtection
201 * May be 'paranoid' to remove all parameters from error messages, 'none' to
202 * leave the paths in unchanged, or 'simple' to replace paths with
203 * placeholders. Default for LocalRepo is 'simple'.
205 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
206 * for local repositories:
207 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
208 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
209 * http://en.wikipedia.org/w
211 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
212 * fetchDescription Fetch the text of the remote file description page. Equivalent to
213 * $wgFetchCommonsDescriptions.
215 * ForeignDBRepo:
216 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
217 * equivalent to the corresponding member of $wgDBservers
218 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
219 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
221 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
222 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
224 $wgLocalFileRepo = false;
225 $wgForeignFileRepos = array();
226 /**@}*/
229 * Allowed title characters -- regex character class
230 * Don't change this unless you know what you're doing
232 * Problematic punctuation:
233 * []{}|# Are needed for link syntax, never enable these
234 * <> Causes problems with HTML escaping, don't use
235 * % Enabled by default, minor problems with path to query rewrite rules, see below
236 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
237 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
239 * All three of these punctuation problems can be avoided by using an alias, instead of a
240 * rewrite rule of either variety.
242 * The problem with % is that when using a path to query rewrite rule, URLs are
243 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
244 * %253F, for example, becomes "?". Our code does not double-escape to compensate
245 * for this, indeed double escaping would break if the double-escaped title was
246 * passed in the query string rather than the path. This is a minor security issue
247 * because articles can be created such that they are hard to view or edit.
249 * In some rare cases you may wish to remove + for compatibility with old links.
251 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
252 * this breaks interlanguage links
254 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
258 * The external URL protocols
260 $wgUrlProtocols = array(
261 'http://',
262 'https://',
263 'ftp://',
264 'irc://',
265 'gopher://',
266 'telnet://', // Well if we're going to support the above.. -ævar
267 'nntp://', // @bug 3808 RFC 1738
268 'worldwind://',
269 'mailto:',
270 'news:'
273 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
274 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
276 $wgAntivirus= NULL;
278 /** Configuration for different virus scanners. This an associative array of associative arrays:
279 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
280 * valid values for $wgAntivirus are the keys defined in this array.
282 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
284 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
285 * file to scan. If not present, the filename will be appended to the command. Note that this must be
286 * overwritten if the scanner is not in the system path; in that case, plase set
287 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
289 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
290 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
291 * the file if $wgAntivirusRequired is not set.
292 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
293 * which is probably imune to virusses. This causes the file to pass.
294 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
295 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
296 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
298 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
299 * output. The relevant part should be matched as group one (\1).
300 * If not defined or the pattern does not match, the full message is shown to the user.
302 $wgAntivirusSetup = array(
304 #setup for clamav
305 'clamav' => array (
306 'command' => "clamscan --no-summary ",
308 'codemap' => array (
309 "0" => AV_NO_VIRUS, # no virus
310 "1" => AV_VIRUS_FOUND, # virus found
311 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
312 "*" => AV_SCAN_FAILED, # else scan failed
315 'messagepattern' => '/.*?:(.*)/sim',
318 #setup for f-prot
319 'f-prot' => array (
320 'command' => "f-prot ",
322 'codemap' => array (
323 "0" => AV_NO_VIRUS, # no virus
324 "3" => AV_VIRUS_FOUND, # virus found
325 "6" => AV_VIRUS_FOUND, # virus found
326 "*" => AV_SCAN_FAILED, # else scan failed
329 'messagepattern' => '/.*?Infection:(.*)$/m',
334 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
335 $wgAntivirusRequired= true;
337 /** Determines if the mime type of uploaded files should be checked */
338 $wgVerifyMimeType= true;
340 /** Sets the mime type definition file to use by MimeMagic.php. */
341 $wgMimeTypeFile= "includes/mime.types";
342 #$wgMimeTypeFile= "/etc/mime.types";
343 #$wgMimeTypeFile= NULL; #use built-in defaults only.
345 /** Sets the mime type info file to use by MimeMagic.php. */
346 $wgMimeInfoFile= "includes/mime.info";
347 #$wgMimeInfoFile= NULL; #use built-in defaults only.
349 /** Switch for loading the FileInfo extension by PECL at runtime.
350 * This should be used only if fileinfo is installed as a shared object
351 * or a dynamic libary
353 $wgLoadFileinfoExtension= false;
355 /** Sets an external mime detector program. The command must print only
356 * the mime type to standard output.
357 * The name of the file to process will be appended to the command given here.
358 * If not set or NULL, mime_content_type will be used if available.
360 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
361 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
363 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
364 * things, because only a few types of images are needed and file extensions
365 * can be trusted.
367 $wgTrivialMimeDetection= false;
370 * To set 'pretty' URL paths for actions other than
371 * plain page views, add to this array. For instance:
372 * 'edit' => "$wgScriptPath/edit/$1"
374 * There must be an appropriate script or rewrite rule
375 * in place to handle these URLs.
377 $wgActionPaths = array();
380 * If you operate multiple wikis, you can define a shared upload path here.
381 * Uploads to this wiki will NOT be put there - they will be put into
382 * $wgUploadDirectory.
383 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
384 * no file of the given name is found in the local repository (for [[Image:..]],
385 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
386 * directory.
388 * Note that these configuration settings can now be defined on a per-
389 * repository basis for an arbitrary number of file repositories, using the
390 * $wgForeignFileRepos variable.
392 $wgUseSharedUploads = false;
393 /** Full path on the web server where shared uploads can be found */
394 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
395 /** Fetch commons image description pages and display them on the local wiki? */
396 $wgFetchCommonsDescriptions = false;
397 /** Path on the file system where shared uploads can be found. */
398 $wgSharedUploadDirectory = "/var/www/wiki3/images";
399 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
400 $wgSharedUploadDBname = false;
401 /** Optional table prefix used in database. */
402 $wgSharedUploadDBprefix = '';
403 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
404 $wgCacheSharedUploads = true;
405 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
406 $wgAllowCopyUploads = false;
408 * Max size for uploads, in bytes. Currently only works for uploads from URL
409 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
410 * normal uploads is currently to edit php.ini.
412 $wgMaxUploadSize = 1024*1024*100; # 100MB
415 * Point the upload navigation link to an external URL
416 * Useful if you want to use a shared repository by default
417 * without disabling local uploads (use $wgEnableUploads = false for that)
418 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
420 $wgUploadNavigationUrl = false;
423 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
424 * generating them on render and outputting a static URL. This is necessary if some of your
425 * apache servers don't have read/write access to the thumbnail path.
427 * Example:
428 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
430 $wgThumbnailScriptPath = false;
431 $wgSharedThumbnailScriptPath = false;
434 * Set the following to false especially if you have a set of files that need to
435 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
436 * directory layout.
438 $wgHashedSharedUploadDirectory = true;
441 * Base URL for a repository wiki. Leave this blank if uploads are just stored
442 * in a shared directory and not meant to be accessible through a separate wiki.
443 * Otherwise the image description pages on the local wiki will link to the
444 * image description page on this wiki.
446 * Please specify the namespace, as in the example below.
448 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
451 # Email settings
455 * Site admin email address
456 * Default to wikiadmin@SERVER_NAME
458 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
461 * Password reminder email address
462 * The address we should use as sender when a user is requesting his password
463 * Default to apache@SERVER_NAME
465 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
468 * dummy address which should be accepted during mail send action
469 * It might be necessay to adapt the address or to set it equal
470 * to the $wgEmergencyContact address
472 #$wgNoReplyAddress = $wgEmergencyContact;
473 $wgNoReplyAddress = 'reply@not.possible';
476 * Set to true to enable the e-mail basic features:
477 * Password reminders, etc. If sending e-mail on your
478 * server doesn't work, you might want to disable this.
480 $wgEnableEmail = true;
483 * Set to true to enable user-to-user e-mail.
484 * This can potentially be abused, as it's hard to track.
486 $wgEnableUserEmail = true;
489 * Set to true to put the sending user's email in a Reply-To header
490 * instead of From. ($wgEmergencyContact will be used as From.)
492 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
493 * which can cause problems with SPF validation and leak recipient addressses
494 * when bounces are sent to the sender.
496 $wgUserEmailUseReplyTo = false;
499 * Minimum time, in hours, which must elapse between password reminder
500 * emails for a given account. This is to prevent abuse by mail flooding.
502 $wgPasswordReminderResendTime = 24;
505 * SMTP Mode
506 * For using a direct (authenticated) SMTP server connection.
507 * Default to false or fill an array :
508 * <code>
509 * "host" => 'SMTP domain',
510 * "IDHost" => 'domain for MessageID',
511 * "port" => "25",
512 * "auth" => true/false,
513 * "username" => user,
514 * "password" => password
515 * </code>
517 $wgSMTP = false;
520 /**@{
521 * Database settings
523 /** database host name or ip address */
524 $wgDBserver = 'localhost';
525 /** database port number */
526 $wgDBport = '';
527 /** name of the database */
528 $wgDBname = 'wikidb';
529 /** */
530 $wgDBconnection = '';
531 /** Database username */
532 $wgDBuser = 'wikiuser';
533 /** Database type
535 $wgDBtype = "mysql";
536 /** Search type
537 * Leave as null to select the default search engine for the
538 * selected database type (eg SearchMySQL4), or set to a class
539 * name to override to a custom search engine.
541 $wgSearchType = null;
542 /** Table name prefix */
543 $wgDBprefix = '';
544 /** MySQL table options to use during installation or update */
545 $wgDBTableOptions = 'TYPE=InnoDB';
547 /** To override default SQLite data directory ($docroot/../data) */
548 $wgSQLiteDataDir = '';
551 * Make all database connections secretly go to localhost. Fool the load balancer
552 * thinking there is an arbitrarily large cluster of servers to connect to.
553 * Useful for debugging.
555 $wgAllDBsAreLocalhost = false;
557 /**@}*/
560 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
561 $wgCheckDBSchema = true;
565 * Shared database for multiple wikis. Commonly used for storing a user table
566 * for single sign-on. The server for this database must be the same as for the
567 * main database.
568 * For backwards compatibility the shared prefix is set to the same as the local
569 * prefix, and the user table is listed in the default list of shared tables.
571 * $wgSharedTables may be customized with a list of tables to share in the shared
572 * datbase. However it is advised to limit what tables you do share as many of
573 * MediaWiki's tables may have side effects if you try to share them.
574 * EXPERIMENTAL
576 $wgSharedDB = null;
577 $wgSharedPrefix = false; # Defaults to $wgDBprefix
578 $wgSharedTables = array( 'user' );
581 * Database load balancer
582 * This is a two-dimensional array, an array of server info structures
583 * Fields are:
584 * host: Host name
585 * dbname: Default database name
586 * user: DB user
587 * password: DB password
588 * type: "mysql" or "postgres"
589 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
590 * groupLoads: array of load ratios, the key is the query group name. A query may belong
591 * to several groups, the most specific group defined here is used.
593 * flags: bit field
594 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
595 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
596 * DBO_TRX -- wrap entire request in a transaction
597 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
598 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
600 * max lag: (optional) Maximum replication lag before a slave will taken out of rotation
601 * max threads: (optional) Maximum number of running threads
603 * These and any other user-defined properties will be assigned to the mLBInfo member
604 * variable of the Database object.
606 * Leave at false to use the single-server variables above. If you set this
607 * variable, the single-server variables will generally be ignored (except
608 * perhaps in some command-line scripts).
610 * The first server listed in this array (with key 0) will be the master. The
611 * rest of the servers will be slaves. To prevent writes to your slaves due to
612 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
613 * slaves in my.cnf. You can set read_only mode at runtime using:
615 * SET @@read_only=1;
617 * Since the effect of writing to a slave is so damaging and difficult to clean
618 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
619 * our masters, and then set read_only=0 on masters at runtime.
621 $wgDBservers = false;
624 * Load balancer factory configuration
625 * To set up a multi-master wiki farm, set the class here to something that
626 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
627 * The class identified here is responsible for reading $wgDBservers,
628 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
630 * The LBFactory_Multi class is provided for this purpose, please see
631 * includes/LBFactory_Multi.php for configuration information.
633 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
635 /** How long to wait for a slave to catch up to the master */
636 $wgMasterWaitTimeout = 10;
638 /** File to log database errors to */
639 $wgDBerrorLog = false;
641 /** When to give an error message */
642 $wgDBClusterTimeout = 10;
645 * Scale load balancer polling time so that under overload conditions, the database server
646 * receives a SHOW STATUS query at an average interval of this many microseconds
648 $wgDBAvgStatusPoll = 2000;
651 * wgDBminWordLen :
652 * MySQL 3.x : used to discard words that MySQL will not return any results for
653 * shorter values configure mysql directly.
654 * MySQL 4.x : ignore it and configure mySQL
655 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
657 $wgDBminWordLen = 4;
658 /** Set to true if using InnoDB tables */
659 $wgDBtransactions = false;
660 /** Set to true for compatibility with extensions that might be checking.
661 * MySQL 3.23.x is no longer supported. */
662 $wgDBmysql4 = true;
665 * Set to true to engage MySQL 4.1/5.0 charset-related features;
666 * for now will just cause sending of 'SET NAMES=utf8' on connect.
668 * WARNING: THIS IS EXPERIMENTAL!
670 * May break if you're not using the table defs from mysql5/tables.sql.
671 * May break if you're upgrading an existing wiki if set differently.
672 * Broken symptoms likely to include incorrect behavior with page titles,
673 * usernames, comments etc containing non-ASCII characters.
674 * Might also cause failures on the object cache and other things.
676 * Even correct usage may cause failures with Unicode supplementary
677 * characters (those not in the Basic Multilingual Plane) unless MySQL
678 * has enhanced their Unicode support.
680 $wgDBmysql5 = false;
683 * Other wikis on this site, can be administered from a single developer
684 * account.
685 * Array numeric key => database name
687 $wgLocalDatabases = array();
689 /** @{
690 * Object cache settings
691 * See Defines.php for types
693 $wgMainCacheType = CACHE_NONE;
694 $wgMessageCacheType = CACHE_ANYTHING;
695 $wgParserCacheType = CACHE_ANYTHING;
696 /**@}*/
698 $wgParserCacheExpireTime = 86400;
700 $wgSessionsInMemcached = false;
702 /**@{
703 * Memcached-specific settings
704 * See docs/memcached.txt
706 $wgUseMemCached = false;
707 $wgMemCachedDebug = false; ///< Will be set to false in Setup.php, if the server isn't working
708 $wgMemCachedServers = array( '127.0.0.1:11000' );
709 $wgMemCachedPersistent = false;
710 /**@}*/
713 * Directory for local copy of message cache, for use in addition to memcached
715 $wgLocalMessageCache = false;
717 * Defines format of local cache
718 * true - Serialized object
719 * false - PHP source file (Warning - security risk)
721 $wgLocalMessageCacheSerialized = true;
724 * Directory for compiled constant message array databases
725 * WARNING: turning anything on will just break things, aaaaaah!!!!
727 $wgCachedMessageArrays = false;
729 # Language settings
731 /** Site language code, should be one of ./languages/Language(.*).php */
732 $wgLanguageCode = 'en';
735 * Some languages need different word forms, usually for different cases.
736 * Used in Language::convertGrammar().
738 $wgGrammarForms = array();
739 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
741 /** Treat language links as magic connectors, not inline links */
742 $wgInterwikiMagic = true;
744 /** Hide interlanguage links from the sidebar */
745 $wgHideInterlanguageLinks = false;
747 /** List of language names or overrides for default names in Names.php */
748 $wgExtraLanguageNames = array();
750 /** We speak UTF-8 all the time now, unless some oddities happen */
751 $wgInputEncoding = 'UTF-8';
752 $wgOutputEncoding = 'UTF-8';
753 $wgEditEncoding = '';
756 * Set this to eg 'ISO-8859-1' to perform character set
757 * conversion when loading old revisions not marked with
758 * "utf-8" flag. Use this when converting wiki to UTF-8
759 * without the burdensome mass conversion of old text data.
761 * NOTE! This DOES NOT touch any fields other than old_text.
762 * Titles, comments, user names, etc still must be converted
763 * en masse in the database before continuing as a UTF-8 wiki.
765 $wgLegacyEncoding = false;
768 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
769 * create stub reference rows in the text table instead of copying
770 * the full text of all current entries from 'cur' to 'text'.
772 * This will speed up the conversion step for large sites, but
773 * requires that the cur table be kept around for those revisions
774 * to remain viewable.
776 * maintenance/migrateCurStubs.php can be used to complete the
777 * migration in the background once the wiki is back online.
779 * This option affects the updaters *only*. Any present cur stub
780 * revisions will be readable at runtime regardless of this setting.
782 $wgLegacySchemaConversion = false;
784 $wgMimeType = 'text/html';
785 $wgJsMimeType = 'text/javascript';
786 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
787 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
788 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
791 * Permit other namespaces in addition to the w3.org default.
792 * Use the prefix for the key and the namespace for the value. For
793 * example:
794 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
795 * Normally we wouldn't have to define this in the root <html>
796 * element, but IE needs it there in some circumstances.
798 $wgXhtmlNamespaces = array();
800 /** Enable to allow rewriting dates in page text.
801 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
802 $wgUseDynamicDates = false;
803 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
804 * the interface is set to English
806 $wgAmericanDates = false;
808 * For Hindi and Arabic use local numerals instead of Western style (0-9)
809 * numerals in interface.
811 $wgTranslateNumerals = true;
814 * Translation using MediaWiki: namespace.
815 * This will increase load times by 25-60% unless memcached is installed.
816 * Interface messages will be loaded from the database.
818 $wgUseDatabaseMessages = true;
821 * Expiry time for the message cache key
823 $wgMsgCacheExpiry = 86400;
826 * Maximum entry size in the message cache, in bytes
828 $wgMaxMsgCacheEntrySize = 10000;
831 * Set to false if you are thorough system admin who always remembers to keep
832 * serialized files up to date to save few mtime calls.
834 $wgCheckSerialized = true;
836 /** Whether to enable language variant conversion. */
837 $wgDisableLangConversion = false;
839 /** Default variant code, if false, the default will be the language code */
840 $wgDefaultLanguageVariant = false;
843 * Show a bar of language selection links in the user login and user
844 * registration forms; edit the "loginlanguagelinks" message to
845 * customise these
847 $wgLoginLanguageSelector = false;
850 * Whether to use zhdaemon to perform Chinese text processing
851 * zhdaemon is under developement, so normally you don't want to
852 * use it unless for testing
854 $wgUseZhdaemon = false;
855 $wgZhdaemonHost="localhost";
856 $wgZhdaemonPort=2004;
859 # Miscellaneous configuration settings
862 $wgLocalInterwiki = 'w';
863 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
865 /** Interwiki caching settings.
866 $wgInterwikiCache specifies path to constant database file
867 This cdb database is generated by dumpInterwiki from maintenance
868 and has such key formats:
869 dbname:key - a simple key (e.g. enwiki:meta)
870 _sitename:key - site-scope key (e.g. wiktionary:meta)
871 __global:key - global-scope key (e.g. __global:meta)
872 __sites:dbname - site mapping (e.g. __sites:enwiki)
873 Sites mapping just specifies site name, other keys provide
874 "local url" data layout.
875 $wgInterwikiScopes specify number of domains to check for messages:
876 1 - Just wiki(db)-level
877 2 - wiki and global levels
878 3 - site levels
879 $wgInterwikiFallbackSite - if unable to resolve from cache
881 $wgInterwikiCache = false;
882 $wgInterwikiScopes = 3;
883 $wgInterwikiFallbackSite = 'wiki';
886 * If local interwikis are set up which allow redirects,
887 * set this regexp to restrict URLs which will be displayed
888 * as 'redirected from' links.
890 * It might look something like this:
891 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
893 * Leave at false to avoid displaying any incoming redirect markers.
894 * This does not affect intra-wiki redirects, which don't change
895 * the URL.
897 $wgRedirectSources = false;
900 $wgShowIPinHeader = true; # For non-logged in users
901 $wgMaxNameChars = 255; # Maximum number of bytes in username
902 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
903 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
905 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
908 * Maximum recursion depth for templates within templates.
909 * The current parser adds two levels to the PHP call stack for each template,
910 * and xdebug limits the call stack to 100 by default. So this should hopefully
911 * stop the parser before it hits the xdebug limit.
913 $wgMaxTemplateDepth = 40;
914 $wgMaxPPExpandDepth = 40;
916 $wgExtraSubtitle = '';
917 $wgSiteSupportPage = ''; # A page where you users can receive donations
919 /***
920 * If this lock file exists, the wiki will be forced into read-only mode.
921 * Its contents will be shown to users as part of the read-only warning
922 * message.
924 $wgReadOnlyFile = false; ///< defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
927 * The debug log file should be not be publicly accessible if it is used, as it
928 * may contain private data. */
929 $wgDebugLogFile = '';
931 $wgDebugRedirects = false;
932 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
934 $wgDebugComments = false;
935 $wgReadOnly = null;
936 $wgLogQueries = false;
939 * Write SQL queries to the debug log
941 $wgDebugDumpSql = false;
944 * Set to an array of log group keys to filenames.
945 * If set, wfDebugLog() output for that group will go to that file instead
946 * of the regular $wgDebugLogFile. Useful for enabling selective logging
947 * in production.
949 $wgDebugLogGroups = array();
952 * Show the contents of $wgHooks in Special:Version
954 $wgSpecialVersionShowHooks = false;
957 * Whether to show "we're sorry, but there has been a database error" pages.
958 * Displaying errors aids in debugging, but may display information useful
959 * to an attacker.
961 $wgShowSQLErrors = false;
964 * If true, some error messages will be colorized when running scripts on the
965 * command line; this can aid picking important things out when debugging.
966 * Ignored when running on Windows or when output is redirected to a file.
968 $wgColorErrors = true;
971 * If set to true, uncaught exceptions will print a complete stack trace
972 * to output. This should only be used for debugging, as it may reveal
973 * private information in function parameters due to PHP's backtrace
974 * formatting.
976 $wgShowExceptionDetails = false;
979 * Expose backend server host names through the API and various HTML comments
981 $wgShowHostnames = false;
984 * Use experimental, DMOZ-like category browser
986 $wgUseCategoryBrowser = false;
989 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
990 * to speed up output of the same page viewed by another user with the
991 * same options.
993 * This can provide a significant speedup for medium to large pages,
994 * so you probably want to keep it on.
996 $wgEnableParserCache = true;
999 * If on, the sidebar navigation links are cached for users with the
1000 * current language set. This can save a touch of load on a busy site
1001 * by shaving off extra message lookups.
1003 * However it is also fragile: changing the site configuration, or
1004 * having a variable $wgArticlePath, can produce broken links that
1005 * don't update as expected.
1007 $wgEnableSidebarCache = false;
1010 * Expiry time for the sidebar cache, in seconds
1012 $wgSidebarCacheExpiry = 86400;
1015 * Under which condition should a page in the main namespace be counted
1016 * as a valid article? If $wgUseCommaCount is set to true, it will be
1017 * counted if it contains at least one comma. If it is set to false
1018 * (default), it will only be counted if it contains at least one [[wiki
1019 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
1021 * Retroactively changing this variable will not affect
1022 * the existing count (cf. maintenance/recount.sql).
1024 $wgUseCommaCount = false;
1027 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
1028 * values are easier on the database. A value of 1 causes the counters to be
1029 * updated on every hit, any higher value n cause them to update *on average*
1030 * every n hits. Should be set to either 1 or something largish, eg 1000, for
1031 * maximum efficiency.
1033 $wgHitcounterUpdateFreq = 1;
1035 # Basic user rights and block settings
1036 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1037 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1038 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1039 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
1040 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1042 # Pages anonymous user may see as an array, e.g.:
1043 # array ( "Main Page", "Wikipedia:Help");
1044 # Special:Userlogin and Special:Resetpass are always whitelisted.
1045 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1046 # is false -- see below. Otherwise, ALL pages are accessible,
1047 # regardless of this setting.
1048 # Also note that this will only protect _pages in the wiki_.
1049 # Uploaded files will remain readable. Make your upload
1050 # directory name unguessable, or use .htaccess to protect it.
1051 $wgWhitelistRead = false;
1054 * Should editors be required to have a validated e-mail
1055 * address before being allowed to edit?
1057 $wgEmailConfirmToEdit=false;
1060 * Permission keys given to users in each group.
1061 * All users are implicitly in the '*' group including anonymous visitors;
1062 * logged-in users are all implicitly in the 'user' group. These will be
1063 * combined with the permissions of all groups that a given user is listed
1064 * in in the user_groups table.
1066 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1067 * doing! This will wipe all permissions, and may mean that your users are
1068 * unable to perform certain essential tasks or access new functionality
1069 * when new permissions are introduced and default grants established.
1071 * Functionality to make pages inaccessible has not been extensively tested
1072 * for security. Use at your own risk!
1074 * This replaces wgWhitelistAccount and wgWhitelistEdit
1076 $wgGroupPermissions = array();
1078 // Implicit group for all visitors
1079 $wgGroupPermissions['*' ]['createaccount'] = true;
1080 $wgGroupPermissions['*' ]['read'] = true;
1081 $wgGroupPermissions['*' ]['edit'] = true;
1082 $wgGroupPermissions['*' ]['createpage'] = true;
1083 $wgGroupPermissions['*' ]['createtalk'] = true;
1084 $wgGroupPermissions['*' ]['writeapi'] = true;
1086 // Implicit group for all logged-in accounts
1087 $wgGroupPermissions['user' ]['move'] = true;
1088 $wgGroupPermissions['user' ]['read'] = true;
1089 $wgGroupPermissions['user' ]['edit'] = true;
1090 $wgGroupPermissions['user' ]['createpage'] = true;
1091 $wgGroupPermissions['user' ]['createtalk'] = true;
1092 $wgGroupPermissions['user' ]['writeapi'] = true;
1093 $wgGroupPermissions['user' ]['upload'] = true;
1094 $wgGroupPermissions['user' ]['reupload'] = true;
1095 $wgGroupPermissions['user' ]['reupload-shared'] = true;
1096 $wgGroupPermissions['user' ]['minoredit'] = true;
1097 $wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
1099 // Implicit group for accounts that pass $wgAutoConfirmAge
1100 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1102 // Users with bot privilege can have their edits hidden
1103 // from various log pages by default
1104 $wgGroupPermissions['bot' ]['bot'] = true;
1105 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
1106 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
1107 $wgGroupPermissions['bot' ]['autopatrol'] = true;
1108 $wgGroupPermissions['bot' ]['suppressredirect'] = true;
1109 $wgGroupPermissions['bot' ]['apihighlimits'] = true;
1110 $wgGroupPermissions['bot' ]['writeapi'] = true;
1111 #$wgGroupPermissions['bot' ]['editprotected'] = true; // can edit all protected pages without cascade protection enabled
1113 // Most extra permission abilities go to this group
1114 $wgGroupPermissions['sysop']['block'] = true;
1115 $wgGroupPermissions['sysop']['createaccount'] = true;
1116 $wgGroupPermissions['sysop']['delete'] = true;
1117 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
1118 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1119 $wgGroupPermissions['sysop']['undelete'] = true;
1120 $wgGroupPermissions['sysop']['editinterface'] = true;
1121 $wgGroupPermissions['sysop']['editusercssjs'] = true;
1122 $wgGroupPermissions['sysop']['import'] = true;
1123 $wgGroupPermissions['sysop']['importupload'] = true;
1124 $wgGroupPermissions['sysop']['move'] = true;
1125 $wgGroupPermissions['sysop']['patrol'] = true;
1126 $wgGroupPermissions['sysop']['autopatrol'] = true;
1127 $wgGroupPermissions['sysop']['protect'] = true;
1128 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1129 $wgGroupPermissions['sysop']['rollback'] = true;
1130 $wgGroupPermissions['sysop']['trackback'] = true;
1131 $wgGroupPermissions['sysop']['upload'] = true;
1132 $wgGroupPermissions['sysop']['reupload'] = true;
1133 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1134 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1135 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1136 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1137 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1138 $wgGroupPermissions['sysop']['blockemail'] = true;
1139 $wgGroupPermissions['sysop']['markbotedits'] = true;
1140 $wgGroupPermissions['sysop']['suppressredirect'] = true;
1141 $wgGroupPermissions['sysop']['apihighlimits'] = true;
1142 $wgGroupPermissions['sysop']['browsearchive'] = true;
1143 #$wgGroupPermissions['sysop']['mergehistory'] = true;
1145 // Permission to change users' group assignments
1146 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1147 // Permission to change users' groups assignments across wikis
1148 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
1150 #$wgGroupPermissions['sysop']['deleterevision'] = true;
1151 // To hide usernames from users and Sysops
1152 #$wgGroupPermissions['suppress']['hideuser'] = true;
1153 // To hide revisions/log items from users and Sysops
1154 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
1155 // For private suppression log access
1156 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
1159 * The developer group is deprecated, but can be activated if need be
1160 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1161 * that a lock file be defined and creatable/removable by the web
1162 * server.
1164 # $wgGroupPermissions['developer']['siteadmin'] = true;
1168 * Implicit groups, aren't shown on Special:Listusers or somewhere else
1170 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
1173 * These are the groups that users are allowed to add to or remove from
1174 * their own account via Special:Userrights.
1176 $wgGroupsAddToSelf = array();
1177 $wgGroupsRemoveFromSelf = array();
1180 * Set of available actions that can be restricted via action=protect
1181 * You probably shouldn't change this.
1182 * Translated trough restriction-* messages.
1184 $wgRestrictionTypes = array( 'edit', 'move' );
1187 * Rights which can be required for each protection level (via action=protect)
1189 * You can add a new protection level that requires a specific
1190 * permission by manipulating this array. The ordering of elements
1191 * dictates the order on the protection form's lists.
1193 * '' will be ignored (i.e. unprotected)
1194 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1196 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1199 * Set the minimum permissions required to edit pages in each
1200 * namespace. If you list more than one permission, a user must
1201 * have all of them to edit pages in that namespace.
1203 $wgNamespaceProtection = array();
1204 $wgNamespaceProtection[ NS_MEDIAWIKI ] = array( 'editinterface' );
1207 * Pages in namespaces in this array can not be used as templates.
1208 * Elements must be numeric namespace ids.
1209 * Among other things, this may be useful to enforce read-restrictions
1210 * which may otherwise be bypassed by using the template machanism.
1212 $wgNonincludableNamespaces = array();
1215 * Number of seconds an account is required to age before
1216 * it's given the implicit 'autoconfirm' group membership.
1217 * This can be used to limit privileges of new accounts.
1219 * Accounts created by earlier versions of the software
1220 * may not have a recorded creation date, and will always
1221 * be considered to pass the age test.
1223 * When left at 0, all registered accounts will pass.
1225 $wgAutoConfirmAge = 0;
1226 //$wgAutoConfirmAge = 600; // ten minutes
1227 //$wgAutoConfirmAge = 3600*24; // one day
1229 # Number of edits an account requires before it is autoconfirmed
1230 # Passing both this AND the time requirement is needed
1231 $wgAutoConfirmCount = 0;
1232 //$wgAutoConfirmCount = 50;
1235 * Automatically add a usergroup to any user who matches certain conditions.
1236 * The format is
1237 * array( '&' or '|' or '^', cond1, cond2, ... )
1238 * where cond1, cond2, ... are themselves conditions; *OR*
1239 * APCOND_EMAILCONFIRMED, *OR*
1240 * array( APCOND_EMAILCONFIRMED ), *OR*
1241 * array( APCOND_EDITCOUNT, number of edits ), *OR*
1242 * array( APCOND_AGE, seconds since registration ), *OR*
1243 * similar constructs defined by extensions.
1245 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
1246 * user who has provided an e-mail address.
1248 $wgAutopromote = array(
1249 'autoconfirmed' => array( '&',
1250 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
1251 array( APCOND_AGE, &$wgAutoConfirmAge ),
1256 * These settings can be used to give finer control over who can assign which
1257 * groups at Special:Userrights. Example configuration:
1259 * // Bureaucrat can add any group
1260 * $wgAddGroups['bureaucrat'] = true;
1261 * // Bureaucrats can only remove bots and sysops
1262 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1263 * // Sysops can make bots
1264 * $wgAddGroups['sysop'] = array( 'bot' );
1265 * // Sysops can disable other sysops in an emergency, and disable bots
1266 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1268 $wgAddGroups = $wgRemoveGroups = array();
1272 * A list of available rights, in addition to the ones defined by the core.
1273 * For extensions only.
1275 $wgAvailableRights = array();
1278 * Optional to restrict deletion of pages with higher revision counts
1279 * to users with the 'bigdelete' permission. (Default given to sysops.)
1281 $wgDeleteRevisionsLimit = 0;
1284 * Used to figure out if a user is "active" or not. User::isActiveEditor()
1285 * sees if a user has made at least $wgActiveUserEditCount number of edits
1286 * within the last $wgActiveUserDays days.
1288 $wgActiveUserEditCount = 30;
1289 $wgActiveUserDays = 30;
1291 # Proxy scanner settings
1295 * If you enable this, every editor's IP address will be scanned for open HTTP
1296 * proxies.
1298 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1299 * ISP and ask for your server to be shut down.
1301 * You have been warned.
1303 $wgBlockOpenProxies = false;
1304 /** Port we want to scan for a proxy */
1305 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1306 /** Script used to scan */
1307 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1308 /** */
1309 $wgProxyMemcExpiry = 86400;
1310 /** This should always be customised in LocalSettings.php */
1311 $wgSecretKey = false;
1312 /** big list of banned IP addresses, in the keys not the values */
1313 $wgProxyList = array();
1314 /** deprecated */
1315 $wgProxyKey = false;
1317 /** Number of accounts each IP address may create, 0 to disable.
1318 * Requires memcached */
1319 $wgAccountCreationThrottle = 0;
1321 # Client-side caching:
1323 /** Allow client-side caching of pages */
1324 $wgCachePages = true;
1327 * Set this to current time to invalidate all prior cached pages. Affects both
1328 * client- and server-side caching.
1329 * You can get the current date on your server by using the command:
1330 * date +%Y%m%d%H%M%S
1332 $wgCacheEpoch = '20030516000000';
1335 * Bump this number when changing the global style sheets and JavaScript.
1336 * It should be appended in the query string of static CSS and JS includes,
1337 * to ensure that client-side caches don't keep obsolete copies of global
1338 * styles.
1340 $wgStyleVersion = '152';
1343 # Server-side caching:
1346 * This will cache static pages for non-logged-in users to reduce
1347 * database traffic on public sites.
1348 * Must set $wgShowIPinHeader = false
1350 $wgUseFileCache = false;
1352 /** Directory where the cached page will be saved */
1353 $wgFileCacheDirectory = false; ///< defaults to "{$wgUploadDirectory}/cache";
1356 * When using the file cache, we can store the cached HTML gzipped to save disk
1357 * space. Pages will then also be served compressed to clients that support it.
1358 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1359 * the default LocalSettings.php! If you enable this, remove that setting first.
1361 * Requires zlib support enabled in PHP.
1363 $wgUseGzip = false;
1365 /** Whether MediaWiki should send an ETag header */
1366 $wgUseETag = false;
1368 # Email notification settings
1371 /** For email notification on page changes */
1372 $wgPasswordSender = $wgEmergencyContact;
1374 # true: from page editor if s/he opted-in
1375 # false: Enotif mails appear to come from $wgEmergencyContact
1376 $wgEnotifFromEditor = false;
1378 // TODO move UPO to preferences probably ?
1379 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1380 # If set to false, the corresponding input form on the user preference page is suppressed
1381 # It call this to be a "user-preferences-option (UPO)"
1382 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1383 $wgEnotifWatchlist = false; # UPO
1384 $wgEnotifUserTalk = false; # UPO
1385 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1386 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1387 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1389 # Send a generic mail instead of a personalised mail for each user. This
1390 # always uses UTC as the time zone, and doesn't include the username.
1392 # For pages with many users watching, this can significantly reduce mail load.
1393 # Has no effect when using sendmail rather than SMTP;
1395 $wgEnotifImpersonal = false;
1397 # Maximum number of users to mail at once when using impersonal mail. Should
1398 # match the limit on your mail server.
1399 $wgEnotifMaxRecips = 500;
1401 # Send mails via the job queue.
1402 $wgEnotifUseJobQ = false;
1405 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1407 $wgUsersNotifiedOnAllChanges = array();
1409 /** Show watching users in recent changes, watchlist and page history views */
1410 $wgRCShowWatchingUsers = false; # UPO
1411 /** Show watching users in Page views */
1412 $wgPageShowWatchingUsers = false;
1413 /** Show the amount of changed characters in recent changes */
1414 $wgRCShowChangedSize = true;
1417 * If the difference between the character counts of the text
1418 * before and after the edit is below that value, the value will be
1419 * highlighted on the RC page.
1421 $wgRCChangedSizeThreshold = -500;
1424 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1425 * view for watched pages with new changes */
1426 $wgShowUpdatedMarker = true;
1428 $wgCookieExpiration = 2592000;
1430 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1431 * problems when the user requests two pages within a short period of time. This
1432 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1433 * a grace period.
1435 $wgClockSkewFudge = 5;
1437 # Squid-related settings
1440 /** Enable/disable Squid */
1441 $wgUseSquid = false;
1443 /** If you run Squid3 with ESI support, enable this (default:false): */
1444 $wgUseESI = false;
1446 /** Internal server name as known to Squid, if different */
1447 # $wgInternalServer = 'http://yourinternal.tld:8000';
1448 $wgInternalServer = $wgServer;
1451 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1452 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1453 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1454 * days
1456 $wgSquidMaxage = 18000;
1459 * Default maximum age for raw CSS/JS accesses
1461 $wgForcedRawSMaxage = 300;
1464 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1466 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1467 * headers sent/modified from these proxies when obtaining the remote IP address
1469 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1471 $wgSquidServers = array();
1474 * As above, except these servers aren't purged on page changes; use to set a
1475 * list of trusted proxies, etc.
1477 $wgSquidServersNoPurge = array();
1479 /** Maximum number of titles to purge in any one client operation */
1480 $wgMaxSquidPurgeTitles = 400;
1482 /** HTCP multicast purging */
1483 $wgHTCPPort = 4827;
1484 $wgHTCPMulticastTTL = 1;
1485 # $wgHTCPMulticastAddress = "224.0.0.85";
1486 $wgHTCPMulticastAddress = false;
1488 # Cookie settings:
1491 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1492 * or ".any.subdomain.net"
1494 $wgCookieDomain = '';
1495 $wgCookiePath = '/';
1496 $wgCookieSecure = ($wgProto == 'https');
1497 $wgDisableCookieCheck = false;
1500 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
1501 * in browsers that support this feature. This can mitigates some classes of
1502 * XSS attack.
1504 * Only supported on PHP 5.2 or higher.
1506 $wgCookieHttpOnly = version_compare("5.2", PHP_VERSION, "<");
1509 * If the requesting browser matches a regex in this blacklist, we won't
1510 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
1512 $wgHttpOnlyBlacklist = array(
1513 // Internet Explorer for Mac; sometimes the cookies work, sometimes
1514 // they don't. It's difficult to predict, as combinations of path
1515 // and expiration options affect its parsing.
1516 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
1519 /** A list of cookies that vary the cache (for use by extensions) */
1520 $wgCacheVaryCookies = array();
1522 /** Override to customise the session name */
1523 $wgSessionName = false;
1525 /** Whether to allow inline image pointing to other websites */
1526 $wgAllowExternalImages = false;
1528 /** If the above is false, you can specify an exception here. Image URLs
1529 * that start with this string are then rendered, while all others are not.
1530 * You can use this to set up a trusted, simple repository of images.
1532 * Example:
1533 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1535 $wgAllowExternalImagesFrom = '';
1537 /** Allows to move images and other media files. Experemintal, not sure if it always works */
1538 $wgAllowImageMoving = false;
1540 /** Disable database-intensive features */
1541 $wgMiserMode = false;
1542 /** Disable all query pages if miser mode is on, not just some */
1543 $wgDisableQueryPages = false;
1544 /** Number of rows to cache in 'querycache' table when miser mode is on */
1545 $wgQueryCacheLimit = 1000;
1546 /** Number of links to a page required before it is deemed "wanted" */
1547 $wgWantedPagesThreshold = 1;
1548 /** Enable slow parser functions */
1549 $wgAllowSlowParserFunctions = false;
1552 * Maps jobs to their handling classes; extensions
1553 * can add to this to provide custom jobs
1555 $wgJobClasses = array(
1556 'refreshLinks' => 'RefreshLinksJob',
1557 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1558 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1559 'sendMail' => 'EmaillingJob',
1560 'enotifNotify' => 'EnotifNotifyJob',
1564 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1565 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1566 * (ImageMagick) installed and available in the PATH.
1567 * Please see math/README for more information.
1569 $wgUseTeX = false;
1570 /** Location of the texvc binary */
1571 $wgTexvc = './math/texvc';
1574 # Profiling / debugging
1576 # You have to create a 'profiling' table in your database before using
1577 # profiling see maintenance/archives/patch-profiling.sql .
1579 # To enable profiling, edit StartProfiler.php
1581 /** Only record profiling info for pages that took longer than this */
1582 $wgProfileLimit = 0.0;
1583 /** Don't put non-profiling info into log file */
1584 $wgProfileOnly = false;
1585 /** Log sums from profiling into "profiling" table in db. */
1586 $wgProfileToDatabase = false;
1587 /** If true, print a raw call tree instead of per-function report */
1588 $wgProfileCallTree = false;
1589 /** Should application server host be put into profiling table */
1590 $wgProfilePerHost = false;
1592 /** Settings for UDP profiler */
1593 $wgUDPProfilerHost = '127.0.0.1';
1594 $wgUDPProfilerPort = '3811';
1596 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1597 $wgDebugProfiling = false;
1598 /** Output debug message on every wfProfileIn/wfProfileOut */
1599 $wgDebugFunctionEntry = 0;
1600 /** Lots of debugging output from SquidUpdate.php */
1601 $wgDebugSquid = false;
1604 * Destination for wfIncrStats() data...
1605 * 'cache' to go into the system cache, if enabled (memcached)
1606 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
1607 * false to disable
1609 $wgStatsMethod = 'cache';
1611 /** Whereas to count the number of time an article is viewed.
1612 * Does not work if pages are cached (for example with squid).
1614 $wgDisableCounters = false;
1616 $wgDisableTextSearch = false;
1617 $wgDisableSearchContext = false;
1621 * Set to true to have nicer highligted text in search results,
1622 * by default off due to execution overhead
1624 $wgAdvancedSearchHighlighting = false;
1626 /**
1627 * Regexp to match word boundaries, defaults for non-CJK languages
1628 * should be empty for CJK since the words are not separate
1630 $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
1631 : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround
1634 * Template for OpenSearch suggestions, defaults to API action=opensearch
1636 * Sites with heavy load would tipically have these point to a custom
1637 * PHP wrapper to avoid firing up mediawiki for every keystroke
1639 * Placeholders: {searchTerms}
1642 $wgOpenSearchTemplate = false;
1645 * Enable suggestions while typing in search boxes
1646 * (results are passed around in OpenSearch format)
1648 $wgEnableMWSuggest = false;
1651 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
1653 * Placeholders: {searchTerms}, {namespaces}, {dbname}
1656 $wgMWSuggestTemplate = false;
1659 * If you've disabled search semi-permanently, this also disables updates to the
1660 * table. If you ever re-enable, be sure to rebuild the search table.
1662 $wgDisableSearchUpdate = false;
1663 /** Uploads have to be specially set up to be secure */
1664 $wgEnableUploads = false;
1666 * Show EXIF data, on by default if available.
1667 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1669 * NOTE FOR WINDOWS USERS:
1670 * To enable EXIF functions, add the folloing lines to the
1671 * "Windows extensions" section of php.ini:
1673 * extension=extensions/php_mbstring.dll
1674 * extension=extensions/php_exif.dll
1676 $wgShowEXIF = function_exists( 'exif_read_data' );
1679 * Set to true to enable the upload _link_ while local uploads are disabled.
1680 * Assumes that the special page link will be bounced to another server where
1681 * uploads do work.
1683 $wgRemoteUploads = false;
1684 $wgDisableAnonTalk = false;
1686 * Do DELETE/INSERT for link updates instead of incremental
1688 $wgUseDumbLinkUpdate = false;
1691 * Anti-lock flags - bitfield
1692 * ALF_PRELOAD_LINKS
1693 * Preload links during link update for save
1694 * ALF_PRELOAD_EXISTENCE
1695 * Preload cur_id during replaceLinkHolders
1696 * ALF_NO_LINK_LOCK
1697 * Don't use locking reads when updating the link table. This is
1698 * necessary for wikis with a high edit rate for performance
1699 * reasons, but may cause link table inconsistency
1700 * ALF_NO_BLOCK_LOCK
1701 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1702 * wikis.
1704 $wgAntiLockFlags = 0;
1707 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1708 * fall back to the old behaviour (no merging).
1710 $wgDiff3 = '/usr/bin/diff3';
1713 * We can also compress text stored in the 'text' table. If this is set on, new
1714 * revisions will be compressed on page save if zlib support is available. Any
1715 * compressed revisions will be decompressed on load regardless of this setting
1716 * *but will not be readable at all* if zlib support is not available.
1718 $wgCompressRevisions = false;
1721 * This is the list of preferred extensions for uploading files. Uploading files
1722 * with extensions not in this list will trigger a warning.
1724 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1726 /** Files with these extensions will never be allowed as uploads. */
1727 $wgFileBlacklist = array(
1728 # HTML may contain cookie-stealing JavaScript and web bugs
1729 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
1730 # PHP scripts may execute arbitrary code on the server
1731 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1732 # Other types that may be interpreted by some servers
1733 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1734 # May contain harmful executables for Windows victims
1735 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1737 /** Files with these mime types will never be allowed as uploads
1738 * if $wgVerifyMimeType is enabled.
1740 $wgMimeTypeBlacklist= array(
1741 # HTML may contain cookie-stealing JavaScript and web bugs
1742 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1743 # PHP scripts may execute arbitrary code on the server
1744 'application/x-php', 'text/x-php',
1745 # Other types that may be interpreted by some servers
1746 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1747 # Windows metafile, client-side vulnerability on some systems
1748 'application/x-msmetafile'
1751 /** This is a flag to determine whether or not to check file extensions on upload. */
1752 $wgCheckFileExtensions = true;
1755 * If this is turned off, users may override the warning for files not covered
1756 * by $wgFileExtensions.
1758 $wgStrictFileExtensions = true;
1760 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
1761 $wgUploadSizeWarning = false;
1763 /** For compatibility with old installations set to false */
1764 $wgPasswordSalt = true;
1766 /** Which namespaces should support subpages?
1767 * See Language.php for a list of namespaces.
1769 $wgNamespacesWithSubpages = array(
1770 NS_TALK => true,
1771 NS_USER => true,
1772 NS_USER_TALK => true,
1773 NS_PROJECT_TALK => true,
1774 NS_IMAGE_TALK => true,
1775 NS_MEDIAWIKI_TALK => true,
1776 NS_TEMPLATE_TALK => true,
1777 NS_HELP_TALK => true,
1778 NS_CATEGORY_TALK => true
1781 $wgNamespacesToBeSearchedDefault = array(
1782 NS_MAIN => true,
1786 * Site notice shown at the top of each page
1788 * This message can contain wiki text, and can also be set through the
1789 * MediaWiki:Sitenotice page. You can also provide a separate message for
1790 * logged-out users using the MediaWiki:Anonnotice page.
1792 $wgSiteNotice = '';
1795 # Images settings
1799 * Plugins for media file type handling.
1800 * Each entry in the array maps a MIME type to a class name
1802 $wgMediaHandlers = array(
1803 'image/jpeg' => 'BitmapHandler',
1804 'image/png' => 'BitmapHandler',
1805 'image/gif' => 'BitmapHandler',
1806 'image/x-ms-bmp' => 'BmpHandler',
1807 'image/x-bmp' => 'BmpHandler',
1808 'image/svg+xml' => 'SvgHandler', // official
1809 'image/svg' => 'SvgHandler', // compat
1810 'image/vnd.djvu' => 'DjVuHandler', // official
1811 'image/x.djvu' => 'DjVuHandler', // compat
1812 'image/x-djvu' => 'DjVuHandler', // compat
1817 * Resizing can be done using PHP's internal image libraries or using
1818 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1819 * These support more file formats than PHP, which only supports PNG,
1820 * GIF, JPG, XBM and WBMP.
1822 * Use Image Magick instead of PHP builtin functions.
1824 $wgUseImageMagick = false;
1825 /** The convert command shipped with ImageMagick */
1826 $wgImageMagickConvertCommand = '/usr/bin/convert';
1828 /** Sharpening parameter to ImageMagick */
1829 $wgSharpenParameter = '0x0.4';
1831 /** Reduction in linear dimensions below which sharpening will be enabled */
1832 $wgSharpenReductionThreshold = 0.85;
1835 * Use another resizing converter, e.g. GraphicMagick
1836 * %s will be replaced with the source path, %d with the destination
1837 * %w and %h will be replaced with the width and height
1839 * An example is provided for GraphicMagick
1840 * Leave as false to skip this
1842 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1843 $wgCustomConvertCommand = false;
1845 # Scalable Vector Graphics (SVG) may be uploaded as images.
1846 # Since SVG support is not yet standard in browsers, it is
1847 # necessary to rasterize SVGs to PNG as a fallback format.
1849 # An external program is required to perform this conversion:
1850 $wgSVGConverters = array(
1851 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1852 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1853 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1854 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1855 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1856 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1858 /** Pick one of the above */
1859 $wgSVGConverter = 'ImageMagick';
1860 /** If not in the executable PATH, specify */
1861 $wgSVGConverterPath = '';
1862 /** Don't scale a SVG larger than this */
1863 $wgSVGMaxSize = 2048;
1865 * Don't thumbnail an image if it will use too much working memory
1866 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1867 * 12.5 million pixels or 3500x3500
1869 $wgMaxImageArea = 1.25e7;
1871 * If rendered thumbnail files are older than this timestamp, they
1872 * will be rerendered on demand as if the file didn't already exist.
1873 * Update if there is some need to force thumbs and SVG rasterizations
1874 * to rerender, such as fixes to rendering bugs.
1876 $wgThumbnailEpoch = '20030516000000';
1879 * If set, inline scaled images will still produce <img> tags ready for
1880 * output instead of showing an error message.
1882 * This may be useful if errors are transitory, especially if the site
1883 * is configured to automatically render thumbnails on request.
1885 * On the other hand, it may obscure error conditions from debugging.
1886 * Enable the debug log or the 'thumbnail' log group to make sure errors
1887 * are logged to a file for review.
1889 $wgIgnoreImageErrors = false;
1892 * Allow thumbnail rendering on page view. If this is false, a valid
1893 * thumbnail URL is still output, but no file will be created at
1894 * the target location. This may save some time if you have a
1895 * thumb.php or 404 handler set up which is faster than the regular
1896 * webserver(s).
1898 $wgGenerateThumbnailOnParse = true;
1900 /** Obsolete, always true, kept for compatibility with extensions */
1901 $wgUseImageResize = true;
1904 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1905 if( !isset( $wgCommandLineMode ) ) {
1906 $wgCommandLineMode = false;
1909 /** For colorized maintenance script output, is your terminal background dark ? */
1910 $wgCommandLineDarkBg = false;
1913 # Recent changes settings
1916 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1917 $wgPutIPinRC = true;
1920 * Recentchanges items are periodically purged; entries older than this many
1921 * seconds will go.
1922 * For one week : 7 * 24 * 3600
1924 $wgRCMaxAge = 7 * 24 * 3600;
1927 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
1928 * Note that this is disabled by default because we sometimes do have RC data which is beyond the limit
1929 * for some reason, and some users may use the high numbers to display that data which is still there.
1931 $wgRCFilterByAge = false;
1934 * List of Days and Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
1936 $wgRCLinkLimits = array( 50, 100, 250, 500 );
1937 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
1939 # Send RC updates via UDP
1940 $wgRC2UDPAddress = false;
1941 $wgRC2UDPPort = false;
1942 $wgRC2UDPPrefix = '';
1944 # Enable user search in Special:Newpages
1945 # This is really a temporary hack around an index install bug on some Wikipedias.
1946 # Kill it once fixed.
1947 $wgEnableNewpagesUserFilter = true;
1950 # Copyright and credits settings
1953 /** RDF metadata toggles */
1954 $wgEnableDublinCoreRdf = false;
1955 $wgEnableCreativeCommonsRdf = false;
1957 /** Override for copyright metadata.
1958 * TODO: these options need documentation
1960 $wgRightsPage = NULL;
1961 $wgRightsUrl = NULL;
1962 $wgRightsText = NULL;
1963 $wgRightsIcon = NULL;
1965 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1966 $wgCopyrightIcon = NULL;
1968 /** Set this to true if you want detailed copyright information forms on Upload. */
1969 $wgUseCopyrightUpload = false;
1971 /** Set this to false if you want to disable checking that detailed copyright
1972 * information values are not empty. */
1973 $wgCheckCopyrightUpload = true;
1976 * Set this to the number of authors that you want to be credited below an
1977 * article text. Set it to zero to hide the attribution block, and a negative
1978 * number (like -1) to show all authors. Note that this will require 2-3 extra
1979 * database hits, which can have a not insignificant impact on performance for
1980 * large wikis.
1982 $wgMaxCredits = 0;
1984 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1985 * Otherwise, link to a separate credits page. */
1986 $wgShowCreditsIfMax = true;
1991 * Set this to false to avoid forcing the first letter of links to capitals.
1992 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1993 * appearing with a capital at the beginning of a sentence will *not* go to the
1994 * same place as links in the middle of a sentence using a lowercase initial.
1996 $wgCapitalLinks = true;
1999 * List of interwiki prefixes for wikis we'll accept as sources for
2000 * Special:Import (for sysops). Since complete page history can be imported,
2001 * these should be 'trusted'.
2003 * If a user has the 'import' permission but not the 'importupload' permission,
2004 * they will only be able to run imports through this transwiki interface.
2006 $wgImportSources = array();
2009 * Optional default target namespace for interwiki imports.
2010 * Can use this to create an incoming "transwiki"-style queue.
2011 * Set to numeric key, not the name.
2013 * Users may override this in the Special:Import dialog.
2015 $wgImportTargetNamespace = null;
2018 * If set to false, disables the full-history option on Special:Export.
2019 * This is currently poorly optimized for long edit histories, so is
2020 * disabled on Wikimedia's sites.
2022 $wgExportAllowHistory = true;
2025 * If set nonzero, Special:Export requests for history of pages with
2026 * more revisions than this will be rejected. On some big sites things
2027 * could get bogged down by very very long pages.
2029 $wgExportMaxHistory = 0;
2031 $wgExportAllowListContributors = false ;
2034 /** Text matching this regular expression will be recognised as spam
2035 * See http://en.wikipedia.org/wiki/Regular_expression */
2036 $wgSpamRegex = false;
2037 /** Similarly you can get a function to do the job. The function will be given
2038 * the following args:
2039 * - a Title object for the article the edit is made on
2040 * - the text submitted in the textarea (wpTextbox1)
2041 * - the section number.
2042 * The return should be boolean indicating whether the edit matched some evilness:
2043 * - true : block it
2044 * - false : let it through
2046 * For a complete example, have a look at the SpamBlacklist extension.
2048 $wgFilterCallback = false;
2050 /** Go button goes straight to the edit screen if the article doesn't exist. */
2051 $wgGoToEdit = false;
2053 /** Allow raw, unchecked HTML in <html>...</html> sections.
2054 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
2055 * TO RESTRICT EDITING to only those that you trust
2057 $wgRawHtml = false;
2060 * $wgUseTidy: use tidy to make sure HTML output is sane.
2061 * Tidy is a free tool that fixes broken HTML.
2062 * See http://www.w3.org/People/Raggett/tidy/
2063 * $wgTidyBin should be set to the path of the binary and
2064 * $wgTidyConf to the path of the configuration file.
2065 * $wgTidyOpts can include any number of parameters.
2067 * $wgTidyInternal controls the use of the PECL extension to use an in-
2068 * process tidy library instead of spawning a separate program.
2069 * Normally you shouldn't need to override the setting except for
2070 * debugging. To install, use 'pear install tidy' and add a line
2071 * 'extension=tidy.so' to php.ini.
2073 $wgUseTidy = false;
2074 $wgAlwaysUseTidy = false;
2075 $wgTidyBin = 'tidy';
2076 $wgTidyConf = $IP.'/includes/tidy.conf';
2077 $wgTidyOpts = '';
2078 $wgTidyInternal = extension_loaded( 'tidy' );
2081 * Put tidy warnings in HTML comments
2082 * Only works for internal tidy.
2084 $wgDebugTidy = false;
2087 * Validate the overall output using tidy and refuse
2088 * to display the page if it's not valid.
2090 $wgValidateAllHtml = false;
2092 /** See list of skins and their symbolic names in languages/Language.php */
2093 $wgDefaultSkin = 'monobook';
2096 * Settings added to this array will override the default globals for the user
2097 * preferences used by anonymous visitors and newly created accounts.
2098 * For instance, to disable section editing links:
2099 * $wgDefaultUserOptions ['editsection'] = 0;
2102 $wgDefaultUserOptions = array(
2103 'quickbar' => 1,
2104 'underline' => 2,
2105 'cols' => 80,
2106 'rows' => 25,
2107 'searchlimit' => 20,
2108 'contextlines' => 5,
2109 'contextchars' => 50,
2110 'disablesuggest' => 0,
2111 'ajaxsearch' => 0,
2112 'skin' => false,
2113 'math' => 1,
2114 'usenewrc' => 0,
2115 'rcdays' => 7,
2116 'rclimit' => 50,
2117 'wllimit' => 250,
2118 'hideminor' => 0,
2119 'highlightbroken' => 1,
2120 'stubthreshold' => 0,
2121 'previewontop' => 1,
2122 'previewonfirst' => 0,
2123 'editsection' => 1,
2124 'editsectiononrightclick' => 0,
2125 'editondblclick' => 0,
2126 'editwidth' => 0,
2127 'showtoc' => 1,
2128 'showtoolbar' => 1,
2129 'minordefault' => 0,
2130 'date' => 'default',
2131 'imagesize' => 2,
2132 'thumbsize' => 2,
2133 'rememberpassword' => 0,
2134 'enotifwatchlistpages' => 0,
2135 'enotifusertalkpages' => 1,
2136 'enotifminoredits' => 0,
2137 'enotifrevealaddr' => 0,
2138 'shownumberswatching' => 1,
2139 'fancysig' => 0,
2140 'externaleditor' => 0,
2141 'externaldiff' => 0,
2142 'showjumplinks' => 1,
2143 'numberheadings' => 0,
2144 'uselivepreview' => 0,
2145 'watchlistdays' => 3.0,
2146 'extendwatchlist' => 0,
2147 'watchlisthideminor' => 0,
2148 'watchlisthidebots' => 0,
2149 'watchlisthideown' => 0,
2150 'watchcreations' => 0,
2151 'watchdefault' => 0,
2152 'watchmoves' => 0,
2153 'watchdeletion' => 0,
2156 /** Whether or not to allow and use real name fields. Defaults to true. */
2157 $wgAllowRealName = true;
2159 /*****************************************************************************
2160 * Extensions
2164 * A list of callback functions which are called once MediaWiki is fully initialised
2166 $wgExtensionFunctions = array();
2169 * Extension functions for initialisation of skins. This is called somewhat earlier
2170 * than $wgExtensionFunctions.
2172 $wgSkinExtensionFunctions = array();
2175 * Extension messages files
2176 * Associative array mapping extension name to the filename where messages can be found.
2177 * The file must create a variable called $messages.
2178 * When the messages are needed, the extension should call wfLoadExtensionMessages().
2180 * Example:
2181 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
2184 $wgExtensionMessagesFiles = array();
2187 * Parser output hooks.
2188 * This is an associative array where the key is an extension-defined tag
2189 * (typically the extension name), and the value is a PHP callback.
2190 * These will be called as an OutputPageParserOutput hook, if the relevant
2191 * tag has been registered with the parser output object.
2193 * Registration is done with $pout->addOutputHook( $tag, $data ).
2195 * The callback has the form:
2196 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
2198 $wgParserOutputHooks = array();
2201 * List of valid skin names.
2202 * The key should be the name in all lower case, the value should be a display name.
2203 * The default skins will be added later, by Skin::getSkinNames(). Use
2204 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
2206 $wgValidSkinNames = array();
2209 * Special page list.
2210 * See the top of SpecialPage.php for documentation.
2212 $wgSpecialPages = array();
2215 * Array mapping class names to filenames, for autoloading.
2217 $wgAutoloadClasses = array();
2220 * An array of extension types and inside that their names, versions, authors,
2221 * urls, descriptions and pointers to localized description msgs. Note that
2222 * the version, url, description and descriptionmsg key can be omitted.
2224 * <code>
2225 * $wgExtensionCredits[$type][] = array(
2226 * 'name' => 'Example extension',
2227 * 'version' => 1.9,
2228 * 'svn-revision' => '$LastChangedRevision$',
2229 * 'author' => 'Foo Barstein',
2230 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2231 * 'description' => 'An example extension',
2232 * 'descriptionmsg' => 'exampleextension-desc',
2233 * );
2234 * </code>
2236 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
2238 $wgExtensionCredits = array();
2240 * end extensions
2241 ******************************************************************************/
2244 * Allow user Javascript page?
2245 * This enables a lot of neat customizations, but may
2246 * increase security risk to users and server load.
2248 $wgAllowUserJs = false;
2251 * Allow user Cascading Style Sheets (CSS)?
2252 * This enables a lot of neat customizations, but may
2253 * increase security risk to users and server load.
2255 $wgAllowUserCss = false;
2257 /** Use the site's Javascript page? */
2258 $wgUseSiteJs = true;
2260 /** Use the site's Cascading Style Sheets (CSS)? */
2261 $wgUseSiteCss = true;
2263 /** Filter for Special:Randompage. Part of a WHERE clause */
2264 $wgExtraRandompageSQL = false;
2266 /** Allow the "info" action, very inefficient at the moment */
2267 $wgAllowPageInfo = false;
2269 /** Maximum indent level of toc. */
2270 $wgMaxTocLevel = 999;
2272 /** Name of the external diff engine to use */
2273 $wgExternalDiffEngine = false;
2275 /** Use RC Patrolling to check for vandalism */
2276 $wgUseRCPatrol = true;
2278 /** Use new page patrolling to check new pages on Special:Newpages */
2279 $wgUseNPPatrol = true;
2281 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
2282 $wgFeed = true;
2284 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2285 * eg Recentchanges, Newpages. */
2286 $wgFeedLimit = 50;
2288 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2289 * A cached version will continue to be served out even if changes
2290 * are made, until this many seconds runs out since the last render.
2292 * If set to 0, feed caching is disabled. Use this for debugging only;
2293 * feed generation can be pretty slow with diffs.
2295 $wgFeedCacheTimeout = 60;
2297 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2298 * pages larger than this size. */
2299 $wgFeedDiffCutoff = 32768;
2303 * Additional namespaces. If the namespaces defined in Language.php and
2304 * Namespace.php are insufficient, you can create new ones here, for example,
2305 * to import Help files in other languages.
2306 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2307 * no longer be accessible. If you rename it, then you can access them through
2308 * the new namespace name.
2310 * Custom namespaces should start at 100 to avoid conflicting with standard
2311 * namespaces, and should always follow the even/odd main/talk pattern.
2313 #$wgExtraNamespaces =
2314 # array(100 => "Hilfe",
2315 # 101 => "Hilfe_Diskussion",
2316 # 102 => "Aide",
2317 # 103 => "Discussion_Aide"
2318 # );
2319 $wgExtraNamespaces = NULL;
2322 * Namespace aliases
2323 * These are alternate names for the primary localised namespace names, which
2324 * are defined by $wgExtraNamespaces and the language file. If a page is
2325 * requested with such a prefix, the request will be redirected to the primary
2326 * name.
2328 * Set this to a map from namespace names to IDs.
2329 * Example:
2330 * $wgNamespaceAliases = array(
2331 * 'Wikipedian' => NS_USER,
2332 * 'Help' => 100,
2333 * );
2335 $wgNamespaceAliases = array();
2338 * Limit images on image description pages to a user-selectable limit. In order
2339 * to reduce disk usage, limits can only be selected from a list.
2340 * The user preference is saved as an array offset in the database, by default
2341 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2342 * change it if you alter the array (see bug 8858).
2343 * This is the list of settings the user can choose from:
2345 $wgImageLimits = array (
2346 array(320,240),
2347 array(640,480),
2348 array(800,600),
2349 array(1024,768),
2350 array(1280,1024),
2351 array(10000,10000) );
2354 * Adjust thumbnails on image pages according to a user setting. In order to
2355 * reduce disk usage, the values can only be selected from a list. This is the
2356 * list of settings the user can choose from:
2358 $wgThumbLimits = array(
2359 120,
2360 150,
2361 180,
2362 200,
2363 250,
2368 * Adjust width of upright images when parameter 'upright' is used
2369 * This allows a nicer look for upright images without the need to fix the width
2370 * by hardcoded px in wiki sourcecode.
2372 $wgThumbUpright = 0.75;
2375 * On category pages, show thumbnail gallery for images belonging to that
2376 * category instead of listing them as articles.
2378 $wgCategoryMagicGallery = true;
2381 * Paging limit for categories
2383 $wgCategoryPagingLimit = 200;
2386 * Browser Blacklist for unicode non compliant browsers
2387 * Contains a list of regexps : "/regexp/" matching problematic browsers
2389 $wgBrowserBlackList = array(
2391 * Netscape 2-4 detection
2392 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2393 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2394 * with a negative assertion. The [UIN] identifier specifies the level of security
2395 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2396 * The language string is unreliable, it is missing on NS4 Mac.
2398 * Reference: http://www.psychedelix.com/agents/index.shtml
2400 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2401 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2402 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2405 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2407 * Known useragents:
2408 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2409 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2410 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2411 * - [...]
2413 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2414 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2416 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2419 * Google wireless transcoder, seems to eat a lot of chars alive
2420 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2422 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2426 * Fake out the timezone that the server thinks it's in. This will be used for
2427 * date display and not for what's stored in the DB. Leave to null to retain
2428 * your server's OS-based timezone value. This is the same as the timezone.
2430 * This variable is currently used ONLY for signature formatting, not for
2431 * anything else.
2433 # $wgLocaltimezone = 'GMT';
2434 # $wgLocaltimezone = 'PST8PDT';
2435 # $wgLocaltimezone = 'Europe/Sweden';
2436 # $wgLocaltimezone = 'CET';
2437 $wgLocaltimezone = null;
2440 * Set an offset from UTC in minutes to use for the default timezone setting
2441 * for anonymous users and new user accounts.
2443 * This setting is used for most date/time displays in the software, and is
2444 * overrideable in user preferences. It is *not* used for signature timestamps.
2446 * You can set it to match the configured server timezone like this:
2447 * $wgLocalTZoffset = date("Z") / 60;
2449 * If your server is not configured for the timezone you want, you can set
2450 * this in conjunction with the signature timezone and override the TZ
2451 * environment variable like so:
2452 * $wgLocaltimezone="Europe/Berlin";
2453 * putenv("TZ=$wgLocaltimezone");
2454 * $wgLocalTZoffset = date("Z") / 60;
2456 * Leave at NULL to show times in universal time (UTC/GMT).
2458 $wgLocalTZoffset = null;
2462 * When translating messages with wfMsg(), it is not always clear what should be
2463 * considered UI messages and what shoud be content messages.
2465 * For example, for regular wikipedia site like en, there should be only one
2466 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2467 * it as content of the site and call wfMsgForContent(), while for rendering the
2468 * text of the link, we call wfMsg(). The code in default behaves this way.
2469 * However, sites like common do offer different versions of 'mainpage' and the
2470 * like for different languages. This array provides a way to override the
2471 * default behavior. For example, to allow language specific mainpage and
2472 * community portal, set
2474 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2476 $wgForceUIMsgAsContentMsg = array();
2480 * Authentication plugin.
2482 $wgAuth = null;
2485 * Global list of hooks.
2486 * Add a hook by doing:
2487 * $wgHooks['event_name'][] = $function;
2488 * or:
2489 * $wgHooks['event_name'][] = array($function, $data);
2490 * or:
2491 * $wgHooks['event_name'][] = array($object, 'method');
2493 $wgHooks = array();
2496 * The logging system has two levels: an event type, which describes the
2497 * general category and can be viewed as a named subset of all logs; and
2498 * an action, which is a specific kind of event that can exist in that
2499 * log type.
2501 $wgLogTypes = array( '',
2502 'block',
2503 'protect',
2504 'rights',
2505 'delete',
2506 'upload',
2507 'move',
2508 'import',
2509 'patrol',
2510 'merge',
2511 'suppress',
2515 * This restricts log access to those who have a certain right
2516 * Users without this will not see it in the option menu and can not view it
2517 * Restricted logs are not added to recent changes
2518 * Logs should remain non-transcludable
2520 $wgLogRestrictions = array(
2521 'suppress' => 'suppressionlog'
2525 * Lists the message key string for each log type. The localized messages
2526 * will be listed in the user interface.
2528 * Extensions with custom log types may add to this array.
2530 $wgLogNames = array(
2531 '' => 'all-logs-page',
2532 'block' => 'blocklogpage',
2533 'protect' => 'protectlogpage',
2534 'rights' => 'rightslog',
2535 'delete' => 'dellogpage',
2536 'upload' => 'uploadlogpage',
2537 'move' => 'movelogpage',
2538 'import' => 'importlogpage',
2539 'patrol' => 'patrol-log-page',
2540 'merge' => 'mergelog',
2541 'suppress' => 'suppressionlog',
2545 * Lists the message key string for descriptive text to be shown at the
2546 * top of each log type.
2548 * Extensions with custom log types may add to this array.
2550 $wgLogHeaders = array(
2551 '' => 'alllogstext',
2552 'block' => 'blocklogtext',
2553 'protect' => 'protectlogtext',
2554 'rights' => 'rightslogtext',
2555 'delete' => 'dellogpagetext',
2556 'upload' => 'uploadlogpagetext',
2557 'move' => 'movelogpagetext',
2558 'import' => 'importlogpagetext',
2559 'patrol' => 'patrol-log-header',
2560 'merge' => 'mergelogpagetext',
2561 'suppress' => 'suppressionlogtext',
2565 * Lists the message key string for formatting individual events of each
2566 * type and action when listed in the logs.
2568 * Extensions with custom log types may add to this array.
2570 $wgLogActions = array(
2571 'block/block' => 'blocklogentry',
2572 'block/unblock' => 'unblocklogentry',
2573 'protect/protect' => 'protectedarticle',
2574 'protect/modify' => 'modifiedarticleprotection',
2575 'protect/unprotect' => 'unprotectedarticle',
2576 'rights/rights' => 'rightslogentry',
2577 'delete/delete' => 'deletedarticle',
2578 'delete/restore' => 'undeletedarticle',
2579 'delete/revision' => 'revdelete-logentry',
2580 'delete/event' => 'logdelete-logentry',
2581 'upload/upload' => 'uploadedimage',
2582 'upload/overwrite' => 'overwroteimage',
2583 'upload/revert' => 'uploadedimage',
2584 'move/move' => '1movedto2',
2585 'move/move_redir' => '1movedto2_redir',
2586 'import/upload' => 'import-logentry-upload',
2587 'import/interwiki' => 'import-logentry-interwiki',
2588 'merge/merge' => 'pagemerge-logentry',
2589 'suppress/revision' => 'revdelete-logentry',
2590 'suppress/file' => 'revdelete-logentry',
2591 'suppress/event' => 'logdelete-logentry',
2592 'suppress/delete' => 'suppressedarticle',
2593 'suppress/block' => 'blocklogentry',
2597 * The same as above, but here values are names of functions,
2598 * not messages
2600 $wgLogActionsHandlers = array();
2603 * List of special pages, followed by what subtitle they should go under
2604 * at Special:SpecialPages
2606 $wgSpecialPageGroups = array(
2607 'DoubleRedirects' => 'maintenance',
2608 'BrokenRedirects' => 'maintenance',
2609 'Lonelypages' => 'maintenance',
2610 'Uncategorizedpages' => 'maintenance',
2611 'Uncategorizedcategories' => 'maintenance',
2612 'Uncategorizedimages' => 'maintenance',
2613 'Uncategorizedtemplates' => 'maintenance',
2614 'Unusedcategories' => 'maintenance',
2615 'Unusedimages' => 'maintenance',
2616 'Protectedpages' => 'maintenance',
2617 'Protectedtitles' => 'maintenance',
2618 'Unusedtemplates' => 'maintenance',
2619 'Withoutinterwiki' => 'maintenance',
2620 'Longpages' => 'maintenance',
2621 'Shortpages' => 'maintenance',
2622 'Ancientpages' => 'maintenance',
2623 'Deadendpages' => 'maintenance',
2624 'Wantedpages' => 'maintenance',
2625 'Wantedcategories' => 'maintenance',
2626 'Unwatchedpages' => 'maintenance',
2627 'Fewestrevisions' => 'maintenance',
2629 'Userlogin' => 'login',
2630 'Userlogout' => 'login',
2631 'CreateAccount' => 'login',
2633 'Recentchanges' => 'changes',
2634 'Recentchangeslinked' => 'changes',
2635 'Watchlist' => 'changes',
2636 'Newimages' => 'changes',
2637 'Newpages' => 'changes',
2638 'Log' => 'changes',
2640 'Upload' => 'media',
2641 'Imagelist' => 'media',
2642 'MIMEsearch' => 'media',
2643 'FileDuplicateSearch' => 'media',
2644 'Filepath' => 'media',
2646 'Listusers' => 'users',
2647 'Listgrouprights' => 'users',
2648 'Ipblocklist' => 'users',
2649 'Contributions' => 'users',
2650 'Emailuser' => 'users',
2651 'Listadmins' => 'users',
2652 'Listbots' => 'users',
2653 'Userrights' => 'users',
2654 'Blockip' => 'users',
2655 'Preferences' => 'users',
2656 'Resetpass' => 'users',
2658 'Mostlinked' => 'highuse',
2659 'Mostlinkedcategories' => 'highuse',
2660 'Mostlinkedtemplates' => 'highuse',
2661 'Mostcategories' => 'highuse',
2662 'Mostimages' => 'highuse',
2663 'Mostrevisions' => 'highuse',
2665 'Allpages' => 'pages',
2666 'Prefixindex' => 'pages',
2667 'Listredirects' => 'pages',
2668 'Categories' => 'pages',
2669 'Disambiguations' => 'pages',
2671 'Randompage' => 'redirects',
2672 'Randomredirect' => 'redirects',
2673 'Mypage' => 'redirects',
2674 'Mytalk' => 'redirects',
2675 'Mycontributions' => 'redirects',
2676 'Search' => 'redirects',
2678 'Movepage' => 'pagetools',
2679 'MergeHistory' => 'pagetools',
2680 'Revisiondelete' => 'pagetools',
2681 'Undelete' => 'pagetools',
2682 'Export' => 'pagetools',
2683 'Import' => 'pagetools',
2684 'Whatlinkshere' => 'pagetools',
2686 'Statistics' => 'wiki',
2687 'Version' => 'wiki',
2688 'Lockdb' => 'wiki',
2689 'Unlockdb' => 'wiki',
2690 'Allmessages' => 'wiki',
2692 'Specialpages' => 'other',
2693 'Blockme' => 'other',
2694 'Booksources' => 'other',
2698 * Experimental preview feature to fetch rendered text
2699 * over an XMLHttpRequest from JavaScript instead of
2700 * forcing a submit and reload of the whole page.
2701 * Leave disabled unless you're testing it.
2703 $wgLivePreview = false;
2706 * Disable the internal MySQL-based search, to allow it to be
2707 * implemented by an extension instead.
2709 $wgDisableInternalSearch = false;
2712 * Set this to a URL to forward search requests to some external location.
2713 * If the URL includes '$1', this will be replaced with the URL-encoded
2714 * search term.
2716 * For example, to forward to Google you'd have something like:
2717 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2718 * '&domains=http://example.com' .
2719 * '&sitesearch=http://example.com' .
2720 * '&ie=utf-8&oe=utf-8';
2722 $wgSearchForwardUrl = null;
2725 * If true, external URL links in wiki text will be given the
2726 * rel="nofollow" attribute as a hint to search engines that
2727 * they should not be followed for ranking purposes as they
2728 * are user-supplied and thus subject to spamming.
2730 $wgNoFollowLinks = true;
2733 * Namespaces in which $wgNoFollowLinks doesn't apply.
2734 * See Language.php for a list of namespaces.
2736 $wgNoFollowNsExceptions = array();
2739 * Default robot policy.
2740 * The default policy is to encourage indexing and following of links.
2741 * It may be overridden on a per-namespace and/or per-page basis.
2743 $wgDefaultRobotPolicy = 'index,follow';
2746 * Robot policies per namespaces.
2747 * The default policy is given above, the array is made of namespace
2748 * constants as defined in includes/Defines.php
2749 * Example:
2750 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2752 $wgNamespaceRobotPolicies = array();
2755 * Robot policies per article.
2756 * These override the per-namespace robot policies.
2757 * Must be in the form of an array where the key part is a properly
2758 * canonicalised text form title and the value is a robot policy.
2759 * Example:
2760 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex' );
2762 $wgArticleRobotPolicies = array();
2765 * Specifies the minimal length of a user password. If set to
2766 * 0, empty passwords are allowed.
2768 $wgMinimalPasswordLength = 0;
2771 * Activate external editor interface for files and pages
2772 * See http://meta.wikimedia.org/wiki/Help:External_editors
2774 $wgUseExternalEditor = true;
2776 /** Whether or not to sort special pages in Special:Specialpages */
2778 $wgSortSpecialPages = true;
2781 * Specify the name of a skin that should not be presented in the
2782 * list of available skins.
2783 * Use for blacklisting a skin which you do not want to remove
2784 * from the .../skins/ directory
2786 $wgSkipSkin = '';
2787 $wgSkipSkins = array(); # More of the same
2790 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2792 $wgDisabledActions = array();
2795 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2797 $wgDisableHardRedirects = false;
2800 * Use http.dnsbl.sorbs.net to check for open proxies
2802 $wgEnableSorbs = false;
2803 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2806 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2807 * methods might say
2809 $wgProxyWhitelist = array();
2812 * Simple rate limiter options to brake edit floods.
2813 * Maximum number actions allowed in the given number of seconds;
2814 * after that the violating client receives HTTP 500 error pages
2815 * until the period elapses.
2817 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2819 * This option set is experimental and likely to change.
2820 * Requires memcached.
2822 $wgRateLimits = array(
2823 'edit' => array(
2824 'anon' => null, // for any and all anonymous edits (aggregate)
2825 'user' => null, // for each logged-in user
2826 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
2827 'ip' => null, // for each anon and recent account
2828 'subnet' => null, // ... with final octet removed
2830 'move' => array(
2831 'user' => null,
2832 'newbie' => null,
2833 'ip' => null,
2834 'subnet' => null,
2836 'mailpassword' => array(
2837 'anon' => NULL,
2839 'emailuser' => array(
2840 'user' => null,
2845 * Set to a filename to log rate limiter hits.
2847 $wgRateLimitLog = null;
2850 * Array of groups which should never trigger the rate limiter
2852 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2855 * On Special:Unusedimages, consider images "used", if they are put
2856 * into a category. Default (false) is not to count those as used.
2858 $wgCountCategorizedImagesAsUsed = false;
2861 * External stores allow including content
2862 * from non database sources following URL links
2864 * Short names of ExternalStore classes may be specified in an array here:
2865 * $wgExternalStores = array("http","file","custom")...
2867 * CAUTION: Access to database might lead to code execution
2869 $wgExternalStores = false;
2872 * An array of external mysql servers, e.g.
2873 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2874 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
2876 $wgExternalServers = array();
2879 * The place to put new revisions, false to put them in the local text table.
2880 * Part of a URL, e.g. DB://cluster1
2882 * Can be an array instead of a single string, to enable data distribution. Keys
2883 * must be consecutive integers, starting at zero. Example:
2885 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2888 $wgDefaultExternalStore = false;
2891 * Revision text may be cached in $wgMemc to reduce load on external storage
2892 * servers and object extraction overhead for frequently-loaded revisions.
2894 * Set to 0 to disable, or number of seconds before cache expiry.
2896 $wgRevisionCacheExpiry = 0;
2899 * list of trusted media-types and mime types.
2900 * Use the MEDIATYPE_xxx constants to represent media types.
2901 * This list is used by Image::isSafeFile
2903 * Types not listed here will have a warning about unsafe content
2904 * displayed on the images description page. It would also be possible
2905 * to use this for further restrictions, like disabling direct
2906 * [[media:...]] links for non-trusted formats.
2908 $wgTrustedMediaFormats= array(
2909 MEDIATYPE_BITMAP, //all bitmap formats
2910 MEDIATYPE_AUDIO, //all audio formats
2911 MEDIATYPE_VIDEO, //all plain video formats
2912 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
2913 "application/pdf", //PDF files
2914 #"application/x-shockwave-flash", //flash/shockwave movie
2918 * Allow special page inclusions such as {{Special:Allpages}}
2920 $wgAllowSpecialInclusion = true;
2923 * Timeout for HTTP requests done via CURL
2925 $wgHTTPTimeout = 3;
2928 * Proxy to use for CURL requests.
2930 $wgHTTPProxy = false;
2933 * Enable interwiki transcluding. Only when iw_trans=1.
2935 $wgEnableScaryTranscluding = false;
2937 * Expiry time for interwiki transclusion
2939 $wgTranscludeCacheExpiry = 3600;
2942 * Support blog-style "trackbacks" for articles. See
2943 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2945 $wgUseTrackbacks = false;
2948 * Enable filtering of categories in Recentchanges
2950 $wgAllowCategorizedRecentChanges = false ;
2953 * Number of jobs to perform per request. May be less than one in which case
2954 * jobs are performed probabalistically. If this is zero, jobs will not be done
2955 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2956 * be run periodically.
2958 $wgJobRunRate = 1;
2961 * Number of rows to update per job
2963 $wgUpdateRowsPerJob = 500;
2966 * Number of rows to update per query
2968 $wgUpdateRowsPerQuery = 10;
2971 * Enable AJAX framework
2973 $wgUseAjax = true;
2976 * Enable auto suggestion for the search bar
2977 * Requires $wgUseAjax to be true too.
2978 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2980 $wgAjaxSearch = false;
2983 * List of Ajax-callable functions.
2984 * Extensions acting as Ajax callbacks must register here
2986 $wgAjaxExportList = array( );
2989 * Enable watching/unwatching pages using AJAX.
2990 * Requires $wgUseAjax to be true too.
2991 * Causes wfAjaxWatch to be added to $wgAjaxExportList
2993 $wgAjaxWatch = true;
2996 * Enable AJAX check for file overwrite, pre-upload
2998 $wgAjaxUploadDestCheck = true;
3001 * Enable previewing licences via AJAX
3003 $wgAjaxLicensePreview = true;
3006 * Allow DISPLAYTITLE to change title display
3008 $wgAllowDisplayTitle = true;
3011 * Array of usernames which may not be registered or logged in from
3012 * Maintenance scripts can still use these
3014 $wgReservedUsernames = array(
3015 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3016 'Conversion script', // Used for the old Wikipedia software upgrade
3017 'Maintenance script', // Maintenance scripts which perform editing, image import script
3018 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3022 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
3023 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
3024 * crap files as images. When this directive is on, <title> will be allowed in files with
3025 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
3026 * and doesn't send appropriate MIME types for SVG images.
3028 $wgAllowTitlesInSVG = false;
3031 * Array of namespaces which can be deemed to contain valid "content", as far
3032 * as the site statistics are concerned. Useful if additional namespaces also
3033 * contain "content" which should be considered when generating a count of the
3034 * number of articles in the wiki.
3036 $wgContentNamespaces = array( NS_MAIN );
3039 * Maximum amount of virtual memory available to shell processes under linux, in KB.
3041 $wgMaxShellMemory = 102400;
3044 * Maximum file size created by shell processes under linux, in KB
3045 * ImageMagick convert for example can be fairly hungry for scratch space
3047 $wgMaxShellFileSize = 102400;
3050 * DJVU settings
3051 * Path of the djvudump executable
3052 * Enable this and $wgDjvuRenderer to enable djvu rendering
3054 # $wgDjvuDump = 'djvudump';
3055 $wgDjvuDump = null;
3058 * Path of the ddjvu DJVU renderer
3059 * Enable this and $wgDjvuDump to enable djvu rendering
3061 # $wgDjvuRenderer = 'ddjvu';
3062 $wgDjvuRenderer = null;
3065 * Path of the djvutoxml executable
3066 * This works like djvudump except much, much slower as of version 3.5.
3068 * For now I recommend you use djvudump instead. The djvuxml output is
3069 * probably more stable, so we'll switch back to it as soon as they fix
3070 * the efficiency problem.
3071 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
3073 # $wgDjvuToXML = 'djvutoxml';
3074 $wgDjvuToXML = null;
3078 * Shell command for the DJVU post processor
3079 * Default: pnmtopng, since ddjvu generates ppm output
3080 * Set this to false to output the ppm file directly.
3082 $wgDjvuPostProcessor = 'pnmtojpeg';
3084 * File extension for the DJVU post processor output
3086 $wgDjvuOutputExtension = 'jpg';
3089 * Enable the MediaWiki API for convenient access to
3090 * machine-readable data via api.php
3092 * See http://www.mediawiki.org/wiki/API
3094 $wgEnableAPI = true;
3097 * Allow the API to be used to perform write operations
3098 * (page edits, rollback, etc.) when an authorised user
3099 * accesses it
3101 $wgEnableWriteAPI = false;
3104 * API module extensions
3105 * Associative array mapping module name to class name.
3106 * Extension modules may override the core modules.
3108 $wgAPIModules = array();
3111 * Maximum amount of rows to scan in a DB query in the API
3112 * The default value is generally fine
3114 $wgAPIMaxDBRows = 5000;
3117 * Parser test suite files to be run by parserTests.php when no specific
3118 * filename is passed to it.
3120 * Extensions may add their own tests to this array, or site-local tests
3121 * may be added via LocalSettings.php
3123 * Use full paths.
3125 $wgParserTestFiles = array(
3126 "$IP/maintenance/parserTests.txt",
3130 * Break out of framesets. This can be used to prevent external sites from
3131 * framing your site with ads.
3133 $wgBreakFrames = false;
3136 * Set this to an array of special page names to prevent
3137 * maintenance/updateSpecialPages.php from updating those pages.
3139 $wgDisableQueryPageUpdate = false;
3142 * Set this to false to disable cascading protection
3144 $wgEnableCascadingProtection = true;
3147 * Disable output compression (enabled by default if zlib is available)
3149 $wgDisableOutputCompression = false;
3152 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
3153 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
3154 * show a more obvious warning.
3156 $wgSlaveLagWarning = 10;
3157 $wgSlaveLagCritical = 30;
3160 * Parser configuration. Associative array with the following members:
3162 * class The class name
3163 * preprocessorClass The preprocessor class, by default it is Preprocessor_Hash.
3164 * Preprocessor_DOM is also available and better tested, but
3165 * it has a dependency of the dom module of PHP.
3166 * It has no effect with Parser_OldPP parser class.
3169 * The entire associative array will be passed through to the constructor as
3170 * the first parameter. Note that only Setup.php can use this variable --
3171 * the configuration will change at runtime via $wgParser member functions, so
3172 * the contents of this variable will be out-of-date. The variable can only be
3173 * changed during LocalSettings.php, in particular, it can't be changed during
3174 * an extension setup function.
3176 $wgParserConf = array(
3177 'class' => 'Parser',
3178 'preprocessorClass' => 'Preprocessor_Hash',
3182 * Hooks that are used for outputting exceptions. Format is:
3183 * $wgExceptionHooks[] = $funcname
3184 * or:
3185 * $wgExceptionHooks[] = array( $class, $funcname )
3186 * Hooks should return strings or false
3188 $wgExceptionHooks = array();
3191 * Page property link table invalidation lists. Should only be set by exten-
3192 * sions.
3194 $wgPagePropLinkInvalidations = array(
3195 'hiddencat' => 'categorylinks',
3199 * Maximum number of links to a redirect page listed on
3200 * Special:Whatlinkshere/RedirectDestination
3202 $wgMaxRedirectLinksRetrieved = 500;
3205 * Maximum number of calls per parse to expensive parser functions such as
3206 * PAGESINCATEGORY.
3208 $wgExpensiveParserFunctionLimit = 100;
3211 * Maximum number of pages to move at once when moving subpages with a page.
3213 $wgMaximumMovedPages = 100;
3216 * Array of namespaces to generate a sitemap for when the
3217 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
3218 * nerated for all namespaces.
3220 $wgSitemapNamespaces = false;
3224 * If user doesn't specify any edit summary when making a an edit, MediaWiki
3225 * will try to automatically create one. This feature can be disabled by set-
3226 * ting this variable false.
3228 $wgUseAutomaticEditSummaries = true;