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