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