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