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