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