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