* Restriction types now use restriction-* messages instead of ui messages
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 /**
3 *
4 * DO NOT EVER 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 * @package MediaWiki
19 */
20
21 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
22 if( !defined( 'MEDIAWIKI' ) ) {
23 echo "This file is part of MediaWiki and is not a valid entry point\n";
24 die( -1 );
25 }
26
27 /**
28 * Create a site configuration object
29 * Not used for much in a default install
30 */
31 require_once( 'includes/SiteConfiguration.php' );
32 $wgConf = new SiteConfiguration;
33
34 /** MediaWiki version number */
35 $wgVersion = '1.6alpha';
36
37 /** Name of the site. It must be changed in LocalSettings.php */
38 $wgSitename = 'MediaWiki';
39
40 /** Will be same as you set @see $wgSitename */
41 $wgMetaNamespace = FALSE;
42
43
44 /** URL of the server. It will be automatically built including https mode */
45 $wgServer = '';
46
47 if( isset( $_SERVER['SERVER_NAME'] ) ) {
48 $wgServerName = $_SERVER['SERVER_NAME'];
49 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
50 $wgServerName = $_SERVER['HOSTNAME'];
51 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
52 $wgServerName = $_SERVER['HTTP_HOST'];
53 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
54 $wgServerName = $_SERVER['SERVER_ADDR'];
55 } else {
56 $wgServerName = 'localhost';
57 }
58
59 # check if server use https:
60 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
61
62 $wgServer = $wgProto.'://' . $wgServerName;
63 # If the port is a non-standard one, add it to the URL
64 if( isset( $_SERVER['SERVER_PORT'] )
65 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
66 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
67
68 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
69 }
70
71
72 /**
73 * The path we should point to.
74 * It might be a virtual path in case with use apache mod_rewrite for example
75 */
76 $wgScriptPath = '/wiki';
77
78 /**
79 * Whether to support URLs like index.php/Page_title
80 * @global bool $wgUsePathInfo
81 */
82 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
83
84
85 /**#@+
86 * Script users will request to get articles
87 * ATTN: Old installations used wiki.phtml and redirect.phtml -
88 * make sure that LocalSettings.php is correctly set!
89 * @deprecated
90 */
91 /**
92 * @global string $wgScript
93 */
94 $wgScript = "{$wgScriptPath}/index.php";
95 /**
96 * @global string $wgRedirectScript
97 */
98 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
99 /**#@-*/
100
101
102 /**#@+
103 * @global string
104 */
105 /**
106 * style path as seen by users
107 * @global string $wgStylePath
108 */
109 $wgStylePath = "{$wgScriptPath}/skins";
110 /**
111 * filesystem stylesheets directory
112 * @global string $wgStyleDirectory
113 */
114 $wgStyleDirectory = "{$IP}/skins";
115 $wgStyleSheetPath = &$wgStylePath;
116 $wgArticlePath = "{$wgScript}?title=$1";
117 $wgUploadPath = "{$wgScriptPath}/upload";
118 $wgUploadDirectory = "{$IP}/upload";
119 $wgHashedUploadDirectory = true;
120 $wgLogo = "{$wgUploadPath}/wiki.png";
121 $wgFavicon = '/favicon.ico';
122 $wgMathPath = "{$wgUploadPath}/math";
123 $wgMathDirectory = "{$wgUploadDirectory}/math";
124 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
125 $wgUploadBaseUrl = "";
126 /**#@-*/
127
128 /**
129 * Allowed title characters -- regex character class
130 * Don't change this unless you know what you're doing
131 *
132 * Problematic punctuation:
133 * []{}|# Are needed for link syntax, never enable these
134 * % Enabled by default, minor problems with path to query rewrite rules, see below
135 * + Doesn't work with path to query rewrite rules, corrupted by apache
136 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
137 *
138 * All three of these punctuation problems can be avoided by using an alias, instead of a
139 * rewrite rule of either variety.
140 *
141 * The problem with % is that when using a path to query rewrite rule, URLs are
142 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
143 * %253F, for example, becomes "?". Our code does not double-escape to compensate
144 * for this, indeed double escaping would break if the double-escaped title was
145 * passed in the query string rather than the path. This is a minor security issue
146 * because articles can be created such that they are hard to view or edit.
147 *
148 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
149 * this breaks interlanguage links
150 */
151 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF";
152
153
154 /**
155 * The external URL protocols
156 */
157 $wgUrlProtocols = array(
158 'http://',
159 'https://',
160 'ftp://',
161 'irc://',
162 'gopher://',
163 'telnet://', // Well if we're going to support the above.. -ævar
164 'nntp://', // @bug 3808 RFC 1738
165 'worldwind://',
166 'mailto:',
167 'news:'
168 );
169
170 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
171 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
172 * @global string $wgAntivirus
173 */
174 $wgAntivirus= NULL;
175
176 /** Configuration for different virus scanners. This an associative array of associative arrays:
177 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
178 * valid values for $wgAntivirus are the keys defined in this array.
179 *
180 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
181 *
182 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
183 * file to scan. If not present, the filename will be appended to the command. Note that this must be
184 * overwritten if the scanner is not in the system path; in that case, plase set
185 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
186 *
187 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
188 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
189 * the file if $wgAntivirusRequired is not set.
190 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
191 * which is probably imune to virusses. This causes the file to pass.
192 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
193 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
194 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
195 *
196 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
197 * output. The relevant part should be matched as group one (\1).
198 * If not defined or the pattern does not match, the full message is shown to the user.
199 *
200 * @global array $wgAntivirusSetup
201 */
202 $wgAntivirusSetup= array(
203
204 #setup for clamav
205 'clamav' => array (
206 'command' => "clamscan --no-summary ",
207
208 'codemap'=> array (
209 "0"=> AV_NO_VIRUS, #no virus
210 "1"=> AV_VIRUS_FOUND, #virus found
211 "52"=> AV_SCAN_ABORTED, #unsupported file format (probably imune)
212 "*"=> AV_SCAN_FAILED, #else scan failed
213 ),
214
215 'messagepattern'=> '/.*?:(.*)/sim',
216 ),
217
218 #setup for f-prot
219 'f-prot' => array (
220 'command' => "f-prot ",
221
222 'codemap'=> array (
223 "0"=> AV_NO_VIRUS, #no virus
224 "3"=> AV_VIRUS_FOUND, #virus found
225 "6"=> AV_VIRUS_FOUND, #virus found
226 "*"=> AV_SCAN_FAILED, #else scan failed
227 ),
228
229 'messagepattern'=> '/.*?Infection:(.*)$/m',
230 ),
231 );
232
233
234 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
235 * @global boolean $wgAntivirusRequired
236 */
237 $wgAntivirusRequired= true;
238
239 /** Determines if the mime type of uploaded files should be checked
240 * @global boolean $wgVerifyMimeType
241 */
242 $wgVerifyMimeType= true;
243
244 /** Sets the mime type definition file to use by MimeMagic.php.
245 * @global string $wgMimeTypeFile
246 */
247 #$wgMimeTypeFile= "/etc/mime.types";
248 $wgMimeTypeFile= "includes/mime.types";
249 #$wgMimeTypeFile= NULL; #use built-in defaults only.
250
251 /** Sets the mime type info file to use by MimeMagic.php.
252 * @global string $wgMimeInfoFile
253 */
254 $wgMimeInfoFile= "includes/mime.info";
255 #$wgMimeInfoFile= NULL; #use built-in defaults only.
256
257 /** Switch for loading the FileInfo extension by PECL at runtime.
258 * This should be used only if fileinfo is installed as a shared object / dynamic libary
259 * @global string $wgLoadFileinfoExtension
260 */
261 $wgLoadFileinfoExtension= false;
262
263 /** Sets an external mime detector program. The command must print only the mime type to standard output.
264 * the name of the file to process will be appended to the command given here.
265 * If not set or NULL, mime_content_type will be used if available.
266 */
267 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
268 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
269
270 /** Switch for trivial mime detection. Used by thumb.php to disable all fance things,
271 * because only a few types of images are needed and file extensions can be trusted.
272 */
273 $wgTrivialMimeDetection= false;
274
275 /**
276 * To set 'pretty' URL paths for actions other than
277 * plain page views, add to this array. For instance:
278 * 'edit' => "$wgScriptPath/edit/$1"
279 *
280 * There must be an appropriate script or rewrite rule
281 * in place to handle these URLs.
282 */
283 $wgActionPaths = array();
284
285 /**
286 * If you operate multiple wikis, you can define a shared upload path here.
287 * Uploads to this wiki will NOT be put there - they will be put into
288 * $wgUploadDirectory.
289 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
290 * no file of the given name is found in the local repository (for [[Image:..]],
291 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
292 * directory.
293 */
294 $wgUseSharedUploads = false;
295 /** Full path on the web server where shared uploads can be found */
296 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
297 /** Fetch commons image description pages and display them on the local wiki? */
298 $wgFetchCommonsDescriptions = false;
299 /** Path on the file system where shared uploads can be found. */
300 $wgSharedUploadDirectory = "/var/www/wiki3/images";
301 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
302 $wgSharedUploadDBname = false;
303 /** Optional table prefix used in database. */
304 $wgSharedUploadDBprefix = '';
305 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
306 $wgCacheSharedUploads = true;
307
308 /**
309 * Point the upload navigation link to an external URL
310 * Useful if you want to use a shared repository by default
311 * without disabling local uploads (use $wgEnableUploads = false for that)
312 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
313 */
314 $wgUploadNavigationUrl = false;
315
316 /**
317 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
318 * generating them on render and outputting a static URL. This is necessary if some of your
319 * apache servers don't have read/write access to the thumbnail path.
320 *
321 * Example:
322 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
323 */
324 $wgThumbnailScriptPath = false;
325 $wgSharedThumbnailScriptPath = false;
326
327 /**
328 * Set the following to false especially if you have a set of files that need to
329 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
330 * directory layout.
331 */
332 $wgHashedSharedUploadDirectory = true;
333
334 /**
335 * Base URL for a repository wiki. Leave this blank if uploads are just stored
336 * in a shared directory and not meant to be accessible through a separate wiki.
337 * Otherwise the image description pages on the local wiki will link to the
338 * image description page on this wiki.
339 *
340 * Please specify the namespace, as in the example below.
341 */
342 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
343
344
345 #
346 # Email settings
347 #
348
349 /**
350 * Site admin email address
351 * Default to wikiadmin@SERVER_NAME
352 * @global string $wgEmergencyContact
353 */
354 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
355
356 /**
357 * Password reminder email address
358 * The address we should use as sender when a user is requesting his password
359 * Default to apache@SERVER_NAME
360 * @global string $wgPasswordSender
361 */
362 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
363
364 /**
365 * dummy address which should be accepted during mail send action
366 * It might be necessay to adapt the address or to set it equal
367 * to the $wgEmergencyContact address
368 */
369 #$wgNoReplyAddress = $wgEmergencyContact;
370 $wgNoReplyAddress = 'reply@not.possible';
371
372 /**
373 * Set to true to enable the e-mail basic features:
374 * Password reminders, etc. If sending e-mail on your
375 * server doesn't work, you might want to disable this.
376 * @global bool $wgEnableEmail
377 */
378 $wgEnableEmail = true;
379
380 /**
381 * Set to true to enable user-to-user e-mail.
382 * This can potentially be abused, as it's hard to track.
383 * @global bool $wgEnableUserEmail
384 */
385 $wgEnableUserEmail = true;
386
387 /**
388 * SMTP Mode
389 * For using a direct (authenticated) SMTP server connection.
390 * Default to false or fill an array :
391 * <code>
392 * "host" => 'SMTP domain',
393 * "IDHost" => 'domain for MessageID',
394 * "port" => "25",
395 * "auth" => true/false,
396 * "username" => user,
397 * "password" => password
398 * </code>
399 *
400 * @global mixed $wgSMTP
401 */
402 $wgSMTP = false;
403
404
405 /**#@+
406 * Database settings
407 */
408 /** database host name or ip address */
409 $wgDBserver = 'localhost';
410 /** name of the database */
411 $wgDBname = 'wikidb';
412 /** */
413 $wgDBconnection = '';
414 /** Database username */
415 $wgDBuser = 'wikiuser';
416 /** Database type
417 * "mysql" for working code and "PostgreSQL" for development/broken code
418 */
419 $wgDBtype = "mysql";
420 /** Search type
421 * Leave as null to select the default search engine for the
422 * selected database type (eg SearchMySQL4), or set to a class
423 * name to override to a custom search engine.
424 */
425 $wgSearchType = null;
426 /** Table name prefix */
427 $wgDBprefix = '';
428 /** Database schema
429 * on some databases this allows separate
430 * logical namespace for application data
431 */
432 $wgDBschema = 'mediawiki';
433 /**#@-*/
434
435
436
437 /**
438 * Shared database for multiple wikis. Presently used for storing a user table
439 * for single sign-on. The server for this database must be the same as for the
440 * main database.
441 * EXPERIMENTAL
442 */
443 $wgSharedDB = null;
444
445 # Database load balancer
446 # This is a two-dimensional array, an array of server info structures
447 # Fields are:
448 # host: Host name
449 # dbname: Default database name
450 # user: DB user
451 # password: DB password
452 # type: "mysql" or "pgsql"
453 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
454 # groupLoads: array of load ratios, the key is the query group name. A query may belong
455 # to several groups, the most specific group defined here is used.
456 #
457 # flags: bit field
458 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
459 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
460 # DBO_TRX -- wrap entire request in a transaction
461 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
462 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
463 #
464 # max lag: (optional) Maximum replication lag before a slave will taken out of rotation
465 # max threads: (optional) Maximum number of running threads
466 #
467 # These and any other user-defined properties will be assigned to the mLBInfo member
468 # variable of the Database object.
469 #
470 # Leave at false to use the single-server variables above
471 $wgDBservers = false;
472
473 /** How long to wait for a slave to catch up to the master */
474 $wgMasterWaitTimeout = 10;
475
476 /** File to log MySQL errors to */
477 $wgDBerrorLog = false;
478
479 /** When to give an error message */
480 $wgDBClusterTimeout = 10;
481
482 /**
483 * wgDBminWordLen :
484 * MySQL 3.x : used to discard words that MySQL will not return any results for
485 * shorter values configure mysql directly.
486 * MySQL 4.x : ignore it and configure mySQL
487 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
488 */
489 $wgDBminWordLen = 4;
490 /** Set to true if using InnoDB tables */
491 $wgDBtransactions = false;
492 /** Set to true for compatibility with extensions that might be checking.
493 * MySQL 3.23.x is no longer supported. */
494 $wgDBmysql4 = true;
495
496 /**
497 * Set to true to engage MySQL 4.1/5.0 charset-related features;
498 * for now will just cause sending of 'SET NAMES=utf8' on connect.
499 *
500 * WARNING: THIS IS EXPERIMENTAL!
501 *
502 * May break if you're not using the table defs from mysql5/tables.sql.
503 * May break if you're upgrading an existing wiki if set differently.
504 * Broken symptoms likely to include incorrect behavior with page titles,
505 * usernames, comments etc containing non-ASCII characters.
506 * Might also cause failures on the object cache and other things.
507 *
508 * Even correct usage may cause failures with Unicode supplementary
509 * characters (those not in the Basic Multilingual Plane) unless MySQL
510 * has enhanced their Unicode support.
511 */
512 $wgDBmysql5 = false;
513
514 /**
515 * Other wikis on this site, can be administered from a single developer
516 * account.
517 * Array numeric key => database name
518 */
519 $wgLocalDatabases = array();
520
521 /**
522 * Object cache settings
523 * See Defines.php for types
524 */
525 $wgMainCacheType = CACHE_NONE;
526 $wgMessageCacheType = CACHE_ANYTHING;
527 $wgParserCacheType = CACHE_ANYTHING;
528
529 $wgParserCacheExpireTime = 86400;
530
531 $wgSessionsInMemcached = false;
532 $wgLinkCacheMemcached = false; # Not fully tested
533
534 /**
535 * Memcached-specific settings
536 * See docs/memcached.txt
537 */
538 $wgUseMemCached = false;
539 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
540 $wgMemCachedServers = array( '127.0.0.1:11000' );
541 $wgMemCachedDebug = false;
542
543 /**
544 * Directory for local copy of message cache, for use in addition to memcached
545 */
546 $wgLocalMessageCache = false;
547
548 /**
549 * Directory for compiled constant message array databases
550 * WARNING: turning anything on will just break things, aaaaaah!!!!
551 */
552 $wgCachedMessageArrays = false;
553
554 # Language settings
555 #
556 /** Site language code, should be one of ./languages/Language(.*).php */
557 $wgLanguageCode = 'en';
558
559 /** Treat language links as magic connectors, not inline links */
560 $wgInterwikiMagic = true;
561
562 /** Hide interlanguage links from the sidebar */
563 $wgHideInterlanguageLinks = false;
564
565
566 /** We speak UTF-8 all the time now, unless some oddities happen */
567 $wgInputEncoding = 'UTF-8';
568 $wgOutputEncoding = 'UTF-8';
569 $wgEditEncoding = '';
570
571 # Set this to eg 'ISO-8859-1' to perform character set
572 # conversion when loading old revisions not marked with
573 # "utf-8" flag. Use this when converting wiki to UTF-8
574 # without the burdensome mass conversion of old text data.
575 #
576 # NOTE! This DOES NOT touch any fields other than old_text.
577 # Titles, comments, user names, etc still must be converted
578 # en masse in the database before continuing as a UTF-8 wiki.
579 $wgLegacyEncoding = false;
580
581 /**
582 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
583 * create stub reference rows in the text table instead of copying
584 * the full text of all current entries from 'cur' to 'text'.
585 *
586 * This will speed up the conversion step for large sites, but
587 * requires that the cur table be kept around for those revisions
588 * to remain viewable.
589 *
590 * maintenance/migrateCurStubs.php can be used to complete the
591 * migration in the background once the wiki is back online.
592 *
593 * This option affects the updaters *only*. Any present cur stub
594 * revisions will be readable at runtime regardless of this setting.
595 */
596 $wgLegacySchemaConversion = false;
597
598 $wgMimeType = 'text/html';
599 $wgJsMimeType = 'text/javascript';
600 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
601 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
602
603 /** Enable to allow rewriting dates in page text.
604 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
605 $wgUseDynamicDates = false;
606 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
607 * the interface is set to English
608 */
609 $wgAmericanDates = false;
610 /**
611 * For Hindi and Arabic use local numerals instead of Western style (0-9)
612 * numerals in interface.
613 */
614 $wgTranslateNumerals = true;
615
616
617 # Translation using MediaWiki: namespace
618 # This will increase load times by 25-60% unless memcached is installed
619 # Interface messages will be loaded from the database.
620 $wgUseDatabaseMessages = true;
621 $wgMsgCacheExpiry = 86400;
622
623 # Whether to enable language variant conversion.
624 $wgDisableLangConversion = false;
625
626 # Whether to use zhdaemon to perform Chinese text processing
627 # zhdaemon is under developement, so normally you don't want to
628 # use it unless for testing
629 $wgUseZhdaemon = false;
630 $wgZhdaemonHost="localhost";
631 $wgZhdaemonPort=2004;
632
633 /** Normally you can ignore this and it will be something
634 like $wgMetaNamespace . "_talk". In some languages, you
635 may want to set this manually for grammatical reasons.
636 It is currently only respected by those languages
637 where it might be relevant and where no automatic
638 grammar converter exists.
639 */
640 $wgMetaNamespaceTalk = false;
641
642 # Miscellaneous configuration settings
643 #
644
645 $wgLocalInterwiki = 'w';
646 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
647
648 /** Interwiki caching settings.
649 $wgInterwikiCache specifies path to constant database file
650 This cdb database is generated by dumpInterwiki from maintenance
651 and has such key formats:
652 dbname:key - a simple key (e.g. enwiki:meta)
653 _sitename:key - site-scope key (e.g. wiktionary:meta)
654 __global:key - global-scope key (e.g. __global:meta)
655 __sites:dbname - site mapping (e.g. __sites:enwiki)
656 Sites mapping just specifies site name, other keys provide
657 "local url" data layout.
658 $wgInterwikiScopes specify number of domains to check for messages:
659 1 - Just wiki(db)-level
660 2 - wiki and global levels
661 3 - site levels
662 $wgInterwikiFallbackSite - if unable to resolve from cache
663 */
664 $wgInterwikiCache = false;
665 $wgInterwikiScopes = 3;
666 $wgInterwikiFallbackSite = 'wiki';
667
668 /**
669 * If local interwikis are set up which allow redirects,
670 * set this regexp to restrict URLs which will be displayed
671 * as 'redirected from' links.
672 *
673 * It might look something like this:
674 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
675 *
676 * Leave at false to avoid displaying any incoming redirect markers.
677 * This does not affect intra-wiki redirects, which don't change
678 * the URL.
679 */
680 $wgRedirectSources = false;
681
682
683 $wgShowIPinHeader = true; # For non-logged in users
684 $wgMaxNameChars = 255; # Maximum number of bytes in username
685
686 $wgExtraSubtitle = '';
687 $wgSiteSupportPage = ''; # A page where you users can receive donations
688
689 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
690
691 /**
692 * The debug log file should be not be publicly accessible if it is used, as it
693 * may contain private data. */
694 $wgDebugLogFile = '';
695
696 /**#@+
697 * @global bool
698 */
699 $wgDebugRedirects = false;
700 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
701
702 $wgDebugComments = false;
703 $wgReadOnly = null;
704 $wgLogQueries = false;
705
706 /**
707 * Write SQL queries to the debug log
708 */
709 $wgDebugDumpSql = false;
710
711 /**
712 * Set to an array of log group keys to filenames.
713 * If set, wfDebugLog() output for that group will go to that file instead
714 * of the regular $wgDebugLogFile. Useful for enabling selective logging
715 * in production.
716 */
717 $wgDebugLogGroups = array();
718
719 /**
720 * Whether to show "we're sorry, but there has been a database error" pages.
721 * Displaying errors aids in debugging, but may display information useful
722 * to an attacker.
723 */
724 $wgShowSQLErrors = false;
725
726 /**
727 * disable experimental dmoz-like category browsing. Output things like:
728 * Encyclopedia > Music > Style of Music > Jazz
729 */
730 $wgUseCategoryBrowser = false;
731
732 /**
733 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
734 * to speed up output of the same page viewed by another user with the
735 * same options.
736 *
737 * This can provide a significant speedup for medium to large pages,
738 * so you probably want to keep it on.
739 */
740 $wgEnableParserCache = true;
741
742 /**
743 * Under which condition should a page in the main namespace be counted
744 * as a valid article? If $wgUseCommaCount is set to true, it will be
745 * counted if it contains at least one comma. If it is set to false
746 * (default), it will only be counted if it contains at least one [[wiki
747 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
748 *
749 * Retroactively changing this variable will not affect
750 * the existing count (cf. maintenance/recount.sql).
751 */
752 $wgUseCommaCount = false;
753
754 /**#@-*/
755
756 /**
757 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
758 * values are easier on the database. A value of 1 causes the counters to be
759 * updated on every hit, any higher value n cause them to update *on average*
760 * every n hits. Should be set to either 1 or something largish, eg 1000, for
761 * maximum efficiency.
762 */
763 $wgHitcounterUpdateFreq = 1;
764
765 # Basic user rights and block settings
766 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
767 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
768 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
769 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
770
771 # Pages anonymous user may see as an array, e.g.:
772 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
773 # NOTE: This will only work if $wgGroupPermissions['*']['read']
774 # is false -- see below. Otherwise, ALL pages are accessible,
775 # regardless of this setting.
776 # Also note that this will only protect _pages in the wiki_.
777 # Uploaded files will remain readable. Make your upload
778 # directory name unguessable, or use .htaccess to protect it.
779 $wgWhitelistRead = false;
780
781 /**
782 * Should editors be required to have a validated e-mail
783 * address before being allowed to edit?
784 */
785 $wgEmailConfirmToEdit=false;
786
787 /**
788 * Permission keys given to users in each group.
789 * All users are implicitly in the '*' group including anonymous visitors;
790 * logged-in users are all implicitly in the 'user' group. These will be
791 * combined with the permissions of all groups that a given user is listed
792 * in in the user_groups table.
793 *
794 * Functionality to make pages inaccessible has not been extensively tested
795 * for security. Use at your own risk!
796 *
797 * This replaces wgWhitelistAccount and wgWhitelistEdit
798 */
799 $wgGroupPermissions = array();
800
801 // Implicit group for all visitors
802 $wgGroupPermissions['*' ]['createaccount'] = true;
803 $wgGroupPermissions['*' ]['read'] = true;
804 $wgGroupPermissions['*' ]['edit'] = true;
805 $wgGroupPermissions['*' ]['createpage'] = true;
806 $wgGroupPermissions['*' ]['createtalk'] = true;
807
808 // Implicit group for all logged-in accounts
809 $wgGroupPermissions['user' ]['move'] = true;
810 $wgGroupPermissions['user' ]['read'] = true;
811 $wgGroupPermissions['user' ]['edit'] = true;
812 $wgGroupPermissions['user' ]['createpage'] = true;
813 $wgGroupPermissions['user' ]['createtalk'] = true;
814 $wgGroupPermissions['user' ]['upload'] = true;
815 $wgGroupPermissions['user' ]['reupload'] = true;
816 $wgGroupPermissions['user' ]['reupload-shared'] = true;
817 $wgGroupPermissions['user' ]['minoredit'] = true;
818
819 // Implicit group for accounts that pass $wgAutoConfirmAge
820 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
821
822 // Users with bot privilege can have their edits hidden
823 // from various log pages by default
824 $wgGroupPermissions['bot' ]['bot'] = true;
825 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
826
827 // Most extra permission abilities go to this group
828 $wgGroupPermissions['sysop']['block'] = true;
829 $wgGroupPermissions['sysop']['createaccount'] = true;
830 $wgGroupPermissions['sysop']['delete'] = true;
831 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
832 $wgGroupPermissions['sysop']['editinterface'] = true;
833 $wgGroupPermissions['sysop']['import'] = true;
834 $wgGroupPermissions['sysop']['importupload'] = true;
835 $wgGroupPermissions['sysop']['move'] = true;
836 $wgGroupPermissions['sysop']['patrol'] = true;
837 $wgGroupPermissions['sysop']['protect'] = true;
838 $wgGroupPermissions['sysop']['rollback'] = true;
839 $wgGroupPermissions['sysop']['upload'] = true;
840 $wgGroupPermissions['sysop']['reupload'] = true;
841 $wgGroupPermissions['sysop']['reupload-shared'] = true;
842 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
843 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
844
845 // Permission to change users' group assignments
846 $wgGroupPermissions['bureaucrat']['userrights'] = true;
847
848 /**
849 * The developer group is deprecated, but can be activated if need be
850 * to use the 'lockdb' and 'unlockdb' special pages. Those require
851 * that a lock file be defined and creatable/removable by the web
852 * server.
853 */
854 # $wgGroupPermissions['developer']['siteadmin'] = true;
855
856 /**
857 * Set of available actions that can be restricted via Special:Protect
858 * You probably shouldn't change this.
859 * Translated trough restriction-* messages.
860 */
861 $wgRestrictionTypes = array( 'edit', 'move' );
862
863 /**
864 * Set of permission keys that can be selected via Special:Protect.
865 * 'autoconfirm' allows all registerd users if $wgAutoConfirmAge is 0.
866 */
867 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
868
869
870 /**
871 * Number of seconds an account is required to age before
872 * it's given the implicit 'autoconfirm' group membership.
873 * This can be used to limit privileges of new accounts.
874 *
875 * Accounts created by earlier versions of the software
876 * may not have a recorded creation date, and will always
877 * be considered to pass the age test.
878 *
879 * When left at 0, all registered accounts will pass.
880 */
881 $wgAutoConfirmAge = 0;
882 //$wgAutoConfirmAge = 600; // ten minutes
883 //$wgAutoConfirmAge = 3600*24; // one day
884
885
886
887 # Proxy scanner settings
888 #
889
890 /**
891 * If you enable this, every editor's IP address will be scanned for open HTTP
892 * proxies.
893 *
894 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
895 * ISP and ask for your server to be shut down.
896 *
897 * You have been warned.
898 */
899 $wgBlockOpenProxies = false;
900 /** Port we want to scan for a proxy */
901 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
902 /** Script used to scan */
903 $wgProxyScriptPath = "$IP/proxy_check.php";
904 /** */
905 $wgProxyMemcExpiry = 86400;
906 /** This should always be customised in LocalSettings.php */
907 $wgSecretKey = false;
908 /** big list of banned IP addresses, in the keys not the values */
909 $wgProxyList = array();
910 /** deprecated */
911 $wgProxyKey = false;
912
913 /** Number of accounts each IP address may create, 0 to disable.
914 * Requires memcached */
915 $wgAccountCreationThrottle = 0;
916
917 # Client-side caching:
918
919 /** Allow client-side caching of pages */
920 $wgCachePages = true;
921
922 /**
923 * Set this to current time to invalidate all prior cached pages. Affects both
924 * client- and server-side caching.
925 * You can get the current date on your server by using the command:
926 * date +%Y%m%d%H%M%S
927 */
928 $wgCacheEpoch = '20030516000000';
929
930
931 # Server-side caching:
932
933 /**
934 * This will cache static pages for non-logged-in users to reduce
935 * database traffic on public sites.
936 * Must set $wgShowIPinHeader = false
937 */
938 $wgUseFileCache = false;
939 /** Directory where the cached page will be saved */
940 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
941
942 /**
943 * When using the file cache, we can store the cached HTML gzipped to save disk
944 * space. Pages will then also be served compressed to clients that support it.
945 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
946 * the default LocalSettings.php! If you enable this, remove that setting first.
947 *
948 * Requires zlib support enabled in PHP.
949 */
950 $wgUseGzip = false;
951
952 # Email notification settings
953 #
954
955 /** For email notification on page changes */
956 $wgPasswordSender = $wgEmergencyContact;
957
958 # true: from page editor if s/he opted-in
959 # false: Enotif mails appear to come from $wgEmergencyContact
960 $wgEnotifFromEditor = false;
961
962 // TODO move UPO to preferences probably ?
963 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
964 # If set to false, the corresponding input form on the user preference page is suppressed
965 # It call this to be a "user-preferences-option (UPO)"
966 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
967 $wgEnotifWatchlist = false; # UPO
968 $wgEnotifUserTalk = false; # UPO
969 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
970 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
971 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
972
973
974 /** Show watching users in recent changes, watchlist and page history views */
975 $wgRCShowWatchingUsers = false; # UPO
976 /** Show watching users in Page views */
977 $wgPageShowWatchingUsers = false;
978 /**
979 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
980 * view for watched pages with new changes */
981 $wgShowUpdatedMarker = true;
982
983 $wgCookieExpiration = 2592000;
984
985 /** Clock skew or the one-second resolution of time() can occasionally cause cache
986 * problems when the user requests two pages within a short period of time. This
987 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
988 * a grace period.
989 */
990 $wgClockSkewFudge = 5;
991
992 # Squid-related settings
993 #
994
995 /** Enable/disable Squid */
996 $wgUseSquid = false;
997
998 /** If you run Squid3 with ESI support, enable this (default:false): */
999 $wgUseESI = false;
1000
1001 /** Internal server name as known to Squid, if different */
1002 # $wgInternalServer = 'http://yourinternal.tld:8000';
1003 $wgInternalServer = $wgServer;
1004
1005 /**
1006 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1007 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1008 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1009 * days
1010 */
1011 $wgSquidMaxage = 18000;
1012
1013 /**
1014 * A list of proxy servers (ips if possible) to purge on changes don't specify
1015 * ports here (80 is default)
1016 */
1017 # $wgSquidServers = array('127.0.0.1');
1018 $wgSquidServers = array();
1019 $wgSquidServersNoPurge = array();
1020
1021 /** Maximum number of titles to purge in any one client operation */
1022 $wgMaxSquidPurgeTitles = 400;
1023
1024 /** HTCP multicast purging */
1025 $wgHTCPPort = 4827;
1026 $wgHTCPMulticastTTL = 1;
1027 # $wgHTCPMulticastAddress = "224.0.0.85";
1028
1029 # Cookie settings:
1030 #
1031 /**
1032 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1033 * or ".any.subdomain.net"
1034 */
1035 $wgCookieDomain = '';
1036 $wgCookiePath = '/';
1037 $wgCookieSecure = ($wgProto == 'https');
1038 $wgDisableCookieCheck = false;
1039
1040 /** Whether to allow inline image pointing to other websites */
1041 $wgAllowExternalImages = true;
1042
1043 /** If the above is false, you can specify an exception here. Image URLs
1044 * that start with this string are then rendered, while all others are not.
1045 * You can use this to set up a trusted, simple repository of images.
1046 *
1047 * Example:
1048 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1049 */
1050 $wgAllowExternalImagesFrom = '';
1051
1052 /** Disable database-intensive features */
1053 $wgMiserMode = false;
1054 /** Disable all query pages if miser mode is on, not just some */
1055 $wgDisableQueryPages = false;
1056 /** Generate a watchlist once every hour or so */
1057 $wgUseWatchlistCache = false;
1058 /** The hour or so mentioned above */
1059 $wgWLCacheTimeout = 3600;
1060 /** Number of links to a page required before it is deemed "wanted" */
1061 $wgWantedPagesThreshold = 1;
1062
1063 /**
1064 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1065 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1066 * (ImageMagick) installed and available in the PATH.
1067 * Please see math/README for more information.
1068 */
1069 $wgUseTeX = false;
1070 /** Location of the texvc binary */
1071 $wgTexvc = './math/texvc';
1072
1073 #
1074 # Profiling / debugging
1075 #
1076
1077 /** Enable for more detailed by-function times in debug log */
1078 $wgProfiling = false;
1079 /** Only record profiling info for pages that took longer than this */
1080 $wgProfileLimit = 0.0;
1081 /** Don't put non-profiling info into log file */
1082 $wgProfileOnly = false;
1083 /** Log sums from profiling into "profiling" table in db. */
1084 $wgProfileToDatabase = false;
1085 /** Only profile every n requests when profiling is turned on */
1086 $wgProfileSampleRate = 1;
1087 /** If true, print a raw call tree instead of per-function report */
1088 $wgProfileCallTree = false;
1089 /** If not empty, specifies profiler type to load */
1090 $wgProfilerType = '';
1091
1092 /** Settings for UDP profiler */
1093 $wgUDPProfilerHost = '127.0.0.1';
1094 $wgUDPProfilerPort = '3811';
1095
1096 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1097 $wgDebugProfiling = false;
1098 /** Output debug message on every wfProfileIn/wfProfileOut */
1099 $wgDebugFunctionEntry = 0;
1100 /** Lots of debugging output from SquidUpdate.php */
1101 $wgDebugSquid = false;
1102
1103 $wgDisableCounters = false;
1104 $wgDisableTextSearch = false;
1105 $wgDisableSearchContext = false;
1106 /**
1107 * If you've disabled search semi-permanently, this also disables updates to the
1108 * table. If you ever re-enable, be sure to rebuild the search table.
1109 */
1110 $wgDisableSearchUpdate = false;
1111 /** Uploads have to be specially set up to be secure */
1112 $wgEnableUploads = false;
1113 /**
1114 * Show EXIF data, on by default if available.
1115 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1116 */
1117 $wgShowEXIF = function_exists( 'exif_read_data' );
1118
1119 /**
1120 * Set to true to enable the upload _link_ while local uploads are disabled.
1121 * Assumes that the special page link will be bounced to another server where
1122 * uploads do work.
1123 */
1124 $wgRemoteUploads = false;
1125 $wgDisableAnonTalk = false;
1126 /**
1127 * Do DELETE/INSERT for link updates instead of incremental
1128 */
1129 $wgUseDumbLinkUpdate = false;
1130
1131 /**
1132 * Anti-lock flags - bitfield
1133 * ALF_PRELOAD_LINKS
1134 * Preload links during link update for save
1135 * ALF_PRELOAD_EXISTENCE
1136 * Preload cur_id during replaceLinkHolders
1137 * ALF_NO_LINK_LOCK
1138 * Don't use locking reads when updating the link table. This is
1139 * necessary for wikis with a high edit rate for performance
1140 * reasons, but may cause link table inconsistency
1141 * ALF_NO_BLOCK_LOCK
1142 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1143 * wikis.
1144 */
1145 $wgAntiLockFlags = 0;
1146
1147 /**
1148 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1149 * fall back to the old behaviour (no merging).
1150 */
1151 $wgDiff3 = '/usr/bin/diff3';
1152
1153 /**
1154 * We can also compress text in the old revisions table. If this is set on, old
1155 * revisions will be compressed on page save if zlib support is available. Any
1156 * compressed revisions will be decompressed on load regardless of this setting
1157 * *but will not be readable at all* if zlib support is not available.
1158 */
1159 $wgCompressRevisions = false;
1160
1161 /**
1162 * This is the list of preferred extensions for uploading files. Uploading files
1163 * with extensions not in this list will trigger a warning.
1164 */
1165 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1166
1167 /** Files with these extensions will never be allowed as uploads. */
1168 $wgFileBlacklist = array(
1169 # HTML may contain cookie-stealing JavaScript and web bugs
1170 'html', 'htm', 'js', 'jsb',
1171 # PHP scripts may execute arbitrary code on the server
1172 'php', 'phtml', 'php3', 'php4', 'phps',
1173 # Other types that may be interpreted by some servers
1174 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1175 # May contain harmful executables for Windows victims
1176 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1177
1178 /** Files with these mime types will never be allowed as uploads
1179 * if $wgVerifyMimeType is enabled.
1180 */
1181 $wgMimeTypeBlacklist= array(
1182 # HTML may contain cookie-stealing JavaScript and web bugs
1183 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1184 # PHP scripts may execute arbitrary code on the server
1185 'application/x-php', 'text/x-php',
1186 # Other types that may be interpreted by some servers
1187 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1188 # Windows metafile, client-side vulnerability on some systems
1189 'application/x-msmetafile'
1190 );
1191
1192 /** This is a flag to determine whether or not to check file extensions on upload. */
1193 $wgCheckFileExtensions = true;
1194
1195 /**
1196 * If this is turned off, users may override the warning for files not covered
1197 * by $wgFileExtensions.
1198 */
1199 $wgStrictFileExtensions = true;
1200
1201 /** Warn if uploaded files are larger than this */
1202 $wgUploadSizeWarning = 150 * 1024;
1203
1204 /** For compatibility with old installations set to false */
1205 $wgPasswordSalt = true;
1206
1207 /** Which namespaces should support subpages?
1208 * See Language.php for a list of namespaces.
1209 */
1210 $wgNamespacesWithSubpages = array(
1211 NS_TALK => true,
1212 NS_USER => true,
1213 NS_USER_TALK => true,
1214 NS_PROJECT_TALK => true,
1215 NS_IMAGE_TALK => true,
1216 NS_MEDIAWIKI_TALK => true,
1217 NS_TEMPLATE_TALK => true,
1218 NS_HELP_TALK => true,
1219 NS_CATEGORY_TALK => true
1220 );
1221
1222 $wgNamespacesToBeSearchedDefault = array(
1223 NS_MAIN => true,
1224 );
1225
1226 /** If set, a bold ugly notice will show up at the top of every page. */
1227 $wgSiteNotice = '';
1228
1229
1230 #
1231 # Images settings
1232 #
1233
1234 /** dynamic server side image resizing ("Thumbnails") */
1235 $wgUseImageResize = false;
1236
1237 /**
1238 * Resizing can be done using PHP's internal image libraries or using
1239 * ImageMagick. The later supports more file formats than PHP, which only
1240 * supports PNG, GIF, JPG, XBM and WBMP.
1241 *
1242 * Use Image Magick instead of PHP builtin functions.
1243 */
1244 $wgUseImageMagick = false;
1245 /** The convert command shipped with ImageMagick */
1246 $wgImageMagickConvertCommand = '/usr/bin/convert';
1247
1248 # Scalable Vector Graphics (SVG) may be uploaded as images.
1249 # Since SVG support is not yet standard in browsers, it is
1250 # necessary to rasterize SVGs to PNG as a fallback format.
1251 #
1252 # An external program is required to perform this conversion:
1253 $wgSVGConverters = array(
1254 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1255 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1256 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1257 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1258 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1259 );
1260 /** Pick one of the above */
1261 $wgSVGConverter = 'ImageMagick';
1262 /** If not in the executable PATH, specify */
1263 $wgSVGConverterPath = '';
1264 /** Don't scale a SVG larger than this */
1265 $wgSVGMaxSize = 1024;
1266 /**
1267 * Don't thumbnail an image if it will use too much working memory
1268 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1269 * 12.5 million pixels or 3500x3500
1270 */
1271 $wgMaxImageArea = 1.25e7;
1272 /**
1273 * If rendered thumbnail files are older than this timestamp, they
1274 * will be rerendered on demand as if the file didn't already exist.
1275 * Update if there is some need to force thumbs and SVG rasterizations
1276 * to rerender, such as fixes to rendering bugs.
1277 */
1278 $wgThumbnailEpoch = '20030516000000';
1279
1280
1281
1282 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1283 if( !isset( $wgCommandLineMode ) ) {
1284 $wgCommandLineMode = false;
1285 }
1286
1287
1288 #
1289 # Recent changes settings
1290 #
1291
1292 /** Log IP addresses in the recentchanges table */
1293 $wgPutIPinRC = true;
1294
1295 /**
1296 * Recentchanges items are periodically purged; entries older than this many
1297 * seconds will go.
1298 * For one week : 7 * 24 * 3600
1299 */
1300 $wgRCMaxAge = 7 * 24 * 3600;
1301
1302
1303 # Send RC updates via UDP
1304 $wgRC2UDPAddress = false;
1305 $wgRC2UDPPort = false;
1306 $wgRC2UDPPrefix = '';
1307
1308 #
1309 # Copyright and credits settings
1310 #
1311
1312 /** RDF metadata toggles */
1313 $wgEnableDublinCoreRdf = false;
1314 $wgEnableCreativeCommonsRdf = false;
1315
1316 /** Override for copyright metadata.
1317 * TODO: these options need documentation
1318 */
1319 $wgRightsPage = NULL;
1320 $wgRightsUrl = NULL;
1321 $wgRightsText = NULL;
1322 $wgRightsIcon = NULL;
1323
1324 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1325 $wgCopyrightIcon = NULL;
1326
1327 /** Set this to true if you want detailed copyright information forms on Upload. */
1328 $wgUseCopyrightUpload = false;
1329
1330 /** Set this to false if you want to disable checking that detailed copyright
1331 * information values are not empty. */
1332 $wgCheckCopyrightUpload = true;
1333
1334 /**
1335 * Set this to the number of authors that you want to be credited below an
1336 * article text. Set it to zero to hide the attribution block, and a negative
1337 * number (like -1) to show all authors. Note that this will require 2-3 extra
1338 * database hits, which can have a not insignificant impact on performance for
1339 * large wikis.
1340 */
1341 $wgMaxCredits = 0;
1342
1343 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1344 * Otherwise, link to a separate credits page. */
1345 $wgShowCreditsIfMax = true;
1346
1347
1348
1349 /**
1350 * Set this to false to avoid forcing the first letter of links to capitals.
1351 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1352 * appearing with a capital at the beginning of a sentence will *not* go to the
1353 * same place as links in the middle of a sentence using a lowercase initial.
1354 */
1355 $wgCapitalLinks = true;
1356
1357 /**
1358 * List of interwiki prefixes for wikis we'll accept as sources for
1359 * Special:Import (for sysops). Since complete page history can be imported,
1360 * these should be 'trusted'.
1361 *
1362 * If a user has the 'import' permission but not the 'importupload' permission,
1363 * they will only be able to run imports through this transwiki interface.
1364 */
1365 $wgImportSources = array();
1366
1367 /**
1368 * If set to false, disables the full-history option on Special:Export.
1369 * This is currently poorly optimized for long edit histories, so is
1370 * disabled on Wikimedia's sites.
1371 */
1372 $wgExportAllowHistory = true;
1373
1374
1375 /** Text matching this regular expression will be recognised as spam
1376 * See http://en.wikipedia.org/wiki/Regular_expression */
1377 $wgSpamRegex = false;
1378 /** Similarly if this function returns true */
1379 $wgFilterCallback = false;
1380
1381 /** Go button goes straight to the edit screen if the article doesn't exist. */
1382 $wgGoToEdit = false;
1383
1384 /** Allow limited user-specified HTML in wiki pages?
1385 * It will be run through a whitelist for security. Set this to false if you
1386 * want wiki pages to consist only of wiki markup. Note that replacements do not
1387 * yet exist for all HTML constructs.*/
1388 $wgUserHtml = true;
1389
1390 /** Allow raw, unchecked HTML in <html>...</html> sections.
1391 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1392 * TO RESTRICT EDITING to only those that you trust
1393 */
1394 $wgRawHtml = false;
1395
1396 /**
1397 * $wgUseTidy: use tidy to make sure HTML output is sane.
1398 * This should only be enabled if $wgUserHtml is true.
1399 * tidy is a free tool that fixes broken HTML.
1400 * See http://www.w3.org/People/Raggett/tidy/
1401 * $wgTidyBin should be set to the path of the binary and
1402 * $wgTidyConf to the path of the configuration file.
1403 * $wgTidyOpts can include any number of parameters.
1404 *
1405 * $wgTidyInternal controls the use of the PECL extension to use an in-
1406 * process tidy library instead of spawning a separate program.
1407 * Normally you shouldn't need to override the setting except for
1408 * debugging. To install, use 'pear install tidy' and add a line
1409 * 'extension=tidy.so' to php.ini.
1410 */
1411 $wgUseTidy = false;
1412 $wgAlwaysUseTidy = false;
1413 $wgTidyBin = 'tidy';
1414 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1415 $wgTidyOpts = '';
1416 $wgTidyInternal = function_exists( 'tidy_load_config' );
1417
1418 /** See list of skins and their symbolic names in languages/Language.php */
1419 $wgDefaultSkin = 'monobook';
1420
1421 /**
1422 * Settings added to this array will override the language globals for the user
1423 * preferences used by anonymous visitors and newly created accounts. (See names
1424 * and sample values in languages/Language.php)
1425 * For instance, to disable section editing links:
1426 * $wgDefaultUserOptions ['editsection'] = 0;
1427 *
1428 */
1429 $wgDefaultUserOptions = array();
1430
1431 /** Whether or not to allow and use real name fields. Defaults to true. */
1432 $wgAllowRealName = true;
1433
1434 /** Use XML parser? */
1435 $wgUseXMLparser = false ;
1436
1437 /** Extensions */
1438 $wgSkinExtensionFunctions = array();
1439 $wgExtensionFunctions = array();
1440 /**
1441 * An array of extension types and inside that their names, versions, authors
1442 * and urls, note that the version and url key can be omitted.
1443 *
1444 * <code>
1445 * $wgExtensionCredits[$type][] = array(
1446 * 'name' => 'Example extension',
1447 * 'version' => 1.9,
1448 * 'author' => 'Foo Barstein',
1449 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1450 * );
1451 * </code>
1452 *
1453 * Where $type is 'specialpage', 'parserhook', or 'other'.
1454 */
1455 $wgExtensionCredits = array();
1456
1457 /**
1458 * Allow user Javascript page?
1459 * This enables a lot of neat customizations, but may
1460 * increase security risk to users and server load.
1461 */
1462 $wgAllowUserJs = false;
1463
1464 /**
1465 * Allow user Cascading Style Sheets (CSS)?
1466 * This enables a lot of neat customizations, but may
1467 * increase security risk to users and server load.
1468 */
1469 $wgAllowUserCss = false;
1470
1471 /** Use the site's Javascript page? */
1472 $wgUseSiteJs = true;
1473
1474 /** Use the site's Cascading Style Sheets (CSS)? */
1475 $wgUseSiteCss = true;
1476
1477 /** Filter for Special:Randompage. Part of a WHERE clause */
1478 $wgExtraRandompageSQL = false;
1479
1480 /** Allow the "info" action, very inefficient at the moment */
1481 $wgAllowPageInfo = false;
1482
1483 /** Maximum indent level of toc. */
1484 $wgMaxTocLevel = 999;
1485
1486 /** Name of the external diff engine to use */
1487 $wgExternalDiffEngine = false;
1488
1489 /** Use RC Patrolling to check for vandalism */
1490 $wgUseRCPatrol = true;
1491
1492 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1493 * eg Recentchanges, Newpages. */
1494 $wgFeedLimit = 50;
1495
1496 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1497 * A cached version will continue to be served out even if changes
1498 * are made, until this many seconds runs out since the last render.
1499 *
1500 * If set to 0, feed caching is disabled. Use this for debugging only;
1501 * feed generation can be pretty slow with diffs.
1502 */
1503 $wgFeedCacheTimeout = 60;
1504
1505 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1506 * pages larger than this size. */
1507 $wgFeedDiffCutoff = 32768;
1508
1509
1510 /**
1511 * Additional namespaces. If the namespaces defined in Language.php and
1512 * Namespace.php are insufficient, you can create new ones here, for example,
1513 * to import Help files in other languages.
1514 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1515 * no longer be accessible. If you rename it, then you can access them through
1516 * the new namespace name.
1517 *
1518 * Custom namespaces should start at 100 to avoid conflicting with standard
1519 * namespaces, and should always follow the even/odd main/talk pattern.
1520 */
1521 #$wgExtraNamespaces =
1522 # array(100 => "Hilfe",
1523 # 101 => "Hilfe_Diskussion",
1524 # 102 => "Aide",
1525 # 103 => "Discussion_Aide"
1526 # );
1527 $wgExtraNamespaces = NULL;
1528
1529 /**
1530 * Limit images on image description pages to a user-selectable limit. In order
1531 * to reduce disk usage, limits can only be selected from a list. This is the
1532 * list of settings the user can choose from:
1533 */
1534 $wgImageLimits = array (
1535 array(320,240),
1536 array(640,480),
1537 array(800,600),
1538 array(1024,768),
1539 array(1280,1024),
1540 array(10000,10000) );
1541
1542 /**
1543 * Adjust thumbnails on image pages according to a user setting. In order to
1544 * reduce disk usage, the values can only be selected from a list. This is the
1545 * list of settings the user can choose from:
1546 */
1547 $wgThumbLimits = array(
1548 120,
1549 150,
1550 180,
1551 200,
1552 250,
1553 300
1554 );
1555
1556 /**
1557 * On category pages, show thumbnail gallery for images belonging to that
1558 * category instead of listing them as articles.
1559 */
1560 $wgCategoryMagicGallery = true;
1561
1562 /**
1563 * Browser Blacklist for unicode non compliant browsers
1564 * Contains a list of regexps : "/regexp/" matching problematic browsers
1565 */
1566 $wgBrowserBlackList = array(
1567 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1568 /**
1569 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1570 *
1571 * Known useragents:
1572 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1573 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1574 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1575 * - [...]
1576 *
1577 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1578 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1579 */
1580 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1581 );
1582
1583 /**
1584 * Fake out the timezone that the server thinks it's in. This will be used for
1585 * date display and not for what's stored in the DB. Leave to null to retain
1586 * your server's OS-based timezone value. This is the same as the timezone.
1587 *
1588 * This variable is currently used ONLY for signature formatting, not for
1589 * anything else.
1590 */
1591 # $wgLocaltimezone = 'GMT';
1592 # $wgLocaltimezone = 'PST8PDT';
1593 # $wgLocaltimezone = 'Europe/Sweden';
1594 # $wgLocaltimezone = 'CET';
1595 $wgLocaltimezone = null;
1596
1597 /**
1598 * Set an offset from UTC in hours to use for the default timezone setting
1599 * for anonymous users and new user accounts.
1600 *
1601 * This setting is used for most date/time displays in the software, and is
1602 * overrideable in user preferences. It is *not* used for signature timestamps.
1603 *
1604 * You can set it to match the configured server timezone like this:
1605 * $wgLocalTZoffset = date("Z") / 3600;
1606 *
1607 * If your server is not configured for the timezone you want, you can set
1608 * this in conjunction with the signature timezone and override the TZ
1609 * environment variable like so:
1610 * $wgLocaltimezone="Europe/Berlin";
1611 * putenv("TZ=$wgLocaltimezone");
1612 * $wgLocalTZoffset = date("Z") / 3600;
1613 *
1614 * Leave at NULL to show times in universal time (UTC/GMT).
1615 */
1616 $wgLocalTZoffset = null;
1617
1618
1619 /**
1620 * When translating messages with wfMsg(), it is not always clear what should be
1621 * considered UI messages and what shoud be content messages.
1622 *
1623 * For example, for regular wikipedia site like en, there should be only one
1624 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1625 * it as content of the site and call wfMsgForContent(), while for rendering the
1626 * text of the link, we call wfMsg(). The code in default behaves this way.
1627 * However, sites like common do offer different versions of 'mainpage' and the
1628 * like for different languages. This array provides a way to override the
1629 * default behavior. For example, to allow language specific mainpage and
1630 * community portal, set
1631 *
1632 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1633 */
1634 $wgForceUIMsgAsContentMsg = array();
1635
1636
1637 /**
1638 * Authentication plugin.
1639 */
1640 $wgAuth = null;
1641
1642 /**
1643 * Global list of hooks.
1644 * Add a hook by doing:
1645 * $wgHooks['event_name'][] = $function;
1646 * or:
1647 * $wgHooks['event_name'][] = array($function, $data);
1648 * or:
1649 * $wgHooks['event_name'][] = array($object, 'method');
1650 */
1651 $wgHooks = array();
1652
1653 /**
1654 * Experimental preview feature to fetch rendered text
1655 * over an XMLHttpRequest from JavaScript instead of
1656 * forcing a submit and reload of the whole page.
1657 * Leave disabled unless you're testing it.
1658 */
1659 $wgLivePreview = false;
1660
1661 /**
1662 * Disable the internal MySQL-based search, to allow it to be
1663 * implemented by an extension instead.
1664 */
1665 $wgDisableInternalSearch = false;
1666
1667 /**
1668 * Set this to a URL to forward search requests to some external location.
1669 * If the URL includes '$1', this will be replaced with the URL-encoded
1670 * search term.
1671 *
1672 * For example, to forward to Google you'd have something like:
1673 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1674 * '&domains=http://example.com' .
1675 * '&sitesearch=http://example.com' .
1676 * '&ie=utf-8&oe=utf-8';
1677 */
1678 $wgSearchForwardUrl = null;
1679
1680 /**
1681 * If true, external URL links in wiki text will be given the
1682 * rel="nofollow" attribute as a hint to search engines that
1683 * they should not be followed for ranking purposes as they
1684 * are user-supplied and thus subject to spamming.
1685 */
1686 $wgNoFollowLinks = true;
1687
1688 /**
1689 * Specifies the minimal length of a user password. If set to
1690 * 0, empty passwords are allowed.
1691 */
1692 $wgMinimalPasswordLength = 0;
1693
1694 /**
1695 * Activate external editor interface for files and pages
1696 * See http://meta.wikimedia.org/wiki/Help:External_editors
1697 */
1698 $wgUseExternalEditor = true;
1699
1700 /** Whether or not to sort special pages in Special:Specialpages */
1701
1702 $wgSortSpecialPages = true;
1703
1704 /**
1705 * Specify the name of a skin that should not be presented in the
1706 * list of available skins.
1707 * Use for blacklisting a skin which you do not want to remove
1708 * from the .../skins/ directory
1709 */
1710 $wgSkipSkin = '';
1711 $wgSkipSkins = array(); # More of the same
1712
1713 /**
1714 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1715 */
1716 $wgDisabledActions = array();
1717
1718 /**
1719 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1720 */
1721 $wgDisableHardRedirects = false;
1722
1723 /**
1724 * Use http.dnsbl.sorbs.net to check for open proxies
1725 */
1726 $wgEnableSorbs = false;
1727
1728 /**
1729 * Use opm.blitzed.org to check for open proxies.
1730 * Not yet actually used.
1731 */
1732 $wgEnableOpm = false;
1733
1734 /**
1735 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1736 * methods might say
1737 */
1738 $wgProxyWhitelist = array();
1739
1740 /**
1741 * Simple rate limiter options to brake edit floods.
1742 * Maximum number actions allowed in the given number of seconds;
1743 * after that the violating client receives HTTP 500 error pages
1744 * until the period elapses.
1745 *
1746 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
1747 *
1748 * This option set is experimental and likely to change.
1749 * Requires memcached.
1750 */
1751 $wgRateLimits = array(
1752 'edit' => array(
1753 'anon' => null, // for any and all anonymous edits (aggregate)
1754 'user' => null, // for each logged-in user
1755 'newbie' => null, // for each recent account; overrides 'user'
1756 'ip' => null, // for each anon and recent account
1757 'subnet' => null, // ... with final octet removed
1758 ),
1759 'move' => array(
1760 'user' => null,
1761 'newbie' => null,
1762 'ip' => null,
1763 'subnet' => null,
1764 ),
1765 );
1766
1767 /**
1768 * Set to a filename to log rate limiter hits.
1769 */
1770 $wgRateLimitLog = null;
1771
1772 /**
1773 * On Special:Unusedimages, consider images "used", if they are put
1774 * into a category. Default (false) is not to count those as used.
1775 */
1776 $wgCountCategorizedImagesAsUsed = false;
1777
1778 /**
1779 * External stores allow including content
1780 * from non database sources following URL links
1781 *
1782 * Short names of ExternalStore classes may be specified in an array here:
1783 * $wgExternalStores = array("http","file","custom")...
1784 *
1785 * CAUTION: Access to database might lead to code execution
1786 */
1787 $wgExternalStores = false;
1788
1789 /**
1790 * An array of external mysql servers, e.g.
1791 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1792 */
1793 $wgExternalServers = array();
1794
1795 /**
1796 * The place to put new revisions, false to put them in the local text table.
1797 * Part of a URL, e.g. DB://cluster1
1798 */
1799 $wgDefaultExternalStore = false;
1800
1801 /**
1802 * list of trusted media-types and mime types.
1803 * Use the MEDIATYPE_xxx constants to represent media types.
1804 * This list is used by Image::isSafeFile
1805 *
1806 * Types not listed here will have a warning about unsafe content
1807 * displayed on the images description page. It would also be possible
1808 * to use this for further restrictions, like disabling direct
1809 * [[media:...]] links for non-trusted formats.
1810 */
1811 $wgTrustedMediaFormats= array(
1812 MEDIATYPE_BITMAP, //all bitmap formats
1813 MEDIATYPE_AUDIO, //all audio formats
1814 MEDIATYPE_VIDEO, //all plain video formats
1815 "image/svg", //svg (only needed if inline rendering of svg is not supported)
1816 "application/pdf", //PDF files
1817 #"application/x-shockwafe-flash", //flash/shockwave movie
1818 );
1819
1820 /**
1821 * Allow special page inclusions such as {{Special:Allpages}}
1822 */
1823 $wgAllowSpecialInclusion = true;
1824
1825 /**
1826 * Timeout for HTTP requests done via CURL
1827 */
1828 $wgHTTPTimeout = 3;
1829
1830 /**
1831 * Proxy to use for CURL requests.
1832 */
1833 $wgHTTPProxy = false;
1834
1835 /**
1836 * Enable interwiki transcluding. Only when iw_trans=1.
1837 */
1838 $wgEnableScaryTranscluding = false;
1839 /**
1840 * Expiry time for interwiki transclusion
1841 */
1842 $wgTranscludeCacheExpiry = 3600;
1843
1844 /**
1845 * Support blog-style "trackbacks" for articles. See
1846 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
1847 */
1848 $wgUseTrackbacks = false;
1849
1850 /**
1851 * Enable filtering of robots in Special:Watchlist
1852 */
1853
1854 $wgFilterRobotsWL = false;
1855
1856 /**
1857 * Enable filtering of categories in Recentchanges
1858 */
1859 $wgAllowCategorizedRecentChanges = false ;
1860
1861 ?>