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