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