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