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