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