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