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