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