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