* (bug 13905) Blacklist Mac IE from HttpOnly cookies; it eats them sometimes
[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/Manual: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( "$IP/includes/SiteConfiguration.php" );
31 $wgConf = new SiteConfiguration;
32
33 /** MediaWiki version number */
34 $wgVersion = '1.13alpha';
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 $wgScriptExtension = '.php'; /// extension to append to script names by default
129 $wgScript = false; /// defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
130 $wgRedirectScript = false; /// defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
131 /**#@-*/
132
133
134 /**#@+
135 * These various web and file path variables are set to their defaults
136 * in Setup.php if they are not explicitly set from LocalSettings.php.
137 * If you do override them, be sure to set them all!
138 *
139 * These will relatively rarely need to be set manually, unless you are
140 * splitting style sheets or images outside the main document root.
141 *
142 * @global string
143 */
144 /**
145 * style path as seen by users
146 */
147 $wgStylePath = false; /// defaults to "{$wgScriptPath}/skins"
148 /**
149 * filesystem stylesheets directory
150 */
151 $wgStyleDirectory = false; /// defaults to "{$IP}/skins"
152 $wgStyleSheetPath = &$wgStylePath;
153 $wgArticlePath = false; /// default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
154 $wgVariantArticlePath = false;
155 $wgUploadPath = false; /// defaults to "{$wgScriptPath}/images"
156 $wgUploadDirectory = false; /// defaults to "{$IP}/images"
157 $wgHashedUploadDirectory = true;
158 $wgLogo = false; /// defaults to "{$wgStylePath}/common/images/wiki.png"
159 $wgFavicon = '/favicon.ico';
160 $wgAppleTouchIcon = false; /// This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
161 $wgMathPath = false; /// defaults to "{$wgUploadPath}/math"
162 $wgMathDirectory = false; /// defaults to "{$wgUploadDirectory}/math"
163 $wgTmpDirectory = false; /// defaults to "{$wgUploadDirectory}/tmp"
164 $wgUploadBaseUrl = "";
165 /**#@-*/
166
167 /**
168 * New file storage paths; currently used only for deleted files.
169 * Set it like this:
170 *
171 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
172 *
173 */
174 $wgFileStore = array();
175 $wgFileStore['deleted']['directory'] = false;// Defaults to $wgUploadDirectory/deleted
176 $wgFileStore['deleted']['url'] = null; // Private
177 $wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split
178
179 /**#@+
180 * File repository structures
181 *
182 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
183 * a an array of such structures. Each repository structure is an associative
184 * array of properties configuring the repository.
185 *
186 * Properties required for all repos:
187 * class The class name for the repository. May come from the core or an extension.
188 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
189 *
190 * name A unique name for the repository.
191 *
192 * For all core repos:
193 * url Base public URL
194 * hashLevels The number of directory levels for hash-based division of files
195 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
196 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
197 * handler instead.
198 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
199 * start with a capital letter. The current implementation may give incorrect
200 * description page links when the local $wgCapitalLinks and initialCapital
201 * are mismatched.
202 * pathDisclosureProtection
203 * May be 'paranoid' to remove all parameters from error messages, 'none' to
204 * leave the paths in unchanged, or 'simple' to replace paths with
205 * placeholders. Default for LocalRepo is 'simple'.
206 *
207 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
208 * for local repositories:
209 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
210 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
211 * http://en.wikipedia.org/w
212 *
213 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
214 * fetchDescription Fetch the text of the remote file description page. Equivalent to
215 * $wgFetchCommonsDescriptions.
216 *
217 * ForeignDBRepo:
218 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
219 * equivalent to the corresponding member of $wgDBservers
220 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
221 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
222 *
223 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
224 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
225 */
226 $wgLocalFileRepo = false;
227 $wgForeignFileRepos = array();
228 /**#@-*/
229
230 /**
231 * Allowed title characters -- regex character class
232 * Don't change this unless you know what you're doing
233 *
234 * Problematic punctuation:
235 * []{}|# Are needed for link syntax, never enable these
236 * <> Causes problems with HTML escaping, don't use
237 * % Enabled by default, minor problems with path to query rewrite rules, see below
238 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
239 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
240 *
241 * All three of these punctuation problems can be avoided by using an alias, instead of a
242 * rewrite rule of either variety.
243 *
244 * The problem with % is that when using a path to query rewrite rule, URLs are
245 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
246 * %253F, for example, becomes "?". Our code does not double-escape to compensate
247 * for this, indeed double escaping would break if the double-escaped title was
248 * passed in the query string rather than the path. This is a minor security issue
249 * because articles can be created such that they are hard to view or edit.
250 *
251 * In some rare cases you may wish to remove + for compatibility with old links.
252 *
253 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
254 * this breaks interlanguage links
255 */
256 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
257
258
259 /**
260 * The external URL protocols
261 */
262 $wgUrlProtocols = array(
263 'http://',
264 'https://',
265 'ftp://',
266 'irc://',
267 'gopher://',
268 'telnet://', // Well if we're going to support the above.. -ævar
269 'nntp://', // @bug 3808 RFC 1738
270 'worldwind://',
271 'mailto:',
272 'news:'
273 );
274
275 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
276 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
277 * @global string $wgAntivirus
278 */
279 $wgAntivirus= NULL;
280
281 /** Configuration for different virus scanners. This an associative array of associative arrays:
282 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
283 * valid values for $wgAntivirus are the keys defined in this array.
284 *
285 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
286 *
287 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
288 * file to scan. If not present, the filename will be appended to the command. Note that this must be
289 * overwritten if the scanner is not in the system path; in that case, plase set
290 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
291 *
292 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
293 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
294 * the file if $wgAntivirusRequired is not set.
295 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
296 * which is probably imune to virusses. This causes the file to pass.
297 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
298 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
299 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
300 *
301 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
302 * output. The relevant part should be matched as group one (\1).
303 * If not defined or the pattern does not match, the full message is shown to the user.
304 *
305 * @global array $wgAntivirusSetup
306 */
307 $wgAntivirusSetup = array(
308
309 #setup for clamav
310 'clamav' => array (
311 'command' => "clamscan --no-summary ",
312
313 'codemap' => array (
314 "0" => AV_NO_VIRUS, # no virus
315 "1" => AV_VIRUS_FOUND, # virus found
316 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
317 "*" => AV_SCAN_FAILED, # else scan failed
318 ),
319
320 'messagepattern' => '/.*?:(.*)/sim',
321 ),
322
323 #setup for f-prot
324 'f-prot' => array (
325 'command' => "f-prot ",
326
327 'codemap' => array (
328 "0" => AV_NO_VIRUS, # no virus
329 "3" => AV_VIRUS_FOUND, # virus found
330 "6" => AV_VIRUS_FOUND, # virus found
331 "*" => AV_SCAN_FAILED, # else scan failed
332 ),
333
334 'messagepattern' => '/.*?Infection:(.*)$/m',
335 ),
336 );
337
338
339 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
340 * @global boolean $wgAntivirusRequired
341 */
342 $wgAntivirusRequired= true;
343
344 /** Determines if the mime type of uploaded files should be checked
345 * @global boolean $wgVerifyMimeType
346 */
347 $wgVerifyMimeType= true;
348
349 /** Sets the mime type definition file to use by MimeMagic.php.
350 * @global string $wgMimeTypeFile
351 */
352 $wgMimeTypeFile= "includes/mime.types";
353 #$wgMimeTypeFile= "/etc/mime.types";
354 #$wgMimeTypeFile= NULL; #use built-in defaults only.
355
356 /** Sets the mime type info file to use by MimeMagic.php.
357 * @global string $wgMimeInfoFile
358 */
359 $wgMimeInfoFile= "includes/mime.info";
360 #$wgMimeInfoFile= NULL; #use built-in defaults only.
361
362 /** Switch for loading the FileInfo extension by PECL at runtime.
363 * This should be used only if fileinfo is installed as a shared object
364 * or a dynamic libary
365 * @global string $wgLoadFileinfoExtension
366 */
367 $wgLoadFileinfoExtension= false;
368
369 /** Sets an external mime detector program. The command must print only
370 * the mime type to standard output.
371 * The name of the file to process will be appended to the command given here.
372 * If not set or NULL, mime_content_type will be used if available.
373 */
374 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
375 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
376
377 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
378 * things, because only a few types of images are needed and file extensions
379 * can be trusted.
380 */
381 $wgTrivialMimeDetection= false;
382
383 /**
384 * To set 'pretty' URL paths for actions other than
385 * plain page views, add to this array. For instance:
386 * 'edit' => "$wgScriptPath/edit/$1"
387 *
388 * There must be an appropriate script or rewrite rule
389 * in place to handle these URLs.
390 */
391 $wgActionPaths = array();
392
393 /**
394 * If you operate multiple wikis, you can define a shared upload path here.
395 * Uploads to this wiki will NOT be put there - they will be put into
396 * $wgUploadDirectory.
397 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
398 * no file of the given name is found in the local repository (for [[Image:..]],
399 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
400 * directory.
401 *
402 * Note that these configuration settings can now be defined on a per-
403 * repository basis for an arbitrary number of file repositories, using the
404 * $wgForeignFileRepos variable.
405 */
406 $wgUseSharedUploads = false;
407 /** Full path on the web server where shared uploads can be found */
408 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
409 /** Fetch commons image description pages and display them on the local wiki? */
410 $wgFetchCommonsDescriptions = false;
411 /** Path on the file system where shared uploads can be found. */
412 $wgSharedUploadDirectory = "/var/www/wiki3/images";
413 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
414 $wgSharedUploadDBname = false;
415 /** Optional table prefix used in database. */
416 $wgSharedUploadDBprefix = '';
417 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
418 $wgCacheSharedUploads = true;
419 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
420 $wgAllowCopyUploads = false;
421 /**
422 * Max size for uploads, in bytes. Currently only works for uploads from URL
423 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
424 * normal uploads is currently to edit php.ini.
425 */
426 $wgMaxUploadSize = 1024*1024*100; # 100MB
427
428 /**
429 * Point the upload navigation link to an external URL
430 * Useful if you want to use a shared repository by default
431 * without disabling local uploads (use $wgEnableUploads = false for that)
432 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
433 */
434 $wgUploadNavigationUrl = false;
435
436 /**
437 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
438 * generating them on render and outputting a static URL. This is necessary if some of your
439 * apache servers don't have read/write access to the thumbnail path.
440 *
441 * Example:
442 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
443 */
444 $wgThumbnailScriptPath = false;
445 $wgSharedThumbnailScriptPath = false;
446
447 /**
448 * Set the following to false especially if you have a set of files that need to
449 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
450 * directory layout.
451 */
452 $wgHashedSharedUploadDirectory = true;
453
454 /**
455 * Base URL for a repository wiki. Leave this blank if uploads are just stored
456 * in a shared directory and not meant to be accessible through a separate wiki.
457 * Otherwise the image description pages on the local wiki will link to the
458 * image description page on this wiki.
459 *
460 * Please specify the namespace, as in the example below.
461 */
462 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
463
464 #
465 # Email settings
466 #
467
468 /**
469 * Site admin email address
470 * Default to wikiadmin@SERVER_NAME
471 * @global string $wgEmergencyContact
472 */
473 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
474
475 /**
476 * Password reminder email address
477 * The address we should use as sender when a user is requesting his password
478 * Default to apache@SERVER_NAME
479 * @global string $wgPasswordSender
480 */
481 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
482
483 /**
484 * dummy address which should be accepted during mail send action
485 * It might be necessay to adapt the address or to set it equal
486 * to the $wgEmergencyContact address
487 */
488 #$wgNoReplyAddress = $wgEmergencyContact;
489 $wgNoReplyAddress = 'reply@not.possible';
490
491 /**
492 * Set to true to enable the e-mail basic features:
493 * Password reminders, etc. If sending e-mail on your
494 * server doesn't work, you might want to disable this.
495 * @global bool $wgEnableEmail
496 */
497 $wgEnableEmail = true;
498
499 /**
500 * Set to true to enable user-to-user e-mail.
501 * This can potentially be abused, as it's hard to track.
502 * @global bool $wgEnableUserEmail
503 */
504 $wgEnableUserEmail = true;
505
506 /**
507 * Set to true to put the sending user's email in a Reply-To header
508 * instead of From. ($wgEmergencyContact will be used as From.)
509 *
510 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
511 * which can cause problems with SPF validation and leak recipient addressses
512 * when bounces are sent to the sender.
513 */
514 $wgUserEmailUseReplyTo = false;
515
516 /**
517 * Minimum time, in hours, which must elapse between password reminder
518 * emails for a given account. This is to prevent abuse by mail flooding.
519 */
520 $wgPasswordReminderResendTime = 24;
521
522 /**
523 * SMTP Mode
524 * For using a direct (authenticated) SMTP server connection.
525 * Default to false or fill an array :
526 * <code>
527 * "host" => 'SMTP domain',
528 * "IDHost" => 'domain for MessageID',
529 * "port" => "25",
530 * "auth" => true/false,
531 * "username" => user,
532 * "password" => password
533 * </code>
534 *
535 * @global mixed $wgSMTP
536 */
537 $wgSMTP = false;
538
539
540 /**#@+
541 * Database settings
542 */
543 /** database host name or ip address */
544 $wgDBserver = 'localhost';
545 /** database port number */
546 $wgDBport = '';
547 /** name of the database */
548 $wgDBname = 'wikidb';
549 /** */
550 $wgDBconnection = '';
551 /** Database username */
552 $wgDBuser = 'wikiuser';
553 /** Database type
554 */
555 $wgDBtype = "mysql";
556 /** Search type
557 * Leave as null to select the default search engine for the
558 * selected database type (eg SearchMySQL4), or set to a class
559 * name to override to a custom search engine.
560 */
561 $wgSearchType = null;
562 /** Table name prefix */
563 $wgDBprefix = '';
564 /** MySQL table options to use during installation or update */
565 $wgDBTableOptions = 'TYPE=InnoDB';
566
567 /**
568 * Make all database connections secretly go to localhost. Fool the load balancer
569 * thinking there is an arbitrarily large cluster of servers to connect to.
570 * Useful for debugging.
571 */
572 $wgAllDBsAreLocalhost = false;
573
574 /**#@-*/
575
576
577 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
578 $wgCheckDBSchema = true;
579
580
581 /**
582 * Shared database for multiple wikis. Presently used for storing a user table
583 * for single sign-on. The server for this database must be the same as for the
584 * main database.
585 * EXPERIMENTAL
586 */
587 $wgSharedDB = null;
588
589 /**
590 * Database load balancer
591 * This is a two-dimensional array, an array of server info structures
592 * Fields are:
593 * host: Host name
594 * dbname: Default database name
595 * user: DB user
596 * password: DB password
597 * type: "mysql" or "postgres"
598 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
599 * groupLoads: array of load ratios, the key is the query group name. A query may belong
600 * to several groups, the most specific group defined here is used.
601 *
602 * flags: bit field
603 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
604 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
605 * DBO_TRX -- wrap entire request in a transaction
606 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
607 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
608 *
609 * max lag: (optional) Maximum replication lag before a slave will taken out of rotation
610 * max threads: (optional) Maximum number of running threads
611 *
612 * These and any other user-defined properties will be assigned to the mLBInfo member
613 * variable of the Database object.
614 *
615 * Leave at false to use the single-server variables above. If you set this
616 * variable, the single-server variables will generally be ignored (except
617 * perhaps in some command-line scripts).
618 *
619 * The first server listed in this array (with key 0) will be the master. The
620 * rest of the servers will be slaves. To prevent writes to your slaves due to
621 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
622 * slaves in my.cnf. You can set read_only mode at runtime using:
623 *
624 * SET @@read_only=1;
625 *
626 * Since the effect of writing to a slave is so damaging and difficult to clean
627 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
628 * our masters, and then set read_only=0 on masters at runtime.
629 */
630 $wgDBservers = false;
631
632 /**
633 * Load balancer factory configuration
634 * To set up a multi-master wiki farm, set the class here to something that
635 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
636 * The class identified here is responsible for reading $wgDBservers,
637 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
638 *
639 * The LBFactory_Multi class is provided for this purpose, please see
640 * includes/LBFactory_Multi.php for configuration information.
641 */
642 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
643
644 /** How long to wait for a slave to catch up to the master */
645 $wgMasterWaitTimeout = 10;
646
647 /** File to log database errors to */
648 $wgDBerrorLog = false;
649
650 /** When to give an error message */
651 $wgDBClusterTimeout = 10;
652
653 /**
654 * Scale load balancer polling time so that under overload conditions, the database server
655 * receives a SHOW STATUS query at an average interval of this many microseconds
656 */
657 $wgDBAvgStatusPoll = 2000;
658
659 /**
660 * wgDBminWordLen :
661 * MySQL 3.x : used to discard words that MySQL will not return any results for
662 * shorter values configure mysql directly.
663 * MySQL 4.x : ignore it and configure mySQL
664 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
665 */
666 $wgDBminWordLen = 4;
667 /** Set to true if using InnoDB tables */
668 $wgDBtransactions = false;
669 /** Set to true for compatibility with extensions that might be checking.
670 * MySQL 3.23.x is no longer supported. */
671 $wgDBmysql4 = true;
672
673 /**
674 * Set to true to engage MySQL 4.1/5.0 charset-related features;
675 * for now will just cause sending of 'SET NAMES=utf8' on connect.
676 *
677 * WARNING: THIS IS EXPERIMENTAL!
678 *
679 * May break if you're not using the table defs from mysql5/tables.sql.
680 * May break if you're upgrading an existing wiki if set differently.
681 * Broken symptoms likely to include incorrect behavior with page titles,
682 * usernames, comments etc containing non-ASCII characters.
683 * Might also cause failures on the object cache and other things.
684 *
685 * Even correct usage may cause failures with Unicode supplementary
686 * characters (those not in the Basic Multilingual Plane) unless MySQL
687 * has enhanced their Unicode support.
688 */
689 $wgDBmysql5 = false;
690
691 /**
692 * Other wikis on this site, can be administered from a single developer
693 * account.
694 * Array numeric key => database name
695 */
696 $wgLocalDatabases = array();
697
698 /**
699 * Object cache settings
700 * See Defines.php for types
701 */
702 $wgMainCacheType = CACHE_NONE;
703 $wgMessageCacheType = CACHE_ANYTHING;
704 $wgParserCacheType = CACHE_ANYTHING;
705
706 $wgParserCacheExpireTime = 86400;
707
708 $wgSessionsInMemcached = false;
709
710 /**
711 * Memcached-specific settings
712 * See docs/memcached.txt
713 */
714 $wgUseMemCached = false;
715 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
716 $wgMemCachedServers = array( '127.0.0.1:11000' );
717 $wgMemCachedPersistent = false;
718
719 /**
720 * Directory for local copy of message cache, for use in addition to memcached
721 */
722 $wgLocalMessageCache = false;
723 /**
724 * Defines format of local cache
725 * true - Serialized object
726 * false - PHP source file (Warning - security risk)
727 */
728 $wgLocalMessageCacheSerialized = true;
729
730 /**
731 * Directory for compiled constant message array databases
732 * WARNING: turning anything on will just break things, aaaaaah!!!!
733 */
734 $wgCachedMessageArrays = false;
735
736 # Language settings
737 #
738 /** Site language code, should be one of ./languages/Language(.*).php */
739 $wgLanguageCode = 'en';
740
741 /**
742 * Some languages need different word forms, usually for different cases.
743 * Used in Language::convertGrammar().
744 */
745 $wgGrammarForms = array();
746 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
747
748 /** Treat language links as magic connectors, not inline links */
749 $wgInterwikiMagic = true;
750
751 /** Hide interlanguage links from the sidebar */
752 $wgHideInterlanguageLinks = false;
753
754 /** List of language names or overrides for default names in Names.php */
755 $wgExtraLanguageNames = array();
756
757 /** We speak UTF-8 all the time now, unless some oddities happen */
758 $wgInputEncoding = 'UTF-8';
759 $wgOutputEncoding = 'UTF-8';
760 $wgEditEncoding = '';
761
762 # Set this to eg 'ISO-8859-1' to perform character set
763 # conversion when loading old revisions not marked with
764 # "utf-8" flag. Use this when converting wiki to UTF-8
765 # without the burdensome mass conversion of old text data.
766 #
767 # NOTE! This DOES NOT touch any fields other than old_text.
768 # Titles, comments, user names, etc still must be converted
769 # en masse in the database before continuing as a UTF-8 wiki.
770 $wgLegacyEncoding = false;
771
772 /**
773 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
774 * create stub reference rows in the text table instead of copying
775 * the full text of all current entries from 'cur' to 'text'.
776 *
777 * This will speed up the conversion step for large sites, but
778 * requires that the cur table be kept around for those revisions
779 * to remain viewable.
780 *
781 * maintenance/migrateCurStubs.php can be used to complete the
782 * migration in the background once the wiki is back online.
783 *
784 * This option affects the updaters *only*. Any present cur stub
785 * revisions will be readable at runtime regardless of this setting.
786 */
787 $wgLegacySchemaConversion = false;
788
789 $wgMimeType = 'text/html';
790 $wgJsMimeType = 'text/javascript';
791 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
792 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
793 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
794
795 # Permit other namespaces in addition to the w3.org default.
796 # Use the prefix for the key and the namespace for the value. For
797 # example:
798 # $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
799 # Normally we wouldn't have to define this in the root <html>
800 # element, but IE needs it there in some circumstances.
801 $wgXhtmlNamespaces = array();
802
803 /** Enable to allow rewriting dates in page text.
804 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
805 $wgUseDynamicDates = false;
806 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
807 * the interface is set to English
808 */
809 $wgAmericanDates = false;
810 /**
811 * For Hindi and Arabic use local numerals instead of Western style (0-9)
812 * numerals in interface.
813 */
814 $wgTranslateNumerals = true;
815
816 /**
817 * Translation using MediaWiki: namespace.
818 * This will increase load times by 25-60% unless memcached is installed.
819 * Interface messages will be loaded from the database.
820 */
821 $wgUseDatabaseMessages = true;
822
823 /**
824 * Expiry time for the message cache key
825 */
826 $wgMsgCacheExpiry = 86400;
827
828 /**
829 * Maximum entry size in the message cache, in bytes
830 */
831 $wgMaxMsgCacheEntrySize = 10000;
832
833 /**
834 * Set to false if you are thorough system admin who always remembers to keep
835 * serialized files up to date to save few mtime calls.
836 */
837 $wgCheckSerialized = true;
838
839 # Whether to enable language variant conversion.
840 $wgDisableLangConversion = false;
841
842 # Default variant code, if false, the default will be the language code
843 $wgDefaultLanguageVariant = false;
844
845 /**
846 * Show a bar of language selection links in the user login and user
847 * registration forms; edit the "loginlanguagelinks" message to
848 * customise these
849 */
850 $wgLoginLanguageSelector = false;
851
852 # Whether to use zhdaemon to perform Chinese text processing
853 # zhdaemon is under developement, so normally you don't want to
854 # use it unless for testing
855 $wgUseZhdaemon = false;
856 $wgZhdaemonHost="localhost";
857 $wgZhdaemonPort=2004;
858
859 /**
860 * Normally you can ignore this and it will be something
861 * like $wgMetaNamespace . "_talk". In some languages, you
862 * may want to set this manually for grammatical reasons.
863 * It is currently only respected by those languages
864 * where it might be relevant and where no automatic
865 * grammar converter exists.
866 */
867 $wgMetaNamespaceTalk = false;
868
869 # Miscellaneous configuration settings
870 #
871
872 $wgLocalInterwiki = 'w';
873 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
874
875 /** Interwiki caching settings.
876 $wgInterwikiCache specifies path to constant database file
877 This cdb database is generated by dumpInterwiki from maintenance
878 and has such key formats:
879 dbname:key - a simple key (e.g. enwiki:meta)
880 _sitename:key - site-scope key (e.g. wiktionary:meta)
881 __global:key - global-scope key (e.g. __global:meta)
882 __sites:dbname - site mapping (e.g. __sites:enwiki)
883 Sites mapping just specifies site name, other keys provide
884 "local url" data layout.
885 $wgInterwikiScopes specify number of domains to check for messages:
886 1 - Just wiki(db)-level
887 2 - wiki and global levels
888 3 - site levels
889 $wgInterwikiFallbackSite - if unable to resolve from cache
890 */
891 $wgInterwikiCache = false;
892 $wgInterwikiScopes = 3;
893 $wgInterwikiFallbackSite = 'wiki';
894
895 /**
896 * If local interwikis are set up which allow redirects,
897 * set this regexp to restrict URLs which will be displayed
898 * as 'redirected from' links.
899 *
900 * It might look something like this:
901 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
902 *
903 * Leave at false to avoid displaying any incoming redirect markers.
904 * This does not affect intra-wiki redirects, which don't change
905 * the URL.
906 */
907 $wgRedirectSources = false;
908
909
910 $wgShowIPinHeader = true; # For non-logged in users
911 $wgMaxNameChars = 255; # Maximum number of bytes in username
912 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
913 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
914
915 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
916
917 /**
918 * Maximum recursion depth for templates within templates.
919 * The current parser adds two levels to the PHP call stack for each template,
920 * and xdebug limits the call stack to 100 by default. So this should hopefully
921 * stop the parser before it hits the xdebug limit.
922 */
923 $wgMaxTemplateDepth = 40;
924 $wgMaxPPExpandDepth = 40;
925
926 $wgExtraSubtitle = '';
927 $wgSiteSupportPage = ''; # A page where you users can receive donations
928
929 /***
930 * If this lock file exists, the wiki will be forced into read-only mode.
931 * Its contents will be shown to users as part of the read-only warning
932 * message.
933 */
934 $wgReadOnlyFile = false; /// defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
935
936 /**
937 * The debug log file should be not be publicly accessible if it is used, as it
938 * may contain private data. */
939 $wgDebugLogFile = '';
940
941 /**#@+
942 * @global bool
943 */
944 $wgDebugRedirects = false;
945 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
946
947 $wgDebugComments = false;
948 $wgReadOnly = null;
949 $wgLogQueries = false;
950
951 /**
952 * Write SQL queries to the debug log
953 */
954 $wgDebugDumpSql = false;
955
956 /**
957 * Set to an array of log group keys to filenames.
958 * If set, wfDebugLog() output for that group will go to that file instead
959 * of the regular $wgDebugLogFile. Useful for enabling selective logging
960 * in production.
961 */
962 $wgDebugLogGroups = array();
963
964 /**
965 * Whether to show "we're sorry, but there has been a database error" pages.
966 * Displaying errors aids in debugging, but may display information useful
967 * to an attacker.
968 */
969 $wgShowSQLErrors = false;
970
971 /**
972 * If true, some error messages will be colorized when running scripts on the
973 * command line; this can aid picking important things out when debugging.
974 * Ignored when running on Windows or when output is redirected to a file.
975 */
976 $wgColorErrors = true;
977
978 /**
979 * If set to true, uncaught exceptions will print a complete stack trace
980 * to output. This should only be used for debugging, as it may reveal
981 * private information in function parameters due to PHP's backtrace
982 * formatting.
983 */
984 $wgShowExceptionDetails = false;
985
986 /**
987 * Expose backend server host names through the API and various HTML comments
988 */
989 $wgShowHostnames = false;
990
991 /**
992 * Use experimental, DMOZ-like category browser
993 */
994 $wgUseCategoryBrowser = false;
995
996 /**
997 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
998 * to speed up output of the same page viewed by another user with the
999 * same options.
1000 *
1001 * This can provide a significant speedup for medium to large pages,
1002 * so you probably want to keep it on.
1003 */
1004 $wgEnableParserCache = true;
1005
1006 /**
1007 * If on, the sidebar navigation links are cached for users with the
1008 * current language set. This can save a touch of load on a busy site
1009 * by shaving off extra message lookups.
1010 *
1011 * However it is also fragile: changing the site configuration, or
1012 * having a variable $wgArticlePath, can produce broken links that
1013 * don't update as expected.
1014 */
1015 $wgEnableSidebarCache = false;
1016
1017 /**
1018 * Expiry time for the sidebar cache, in seconds
1019 */
1020 $wgSidebarCacheExpiry = 86400;
1021
1022 /**
1023 * Under which condition should a page in the main namespace be counted
1024 * as a valid article? If $wgUseCommaCount is set to true, it will be
1025 * counted if it contains at least one comma. If it is set to false
1026 * (default), it will only be counted if it contains at least one [[wiki
1027 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
1028 *
1029 * Retroactively changing this variable will not affect
1030 * the existing count (cf. maintenance/recount.sql).
1031 */
1032 $wgUseCommaCount = false;
1033
1034 /**#@-*/
1035
1036 /**
1037 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
1038 * values are easier on the database. A value of 1 causes the counters to be
1039 * updated on every hit, any higher value n cause them to update *on average*
1040 * every n hits. Should be set to either 1 or something largish, eg 1000, for
1041 * maximum efficiency.
1042 */
1043 $wgHitcounterUpdateFreq = 1;
1044
1045 # Basic user rights and block settings
1046 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1047 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1048 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1049 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
1050 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1051
1052 # Pages anonymous user may see as an array, e.g.:
1053 # array ( "Main Page", "Wikipedia:Help");
1054 # Special:Userlogin and Special:Resetpass are always whitelisted.
1055 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1056 # is false -- see below. Otherwise, ALL pages are accessible,
1057 # regardless of this setting.
1058 # Also note that this will only protect _pages in the wiki_.
1059 # Uploaded files will remain readable. Make your upload
1060 # directory name unguessable, or use .htaccess to protect it.
1061 $wgWhitelistRead = false;
1062
1063 /**
1064 * Should editors be required to have a validated e-mail
1065 * address before being allowed to edit?
1066 */
1067 $wgEmailConfirmToEdit=false;
1068
1069 /**
1070 * Permission keys given to users in each group.
1071 * All users are implicitly in the '*' group including anonymous visitors;
1072 * logged-in users are all implicitly in the 'user' group. These will be
1073 * combined with the permissions of all groups that a given user is listed
1074 * in in the user_groups table.
1075 *
1076 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1077 * doing! This will wipe all permissions, and may mean that your users are
1078 * unable to perform certain essential tasks or access new functionality
1079 * when new permissions are introduced and default grants established.
1080 *
1081 * Functionality to make pages inaccessible has not been extensively tested
1082 * for security. Use at your own risk!
1083 *
1084 * This replaces wgWhitelistAccount and wgWhitelistEdit
1085 */
1086 $wgGroupPermissions = array();
1087
1088 // Implicit group for all visitors
1089 $wgGroupPermissions['*' ]['createaccount'] = true;
1090 $wgGroupPermissions['*' ]['read'] = true;
1091 $wgGroupPermissions['*' ]['edit'] = true;
1092 $wgGroupPermissions['*' ]['createpage'] = true;
1093 $wgGroupPermissions['*' ]['createtalk'] = true;
1094
1095 // Implicit group for all logged-in accounts
1096 $wgGroupPermissions['user' ]['move'] = true;
1097 $wgGroupPermissions['user' ]['read'] = true;
1098 $wgGroupPermissions['user' ]['edit'] = true;
1099 $wgGroupPermissions['user' ]['createpage'] = true;
1100 $wgGroupPermissions['user' ]['createtalk'] = true;
1101 $wgGroupPermissions['user' ]['upload'] = true;
1102 $wgGroupPermissions['user' ]['reupload'] = true;
1103 $wgGroupPermissions['user' ]['reupload-shared'] = true;
1104 $wgGroupPermissions['user' ]['minoredit'] = true;
1105 $wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
1106
1107 // Implicit group for accounts that pass $wgAutoConfirmAge
1108 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1109
1110 // Users with bot privilege can have their edits hidden
1111 // from various log pages by default
1112 $wgGroupPermissions['bot' ]['bot'] = true;
1113 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
1114 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
1115 $wgGroupPermissions['bot' ]['autopatrol'] = true;
1116 $wgGroupPermissions['bot' ]['suppressredirect'] = true;
1117 $wgGroupPermissions['bot' ]['apihighlimits'] = true;
1118 #$wgGroupPermissions['bot' ]['editprotected'] = true; // can edit all protected pages without cascade protection enabled
1119
1120 // Most extra permission abilities go to this group
1121 $wgGroupPermissions['sysop']['block'] = true;
1122 $wgGroupPermissions['sysop']['createaccount'] = true;
1123 $wgGroupPermissions['sysop']['delete'] = true;
1124 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
1125 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1126 $wgGroupPermissions['sysop']['undelete'] = true;
1127 $wgGroupPermissions['sysop']['editinterface'] = true;
1128 $wgGroupPermissions['sysop']['editusercssjs'] = true;
1129 $wgGroupPermissions['sysop']['import'] = true;
1130 $wgGroupPermissions['sysop']['importupload'] = true;
1131 $wgGroupPermissions['sysop']['move'] = true;
1132 $wgGroupPermissions['sysop']['patrol'] = true;
1133 $wgGroupPermissions['sysop']['autopatrol'] = true;
1134 $wgGroupPermissions['sysop']['protect'] = true;
1135 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1136 $wgGroupPermissions['sysop']['rollback'] = true;
1137 $wgGroupPermissions['sysop']['trackback'] = true;
1138 $wgGroupPermissions['sysop']['upload'] = true;
1139 $wgGroupPermissions['sysop']['reupload'] = true;
1140 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1141 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1142 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1143 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1144 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1145 $wgGroupPermissions['sysop']['blockemail'] = true;
1146 $wgGroupPermissions['sysop']['markbotedits'] = true;
1147 $wgGroupPermissions['sysop']['suppressredirect'] = true;
1148 $wgGroupPermissions['sysop']['apihighlimits'] = true;
1149 $wgGroupPermissions['sysop']['browsearchive'] = true;
1150 #$wgGroupPermissions['sysop']['mergehistory'] = true;
1151
1152 // Permission to change users' group assignments
1153 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1154 // Permission to change users' groups assignments across wikis
1155 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
1156
1157 #$wgGroupPermissions['sysop']['deleterevision'] = true;
1158 // To hide usernames from users and Sysops
1159 #$wgGroupPermissions['suppress']['hideuser'] = true;
1160 // To hide revisions/log items from users and Sysops
1161 #$wgGroupPermissions['suppress']['hiderevision'] = true;
1162 // For private suppression log access
1163 #$wgGroupPermissions['suppress']['suppress'] = true;
1164
1165 /**
1166 * The developer group is deprecated, but can be activated if need be
1167 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1168 * that a lock file be defined and creatable/removable by the web
1169 * server.
1170 */
1171 # $wgGroupPermissions['developer']['siteadmin'] = true;
1172
1173
1174 /**
1175 * Implicit groups, aren't shown on Special:Listusers or somewhere else
1176 */
1177 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
1178
1179 /**
1180 * These are the groups that users are allowed to add to or remove from
1181 * their own account via Special:Userrights.
1182 */
1183 $wgGroupsAddToSelf = array();
1184 $wgGroupsRemoveFromSelf = array();
1185
1186 /**
1187 * Set of available actions that can be restricted via action=protect
1188 * You probably shouldn't change this.
1189 * Translated trough restriction-* messages.
1190 */
1191 $wgRestrictionTypes = array( 'edit', 'move' );
1192
1193 /**
1194 * Rights which can be required for each protection level (via action=protect)
1195 *
1196 * You can add a new protection level that requires a specific
1197 * permission by manipulating this array. The ordering of elements
1198 * dictates the order on the protection form's lists.
1199 *
1200 * '' will be ignored (i.e. unprotected)
1201 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1202 */
1203 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1204
1205 /**
1206 * Set the minimum permissions required to edit pages in each
1207 * namespace. If you list more than one permission, a user must
1208 * have all of them to edit pages in that namespace.
1209 */
1210 $wgNamespaceProtection = array();
1211 $wgNamespaceProtection[ NS_MEDIAWIKI ] = array( 'editinterface' );
1212
1213 /**
1214 * Pages in namespaces in this array can not be used as templates.
1215 * Elements must be numeric namespace ids.
1216 * Among other things, this may be useful to enforce read-restrictions
1217 * which may otherwise be bypassed by using the template machanism.
1218 */
1219 $wgNonincludableNamespaces = array();
1220
1221 /**
1222 * Number of seconds an account is required to age before
1223 * it's given the implicit 'autoconfirm' group membership.
1224 * This can be used to limit privileges of new accounts.
1225 *
1226 * Accounts created by earlier versions of the software
1227 * may not have a recorded creation date, and will always
1228 * be considered to pass the age test.
1229 *
1230 * When left at 0, all registered accounts will pass.
1231 */
1232 $wgAutoConfirmAge = 0;
1233 //$wgAutoConfirmAge = 600; // ten minutes
1234 //$wgAutoConfirmAge = 3600*24; // one day
1235
1236 # Number of edits an account requires before it is autoconfirmed
1237 # Passing both this AND the time requirement is needed
1238 $wgAutoConfirmCount = 0;
1239 //$wgAutoConfirmCount = 50;
1240
1241 /**
1242 * Automatically add a usergroup to any user who matches certain conditions.
1243 * The format is
1244 * array( '&' or '|' or '^', cond1, cond2, ... )
1245 * where cond1, cond2, ... are themselves conditions; *OR*
1246 * APCOND_EMAILCONFIRMED, *OR*
1247 * array( APCOND_EMAILCONFIRMED ), *OR*
1248 * array( APCOND_EDITCOUNT, number of edits ), *OR*
1249 * array( APCOND_AGE, seconds since registration ), *OR*
1250 * similar constructs defined by extensions.
1251 *
1252 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
1253 * user who has provided an e-mail address.
1254 */
1255 $wgAutopromote = array(
1256 'autoconfirmed' => array( '&',
1257 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
1258 array( APCOND_AGE, &$wgAutoConfirmAge ),
1259 ),
1260 );
1261
1262 /**
1263 * These settings can be used to give finer control over who can assign which
1264 * groups at Special:Userrights. Example configuration:
1265 *
1266 * // Bureaucrat can add any group
1267 * $wgAddGroups['bureaucrat'] = true;
1268 * // Bureaucrats can only remove bots and sysops
1269 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1270 * // Sysops can make bots
1271 * $wgAddGroups['sysop'] = array( 'bot' );
1272 * // Sysops can disable other sysops in an emergency, and disable bots
1273 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1274 */
1275 $wgAddGroups = $wgRemoveGroups = array();
1276
1277 /**
1278 * Optional to restrict deletion of pages with higher revision counts
1279 * to users with the 'bigdelete' permission. (Default given to sysops.)
1280 */
1281 $wgDeleteRevisionsLimit = 0;
1282
1283 # Proxy scanner settings
1284 #
1285
1286 /**
1287 * If you enable this, every editor's IP address will be scanned for open HTTP
1288 * proxies.
1289 *
1290 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1291 * ISP and ask for your server to be shut down.
1292 *
1293 * You have been warned.
1294 */
1295 $wgBlockOpenProxies = false;
1296 /** Port we want to scan for a proxy */
1297 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1298 /** Script used to scan */
1299 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1300 /** */
1301 $wgProxyMemcExpiry = 86400;
1302 /** This should always be customised in LocalSettings.php */
1303 $wgSecretKey = false;
1304 /** big list of banned IP addresses, in the keys not the values */
1305 $wgProxyList = array();
1306 /** deprecated */
1307 $wgProxyKey = false;
1308
1309 /** Number of accounts each IP address may create, 0 to disable.
1310 * Requires memcached */
1311 $wgAccountCreationThrottle = 0;
1312
1313 # Client-side caching:
1314
1315 /** Allow client-side caching of pages */
1316 $wgCachePages = true;
1317
1318 /**
1319 * Set this to current time to invalidate all prior cached pages. Affects both
1320 * client- and server-side caching.
1321 * You can get the current date on your server by using the command:
1322 * date +%Y%m%d%H%M%S
1323 */
1324 $wgCacheEpoch = '20030516000000';
1325
1326 /**
1327 * Bump this number when changing the global style sheets and JavaScript.
1328 * It should be appended in the query string of static CSS and JS includes,
1329 * to ensure that client-side caches don't keep obsolete copies of global
1330 * styles.
1331 */
1332 $wgStyleVersion = '141';
1333
1334
1335 # Server-side caching:
1336
1337 /**
1338 * This will cache static pages for non-logged-in users to reduce
1339 * database traffic on public sites.
1340 * Must set $wgShowIPinHeader = false
1341 */
1342 $wgUseFileCache = false;
1343
1344 /** Directory where the cached page will be saved */
1345 $wgFileCacheDirectory = false; /// defaults to "{$wgUploadDirectory}/cache";
1346
1347 /**
1348 * When using the file cache, we can store the cached HTML gzipped to save disk
1349 * space. Pages will then also be served compressed to clients that support it.
1350 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1351 * the default LocalSettings.php! If you enable this, remove that setting first.
1352 *
1353 * Requires zlib support enabled in PHP.
1354 */
1355 $wgUseGzip = false;
1356
1357 /** Whether MediaWiki should send an ETag header */
1358 $wgUseETag = false;
1359
1360 # Email notification settings
1361 #
1362
1363 /** For email notification on page changes */
1364 $wgPasswordSender = $wgEmergencyContact;
1365
1366 # true: from page editor if s/he opted-in
1367 # false: Enotif mails appear to come from $wgEmergencyContact
1368 $wgEnotifFromEditor = false;
1369
1370 // TODO move UPO to preferences probably ?
1371 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1372 # If set to false, the corresponding input form on the user preference page is suppressed
1373 # It call this to be a "user-preferences-option (UPO)"
1374 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1375 $wgEnotifWatchlist = false; # UPO
1376 $wgEnotifUserTalk = false; # UPO
1377 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1378 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1379 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1380
1381 # Send a generic mail instead of a personalised mail for each user. This
1382 # always uses UTC as the time zone, and doesn't include the username.
1383 #
1384 # For pages with many users watching, this can significantly reduce mail load.
1385 # Has no effect when using sendmail rather than SMTP;
1386
1387 $wgEnotifImpersonal = false;
1388
1389 # Maximum number of users to mail at once when using impersonal mail. Should
1390 # match the limit on your mail server.
1391 $wgEnotifMaxRecips = 500;
1392
1393 # Send mails via the job queue.
1394 $wgEnotifUseJobQ = false;
1395
1396 /**
1397 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1398 */
1399 $wgUsersNotifiedOnAllChanges = array();
1400
1401 /** Show watching users in recent changes, watchlist and page history views */
1402 $wgRCShowWatchingUsers = false; # UPO
1403 /** Show watching users in Page views */
1404 $wgPageShowWatchingUsers = false;
1405 /** Show the amount of changed characters in recent changes */
1406 $wgRCShowChangedSize = true;
1407
1408 /**
1409 * If the difference between the character counts of the text
1410 * before and after the edit is below that value, the value will be
1411 * highlighted on the RC page.
1412 */
1413 $wgRCChangedSizeThreshold = -500;
1414
1415 /**
1416 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1417 * view for watched pages with new changes */
1418 $wgShowUpdatedMarker = true;
1419
1420 $wgCookieExpiration = 2592000;
1421
1422 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1423 * problems when the user requests two pages within a short period of time. This
1424 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1425 * a grace period.
1426 */
1427 $wgClockSkewFudge = 5;
1428
1429 # Squid-related settings
1430 #
1431
1432 /** Enable/disable Squid */
1433 $wgUseSquid = false;
1434
1435 /** If you run Squid3 with ESI support, enable this (default:false): */
1436 $wgUseESI = false;
1437
1438 /** Internal server name as known to Squid, if different */
1439 # $wgInternalServer = 'http://yourinternal.tld:8000';
1440 $wgInternalServer = $wgServer;
1441
1442 /**
1443 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1444 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1445 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1446 * days
1447 */
1448 $wgSquidMaxage = 18000;
1449
1450 /**
1451 * Default maximum age for raw CSS/JS accesses
1452 */
1453 $wgForcedRawSMaxage = 300;
1454
1455 /**
1456 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1457 *
1458 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1459 * headers sent/modified from these proxies when obtaining the remote IP address
1460 *
1461 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1462 */
1463 $wgSquidServers = array();
1464
1465 /**
1466 * As above, except these servers aren't purged on page changes; use to set a
1467 * list of trusted proxies, etc.
1468 */
1469 $wgSquidServersNoPurge = array();
1470
1471 /** Maximum number of titles to purge in any one client operation */
1472 $wgMaxSquidPurgeTitles = 400;
1473
1474 /** HTCP multicast purging */
1475 $wgHTCPPort = 4827;
1476 $wgHTCPMulticastTTL = 1;
1477 # $wgHTCPMulticastAddress = "224.0.0.85";
1478 $wgHTCPMulticastAddress = false;
1479
1480 # Cookie settings:
1481 #
1482 /**
1483 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1484 * or ".any.subdomain.net"
1485 */
1486 $wgCookieDomain = '';
1487 $wgCookiePath = '/';
1488 $wgCookieSecure = ($wgProto == 'https');
1489 $wgDisableCookieCheck = false;
1490
1491 /**
1492 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
1493 * in browsers that support this feature. This can mitigates some classes of
1494 * XSS attack.
1495 *
1496 * Only supported on PHP 5.2 or higher.
1497 */
1498 $wgCookieHttpOnly = version_compare("5.2", PHP_VERSION, "<");
1499
1500 /**
1501 * If the requesting browser matches a regex in this blacklist, we won't
1502 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
1503 */
1504 $wgHttpOnlyBlacklist = array(
1505 // Internet Explorer for Mac; sometimes the cookies work, sometimes
1506 // they don't. It's difficult to predict, as combinations of path
1507 // and expiration options affect its parsing.
1508 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
1509 );
1510
1511 /** A list of cookies that vary the cache (for use by extensions) */
1512 $wgCacheVaryCookies = array();
1513
1514 /** Override to customise the session name */
1515 $wgSessionName = false;
1516
1517 /** Whether to allow inline image pointing to other websites */
1518 $wgAllowExternalImages = false;
1519
1520 /** If the above is false, you can specify an exception here. Image URLs
1521 * that start with this string are then rendered, while all others are not.
1522 * You can use this to set up a trusted, simple repository of images.
1523 *
1524 * Example:
1525 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1526 */
1527 $wgAllowExternalImagesFrom = '';
1528
1529 /** Disable database-intensive features */
1530 $wgMiserMode = false;
1531 /** Disable all query pages if miser mode is on, not just some */
1532 $wgDisableQueryPages = false;
1533 /** Number of rows to cache in 'querycache' table when miser mode is on */
1534 $wgQueryCacheLimit = 1000;
1535 /** Number of links to a page required before it is deemed "wanted" */
1536 $wgWantedPagesThreshold = 1;
1537 /** Enable slow parser functions */
1538 $wgAllowSlowParserFunctions = false;
1539
1540 /**
1541 * Maps jobs to their handling classes; extensions
1542 * can add to this to provide custom jobs
1543 */
1544 $wgJobClasses = array(
1545 'refreshLinks' => 'RefreshLinksJob',
1546 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1547 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1548 'sendMail' => 'EmaillingJob',
1549 'enotifNotify' => 'EnotifNotifyJob',
1550 );
1551
1552 /**
1553 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1554 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1555 * (ImageMagick) installed and available in the PATH.
1556 * Please see math/README for more information.
1557 */
1558 $wgUseTeX = false;
1559 /** Location of the texvc binary */
1560 $wgTexvc = './math/texvc';
1561
1562 #
1563 # Profiling / debugging
1564 #
1565 # You have to create a 'profiling' table in your database before using
1566 # profiling see maintenance/archives/patch-profiling.sql .
1567 #
1568 # To enable profiling, edit StartProfiler.php
1569
1570 /** Only record profiling info for pages that took longer than this */
1571 $wgProfileLimit = 0.0;
1572 /** Don't put non-profiling info into log file */
1573 $wgProfileOnly = false;
1574 /** Log sums from profiling into "profiling" table in db. */
1575 $wgProfileToDatabase = false;
1576 /** If true, print a raw call tree instead of per-function report */
1577 $wgProfileCallTree = false;
1578 /** Should application server host be put into profiling table */
1579 $wgProfilePerHost = false;
1580
1581 /** Settings for UDP profiler */
1582 $wgUDPProfilerHost = '127.0.0.1';
1583 $wgUDPProfilerPort = '3811';
1584
1585 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1586 $wgDebugProfiling = false;
1587 /** Output debug message on every wfProfileIn/wfProfileOut */
1588 $wgDebugFunctionEntry = 0;
1589 /** Lots of debugging output from SquidUpdate.php */
1590 $wgDebugSquid = false;
1591
1592 /*
1593 * Destination for wfIncrStats() data...
1594 * 'cache' to go into the system cache, if enabled (memcached)
1595 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
1596 * false to disable
1597 */
1598 $wgStatsMethod = 'cache';
1599
1600 /** Whereas to count the number of time an article is viewed.
1601 * Does not work if pages are cached (for example with squid).
1602 */
1603 $wgDisableCounters = false;
1604
1605 $wgDisableTextSearch = false;
1606 $wgDisableSearchContext = false;
1607
1608 /**
1609 * Template for OpenSearch suggestions, defaults to API action=opensearch
1610 *
1611 * Sites with heavy load would tipically have these point to a custom
1612 * PHP wrapper to avoid firing up mediawiki for every keystroke
1613 *
1614 * Placeholders: {searchTerms}
1615 *
1616 */
1617 $wgOpenSearchTemplate = false;
1618
1619 /**
1620 * Enable suggestions while typing in search boxes
1621 * (results are passed around in OpenSearch format)
1622 */
1623 $wgEnableMWSuggest = false;
1624
1625 /**
1626 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
1627 *
1628 * Placeholders: {searchTerms}, {namespaces}, {dbname}
1629 *
1630 */
1631 $wgMWSuggestTemplate = false;
1632
1633 /**
1634 * If you've disabled search semi-permanently, this also disables updates to the
1635 * table. If you ever re-enable, be sure to rebuild the search table.
1636 */
1637 $wgDisableSearchUpdate = false;
1638 /** Uploads have to be specially set up to be secure */
1639 $wgEnableUploads = false;
1640 /**
1641 * Show EXIF data, on by default if available.
1642 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1643 *
1644 * NOTE FOR WINDOWS USERS:
1645 * To enable EXIF functions, add the folloing lines to the
1646 * "Windows extensions" section of php.ini:
1647 *
1648 * extension=extensions/php_mbstring.dll
1649 * extension=extensions/php_exif.dll
1650 */
1651 $wgShowEXIF = function_exists( 'exif_read_data' );
1652
1653 /**
1654 * Set to true to enable the upload _link_ while local uploads are disabled.
1655 * Assumes that the special page link will be bounced to another server where
1656 * uploads do work.
1657 */
1658 $wgRemoteUploads = false;
1659 $wgDisableAnonTalk = false;
1660 /**
1661 * Do DELETE/INSERT for link updates instead of incremental
1662 */
1663 $wgUseDumbLinkUpdate = false;
1664
1665 /**
1666 * Anti-lock flags - bitfield
1667 * ALF_PRELOAD_LINKS
1668 * Preload links during link update for save
1669 * ALF_PRELOAD_EXISTENCE
1670 * Preload cur_id during replaceLinkHolders
1671 * ALF_NO_LINK_LOCK
1672 * Don't use locking reads when updating the link table. This is
1673 * necessary for wikis with a high edit rate for performance
1674 * reasons, but may cause link table inconsistency
1675 * ALF_NO_BLOCK_LOCK
1676 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1677 * wikis.
1678 */
1679 $wgAntiLockFlags = 0;
1680
1681 /**
1682 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1683 * fall back to the old behaviour (no merging).
1684 */
1685 $wgDiff3 = '/usr/bin/diff3';
1686
1687 /**
1688 * We can also compress text stored in the 'text' table. If this is set on, new
1689 * revisions will be compressed on page save if zlib support is available. Any
1690 * compressed revisions will be decompressed on load regardless of this setting
1691 * *but will not be readable at all* if zlib support is not available.
1692 */
1693 $wgCompressRevisions = false;
1694
1695 /**
1696 * This is the list of preferred extensions for uploading files. Uploading files
1697 * with extensions not in this list will trigger a warning.
1698 */
1699 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1700
1701 /** Files with these extensions will never be allowed as uploads. */
1702 $wgFileBlacklist = array(
1703 # HTML may contain cookie-stealing JavaScript and web bugs
1704 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
1705 # PHP scripts may execute arbitrary code on the server
1706 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1707 # Other types that may be interpreted by some servers
1708 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1709 # May contain harmful executables for Windows victims
1710 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1711
1712 /** Files with these mime types will never be allowed as uploads
1713 * if $wgVerifyMimeType is enabled.
1714 */
1715 $wgMimeTypeBlacklist= array(
1716 # HTML may contain cookie-stealing JavaScript and web bugs
1717 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1718 # PHP scripts may execute arbitrary code on the server
1719 'application/x-php', 'text/x-php',
1720 # Other types that may be interpreted by some servers
1721 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1722 # Windows metafile, client-side vulnerability on some systems
1723 'application/x-msmetafile'
1724 );
1725
1726 /** This is a flag to determine whether or not to check file extensions on upload. */
1727 $wgCheckFileExtensions = true;
1728
1729 /**
1730 * If this is turned off, users may override the warning for files not covered
1731 * by $wgFileExtensions.
1732 */
1733 $wgStrictFileExtensions = true;
1734
1735 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
1736 $wgUploadSizeWarning = false;
1737
1738 /** For compatibility with old installations set to false */
1739 $wgPasswordSalt = true;
1740
1741 /** Which namespaces should support subpages?
1742 * See Language.php for a list of namespaces.
1743 */
1744 $wgNamespacesWithSubpages = array(
1745 NS_TALK => true,
1746 NS_USER => true,
1747 NS_USER_TALK => true,
1748 NS_PROJECT_TALK => true,
1749 NS_IMAGE_TALK => true,
1750 NS_MEDIAWIKI_TALK => true,
1751 NS_TEMPLATE_TALK => true,
1752 NS_HELP_TALK => true,
1753 NS_CATEGORY_TALK => true
1754 );
1755
1756 $wgNamespacesToBeSearchedDefault = array(
1757 NS_MAIN => true,
1758 );
1759
1760 /**
1761 * Site notice shown at the top of each page
1762 *
1763 * This message can contain wiki text, and can also be set through the
1764 * MediaWiki:Sitenotice page. You can also provide a separate message for
1765 * logged-out users using the MediaWiki:Anonnotice page.
1766 */
1767 $wgSiteNotice = '';
1768
1769 #
1770 # Images settings
1771 #
1772
1773 /**
1774 * Plugins for media file type handling.
1775 * Each entry in the array maps a MIME type to a class name
1776 */
1777 $wgMediaHandlers = array(
1778 'image/jpeg' => 'BitmapHandler',
1779 'image/png' => 'BitmapHandler',
1780 'image/gif' => 'BitmapHandler',
1781 'image/x-ms-bmp' => 'BmpHandler',
1782 'image/x-bmp' => 'BmpHandler',
1783 'image/svg+xml' => 'SvgHandler', // official
1784 'image/svg' => 'SvgHandler', // compat
1785 'image/vnd.djvu' => 'DjVuHandler', // official
1786 'image/x.djvu' => 'DjVuHandler', // compat
1787 'image/x-djvu' => 'DjVuHandler', // compat
1788 );
1789
1790
1791 /**
1792 * Resizing can be done using PHP's internal image libraries or using
1793 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1794 * These support more file formats than PHP, which only supports PNG,
1795 * GIF, JPG, XBM and WBMP.
1796 *
1797 * Use Image Magick instead of PHP builtin functions.
1798 */
1799 $wgUseImageMagick = false;
1800 /** The convert command shipped with ImageMagick */
1801 $wgImageMagickConvertCommand = '/usr/bin/convert';
1802
1803 /** Sharpening parameter to ImageMagick */
1804 $wgSharpenParameter = '0x0.4';
1805
1806 /** Reduction in linear dimensions below which sharpening will be enabled */
1807 $wgSharpenReductionThreshold = 0.85;
1808
1809 /**
1810 * Use another resizing converter, e.g. GraphicMagick
1811 * %s will be replaced with the source path, %d with the destination
1812 * %w and %h will be replaced with the width and height
1813 *
1814 * An example is provided for GraphicMagick
1815 * Leave as false to skip this
1816 */
1817 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1818 $wgCustomConvertCommand = false;
1819
1820 # Scalable Vector Graphics (SVG) may be uploaded as images.
1821 # Since SVG support is not yet standard in browsers, it is
1822 # necessary to rasterize SVGs to PNG as a fallback format.
1823 #
1824 # An external program is required to perform this conversion:
1825 $wgSVGConverters = array(
1826 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1827 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1828 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1829 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1830 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1831 );
1832 /** Pick one of the above */
1833 $wgSVGConverter = 'ImageMagick';
1834 /** If not in the executable PATH, specify */
1835 $wgSVGConverterPath = '';
1836 /** Don't scale a SVG larger than this */
1837 $wgSVGMaxSize = 2048;
1838 /**
1839 * Don't thumbnail an image if it will use too much working memory
1840 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1841 * 12.5 million pixels or 3500x3500
1842 */
1843 $wgMaxImageArea = 1.25e7;
1844 /**
1845 * If rendered thumbnail files are older than this timestamp, they
1846 * will be rerendered on demand as if the file didn't already exist.
1847 * Update if there is some need to force thumbs and SVG rasterizations
1848 * to rerender, such as fixes to rendering bugs.
1849 */
1850 $wgThumbnailEpoch = '20030516000000';
1851
1852 /**
1853 * If set, inline scaled images will still produce <img> tags ready for
1854 * output instead of showing an error message.
1855 *
1856 * This may be useful if errors are transitory, especially if the site
1857 * is configured to automatically render thumbnails on request.
1858 *
1859 * On the other hand, it may obscure error conditions from debugging.
1860 * Enable the debug log or the 'thumbnail' log group to make sure errors
1861 * are logged to a file for review.
1862 */
1863 $wgIgnoreImageErrors = false;
1864
1865 /**
1866 * Allow thumbnail rendering on page view. If this is false, a valid
1867 * thumbnail URL is still output, but no file will be created at
1868 * the target location. This may save some time if you have a
1869 * thumb.php or 404 handler set up which is faster than the regular
1870 * webserver(s).
1871 */
1872 $wgGenerateThumbnailOnParse = true;
1873
1874 /** Obsolete, always true, kept for compatibility with extensions */
1875 $wgUseImageResize = true;
1876
1877
1878 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1879 if( !isset( $wgCommandLineMode ) ) {
1880 $wgCommandLineMode = false;
1881 }
1882
1883 /** For colorized maintenance script output, is your terminal background dark ? */
1884 $wgCommandLineDarkBg = false;
1885
1886 #
1887 # Recent changes settings
1888 #
1889
1890 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1891 $wgPutIPinRC = true;
1892
1893 /**
1894 * Recentchanges items are periodically purged; entries older than this many
1895 * seconds will go.
1896 * For one week : 7 * 24 * 3600
1897 */
1898 $wgRCMaxAge = 7 * 24 * 3600;
1899
1900
1901 # Send RC updates via UDP
1902 $wgRC2UDPAddress = false;
1903 $wgRC2UDPPort = false;
1904 $wgRC2UDPPrefix = '';
1905
1906 # Enable user search in Special:Newpages
1907 # This is really a temporary hack around an index install bug on some Wikipedias.
1908 # Kill it once fixed.
1909 $wgEnableNewpagesUserFilter = true;
1910
1911 #
1912 # Copyright and credits settings
1913 #
1914
1915 /** RDF metadata toggles */
1916 $wgEnableDublinCoreRdf = false;
1917 $wgEnableCreativeCommonsRdf = false;
1918
1919 /** Override for copyright metadata.
1920 * TODO: these options need documentation
1921 */
1922 $wgRightsPage = NULL;
1923 $wgRightsUrl = NULL;
1924 $wgRightsText = NULL;
1925 $wgRightsIcon = NULL;
1926
1927 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1928 $wgCopyrightIcon = NULL;
1929
1930 /** Set this to true if you want detailed copyright information forms on Upload. */
1931 $wgUseCopyrightUpload = false;
1932
1933 /** Set this to false if you want to disable checking that detailed copyright
1934 * information values are not empty. */
1935 $wgCheckCopyrightUpload = true;
1936
1937 /**
1938 * Set this to the number of authors that you want to be credited below an
1939 * article text. Set it to zero to hide the attribution block, and a negative
1940 * number (like -1) to show all authors. Note that this will require 2-3 extra
1941 * database hits, which can have a not insignificant impact on performance for
1942 * large wikis.
1943 */
1944 $wgMaxCredits = 0;
1945
1946 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1947 * Otherwise, link to a separate credits page. */
1948 $wgShowCreditsIfMax = true;
1949
1950
1951
1952 /**
1953 * Set this to false to avoid forcing the first letter of links to capitals.
1954 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1955 * appearing with a capital at the beginning of a sentence will *not* go to the
1956 * same place as links in the middle of a sentence using a lowercase initial.
1957 */
1958 $wgCapitalLinks = true;
1959
1960 /**
1961 * List of interwiki prefixes for wikis we'll accept as sources for
1962 * Special:Import (for sysops). Since complete page history can be imported,
1963 * these should be 'trusted'.
1964 *
1965 * If a user has the 'import' permission but not the 'importupload' permission,
1966 * they will only be able to run imports through this transwiki interface.
1967 */
1968 $wgImportSources = array();
1969
1970 /**
1971 * Optional default target namespace for interwiki imports.
1972 * Can use this to create an incoming "transwiki"-style queue.
1973 * Set to numeric key, not the name.
1974 *
1975 * Users may override this in the Special:Import dialog.
1976 */
1977 $wgImportTargetNamespace = null;
1978
1979 /**
1980 * If set to false, disables the full-history option on Special:Export.
1981 * This is currently poorly optimized for long edit histories, so is
1982 * disabled on Wikimedia's sites.
1983 */
1984 $wgExportAllowHistory = true;
1985
1986 /**
1987 * If set nonzero, Special:Export requests for history of pages with
1988 * more revisions than this will be rejected. On some big sites things
1989 * could get bogged down by very very long pages.
1990 */
1991 $wgExportMaxHistory = 0;
1992
1993 $wgExportAllowListContributors = false ;
1994
1995
1996 /** Text matching this regular expression will be recognised as spam
1997 * See http://en.wikipedia.org/wiki/Regular_expression */
1998 $wgSpamRegex = false;
1999 /** Similarly you can get a function to do the job. The function will be given
2000 * the following args:
2001 * - a Title object for the article the edit is made on
2002 * - the text submitted in the textarea (wpTextbox1)
2003 * - the section number.
2004 * The return should be boolean indicating whether the edit matched some evilness:
2005 * - true : block it
2006 * - false : let it through
2007 *
2008 * For a complete example, have a look at the SpamBlacklist extension.
2009 */
2010 $wgFilterCallback = false;
2011
2012 /** Go button goes straight to the edit screen if the article doesn't exist. */
2013 $wgGoToEdit = false;
2014
2015 /** Allow raw, unchecked HTML in <html>...</html> sections.
2016 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
2017 * TO RESTRICT EDITING to only those that you trust
2018 */
2019 $wgRawHtml = false;
2020
2021 /**
2022 * $wgUseTidy: use tidy to make sure HTML output is sane.
2023 * Tidy is a free tool that fixes broken HTML.
2024 * See http://www.w3.org/People/Raggett/tidy/
2025 * $wgTidyBin should be set to the path of the binary and
2026 * $wgTidyConf to the path of the configuration file.
2027 * $wgTidyOpts can include any number of parameters.
2028 *
2029 * $wgTidyInternal controls the use of the PECL extension to use an in-
2030 * process tidy library instead of spawning a separate program.
2031 * Normally you shouldn't need to override the setting except for
2032 * debugging. To install, use 'pear install tidy' and add a line
2033 * 'extension=tidy.so' to php.ini.
2034 */
2035 $wgUseTidy = false;
2036 $wgAlwaysUseTidy = false;
2037 $wgTidyBin = 'tidy';
2038 $wgTidyConf = $IP.'/includes/tidy.conf';
2039 $wgTidyOpts = '';
2040 $wgTidyInternal = extension_loaded( 'tidy' );
2041
2042 /**
2043 * Put tidy warnings in HTML comments
2044 * Only works for internal tidy.
2045 */
2046 $wgDebugTidy = false;
2047
2048 /**
2049 * Validate the overall output using tidy and refuse
2050 * to display the page if it's not valid.
2051 */
2052 $wgValidateAllHtml = false;
2053
2054 /** See list of skins and their symbolic names in languages/Language.php */
2055 $wgDefaultSkin = 'monobook';
2056
2057 /**
2058 * Settings added to this array will override the default globals for the user
2059 * preferences used by anonymous visitors and newly created accounts.
2060 * For instance, to disable section editing links:
2061 * $wgDefaultUserOptions ['editsection'] = 0;
2062 *
2063 */
2064 $wgDefaultUserOptions = array(
2065 'quickbar' => 1,
2066 'underline' => 2,
2067 'cols' => 80,
2068 'rows' => 25,
2069 'searchlimit' => 20,
2070 'contextlines' => 5,
2071 'contextchars' => 50,
2072 'disablesuggest' => 0,
2073 'ajaxsearch' => 0,
2074 'skin' => false,
2075 'math' => 1,
2076 'usenewrc' => 0,
2077 'rcdays' => 7,
2078 'rclimit' => 50,
2079 'wllimit' => 250,
2080 'hideminor' => 0,
2081 'highlightbroken' => 1,
2082 'stubthreshold' => 0,
2083 'previewontop' => 1,
2084 'previewonfirst' => 0,
2085 'editsection' => 1,
2086 'editsectiononrightclick' => 0,
2087 'editondblclick' => 0,
2088 'editwidth' => 0,
2089 'showtoc' => 1,
2090 'showtoolbar' => 1,
2091 'minordefault' => 0,
2092 'date' => 'default',
2093 'imagesize' => 2,
2094 'thumbsize' => 2,
2095 'rememberpassword' => 0,
2096 'enotifwatchlistpages' => 0,
2097 'enotifusertalkpages' => 1,
2098 'enotifminoredits' => 0,
2099 'enotifrevealaddr' => 0,
2100 'shownumberswatching' => 1,
2101 'fancysig' => 0,
2102 'externaleditor' => 0,
2103 'externaldiff' => 0,
2104 'showjumplinks' => 1,
2105 'numberheadings' => 0,
2106 'uselivepreview' => 0,
2107 'watchlistdays' => 3.0,
2108 'extendwatchlist' => 0,
2109 'watchlisthideminor' => 0,
2110 'watchlisthidebots' => 0,
2111 'watchlisthideown' => 0,
2112 'watchcreations' => 0,
2113 'watchdefault' => 0,
2114 'watchmoves' => 0,
2115 'watchdeletion' => 0,
2116 );
2117
2118 /** Whether or not to allow and use real name fields. Defaults to true. */
2119 $wgAllowRealName = true;
2120
2121 /*****************************************************************************
2122 * Extensions
2123 */
2124
2125 /**
2126 * A list of callback functions which are called once MediaWiki is fully initialised
2127 */
2128 $wgExtensionFunctions = array();
2129
2130 /**
2131 * Extension functions for initialisation of skins. This is called somewhat earlier
2132 * than $wgExtensionFunctions.
2133 */
2134 $wgSkinExtensionFunctions = array();
2135
2136 /**
2137 * Extension messages files
2138 * Associative array mapping extension name to the filename where messages can be found.
2139 * The file must create a variable called $messages.
2140 * When the messages are needed, the extension should call wfLoadExtensionMessages().
2141 *
2142 * Example:
2143 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
2144 *
2145 */
2146 $wgExtensionMessagesFiles = array();
2147
2148 /**
2149 * Parser output hooks.
2150 * This is an associative array where the key is an extension-defined tag
2151 * (typically the extension name), and the value is a PHP callback.
2152 * These will be called as an OutputPageParserOutput hook, if the relevant
2153 * tag has been registered with the parser output object.
2154 *
2155 * Registration is done with $pout->addOutputHook( $tag, $data ).
2156 *
2157 * The callback has the form:
2158 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
2159 */
2160 $wgParserOutputHooks = array();
2161
2162 /**
2163 * List of valid skin names.
2164 * The key should be the name in all lower case, the value should be a display name.
2165 * The default skins will be added later, by Skin::getSkinNames(). Use
2166 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
2167 */
2168 $wgValidSkinNames = array();
2169
2170 /**
2171 * Special page list.
2172 * See the top of SpecialPage.php for documentation.
2173 */
2174 $wgSpecialPages = array();
2175
2176 /**
2177 * Array mapping class names to filenames, for autoloading.
2178 */
2179 $wgAutoloadClasses = array();
2180
2181 /**
2182 * An array of extension types and inside that their names, versions, authors,
2183 * urls, descriptions and pointers to localized description msgs. Note that
2184 * the version, url, description and descriptionmsg key can be omitted.
2185 *
2186 * <code>
2187 * $wgExtensionCredits[$type][] = array(
2188 * 'name' => 'Example extension',
2189 * 'version' => 1.9,
2190 * 'author' => 'Foo Barstein',
2191 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2192 * 'description' => 'An example extension',
2193 * 'descriptionmsg' => 'exampleextension-desc',
2194 * );
2195 * </code>
2196 *
2197 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
2198 */
2199 $wgExtensionCredits = array();
2200 /*
2201 * end extensions
2202 ******************************************************************************/
2203
2204 /**
2205 * Allow user Javascript page?
2206 * This enables a lot of neat customizations, but may
2207 * increase security risk to users and server load.
2208 */
2209 $wgAllowUserJs = false;
2210
2211 /**
2212 * Allow user Cascading Style Sheets (CSS)?
2213 * This enables a lot of neat customizations, but may
2214 * increase security risk to users and server load.
2215 */
2216 $wgAllowUserCss = false;
2217
2218 /** Use the site's Javascript page? */
2219 $wgUseSiteJs = true;
2220
2221 /** Use the site's Cascading Style Sheets (CSS)? */
2222 $wgUseSiteCss = true;
2223
2224 /** Filter for Special:Randompage. Part of a WHERE clause */
2225 $wgExtraRandompageSQL = false;
2226
2227 /** Allow the "info" action, very inefficient at the moment */
2228 $wgAllowPageInfo = false;
2229
2230 /** Maximum indent level of toc. */
2231 $wgMaxTocLevel = 999;
2232
2233 /** Name of the external diff engine to use */
2234 $wgExternalDiffEngine = false;
2235
2236 /** Use RC Patrolling to check for vandalism */
2237 $wgUseRCPatrol = true;
2238
2239 /** Use new page patrolling to check new pages on Special:Newpages */
2240 $wgUseNPPatrol = true;
2241
2242 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
2243 $wgFeed = true;
2244
2245 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2246 * eg Recentchanges, Newpages. */
2247 $wgFeedLimit = 50;
2248
2249 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2250 * A cached version will continue to be served out even if changes
2251 * are made, until this many seconds runs out since the last render.
2252 *
2253 * If set to 0, feed caching is disabled. Use this for debugging only;
2254 * feed generation can be pretty slow with diffs.
2255 */
2256 $wgFeedCacheTimeout = 60;
2257
2258 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2259 * pages larger than this size. */
2260 $wgFeedDiffCutoff = 32768;
2261
2262
2263 /**
2264 * Additional namespaces. If the namespaces defined in Language.php and
2265 * Namespace.php are insufficient, you can create new ones here, for example,
2266 * to import Help files in other languages.
2267 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2268 * no longer be accessible. If you rename it, then you can access them through
2269 * the new namespace name.
2270 *
2271 * Custom namespaces should start at 100 to avoid conflicting with standard
2272 * namespaces, and should always follow the even/odd main/talk pattern.
2273 */
2274 #$wgExtraNamespaces =
2275 # array(100 => "Hilfe",
2276 # 101 => "Hilfe_Diskussion",
2277 # 102 => "Aide",
2278 # 103 => "Discussion_Aide"
2279 # );
2280 $wgExtraNamespaces = NULL;
2281
2282 /**
2283 * Namespace aliases
2284 * These are alternate names for the primary localised namespace names, which
2285 * are defined by $wgExtraNamespaces and the language file. If a page is
2286 * requested with such a prefix, the request will be redirected to the primary
2287 * name.
2288 *
2289 * Set this to a map from namespace names to IDs.
2290 * Example:
2291 * $wgNamespaceAliases = array(
2292 * 'Wikipedian' => NS_USER,
2293 * 'Help' => 100,
2294 * );
2295 */
2296 $wgNamespaceAliases = array();
2297
2298 /**
2299 * Limit images on image description pages to a user-selectable limit. In order
2300 * to reduce disk usage, limits can only be selected from a list.
2301 * The user preference is saved as an array offset in the database, by default
2302 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2303 * change it if you alter the array (see bug 8858).
2304 * This is the list of settings the user can choose from:
2305 */
2306 $wgImageLimits = array (
2307 array(320,240),
2308 array(640,480),
2309 array(800,600),
2310 array(1024,768),
2311 array(1280,1024),
2312 array(10000,10000) );
2313
2314 /**
2315 * Adjust thumbnails on image pages according to a user setting. In order to
2316 * reduce disk usage, the values can only be selected from a list. This is the
2317 * list of settings the user can choose from:
2318 */
2319 $wgThumbLimits = array(
2320 120,
2321 150,
2322 180,
2323 200,
2324 250,
2325 300
2326 );
2327
2328 /**
2329 * Adjust width of upright images when parameter 'upright' is used
2330 * This allows a nicer look for upright images without the need to fix the width
2331 * by hardcoded px in wiki sourcecode.
2332 */
2333 $wgThumbUpright = 0.75;
2334
2335 /**
2336 * On category pages, show thumbnail gallery for images belonging to that
2337 * category instead of listing them as articles.
2338 */
2339 $wgCategoryMagicGallery = true;
2340
2341 /**
2342 * Paging limit for categories
2343 */
2344 $wgCategoryPagingLimit = 200;
2345
2346 /**
2347 * Browser Blacklist for unicode non compliant browsers
2348 * Contains a list of regexps : "/regexp/" matching problematic browsers
2349 */
2350 $wgBrowserBlackList = array(
2351 /**
2352 * Netscape 2-4 detection
2353 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2354 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2355 * with a negative assertion. The [UIN] identifier specifies the level of security
2356 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2357 * The language string is unreliable, it is missing on NS4 Mac.
2358 *
2359 * Reference: http://www.psychedelix.com/agents/index.shtml
2360 */
2361 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2362 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2363 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2364
2365 /**
2366 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2367 *
2368 * Known useragents:
2369 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2370 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2371 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2372 * - [...]
2373 *
2374 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2375 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2376 */
2377 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2378
2379 /**
2380 * Google wireless transcoder, seems to eat a lot of chars alive
2381 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2382 */
2383 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2384 );
2385
2386 /**
2387 * Fake out the timezone that the server thinks it's in. This will be used for
2388 * date display and not for what's stored in the DB. Leave to null to retain
2389 * your server's OS-based timezone value. This is the same as the timezone.
2390 *
2391 * This variable is currently used ONLY for signature formatting, not for
2392 * anything else.
2393 */
2394 # $wgLocaltimezone = 'GMT';
2395 # $wgLocaltimezone = 'PST8PDT';
2396 # $wgLocaltimezone = 'Europe/Sweden';
2397 # $wgLocaltimezone = 'CET';
2398 $wgLocaltimezone = null;
2399
2400 /**
2401 * Set an offset from UTC in minutes to use for the default timezone setting
2402 * for anonymous users and new user accounts.
2403 *
2404 * This setting is used for most date/time displays in the software, and is
2405 * overrideable in user preferences. It is *not* used for signature timestamps.
2406 *
2407 * You can set it to match the configured server timezone like this:
2408 * $wgLocalTZoffset = date("Z") / 60;
2409 *
2410 * If your server is not configured for the timezone you want, you can set
2411 * this in conjunction with the signature timezone and override the TZ
2412 * environment variable like so:
2413 * $wgLocaltimezone="Europe/Berlin";
2414 * putenv("TZ=$wgLocaltimezone");
2415 * $wgLocalTZoffset = date("Z") / 60;
2416 *
2417 * Leave at NULL to show times in universal time (UTC/GMT).
2418 */
2419 $wgLocalTZoffset = null;
2420
2421
2422 /**
2423 * When translating messages with wfMsg(), it is not always clear what should be
2424 * considered UI messages and what shoud be content messages.
2425 *
2426 * For example, for regular wikipedia site like en, there should be only one
2427 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2428 * it as content of the site and call wfMsgForContent(), while for rendering the
2429 * text of the link, we call wfMsg(). The code in default behaves this way.
2430 * However, sites like common do offer different versions of 'mainpage' and the
2431 * like for different languages. This array provides a way to override the
2432 * default behavior. For example, to allow language specific mainpage and
2433 * community portal, set
2434 *
2435 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2436 */
2437 $wgForceUIMsgAsContentMsg = array();
2438
2439
2440 /**
2441 * Authentication plugin.
2442 */
2443 $wgAuth = null;
2444
2445 /**
2446 * Global list of hooks.
2447 * Add a hook by doing:
2448 * $wgHooks['event_name'][] = $function;
2449 * or:
2450 * $wgHooks['event_name'][] = array($function, $data);
2451 * or:
2452 * $wgHooks['event_name'][] = array($object, 'method');
2453 */
2454 $wgHooks = array();
2455
2456 /**
2457 * The logging system has two levels: an event type, which describes the
2458 * general category and can be viewed as a named subset of all logs; and
2459 * an action, which is a specific kind of event that can exist in that
2460 * log type.
2461 */
2462 $wgLogTypes = array( '',
2463 'block',
2464 'protect',
2465 'rights',
2466 'delete',
2467 'upload',
2468 'move',
2469 'import',
2470 'patrol',
2471 'merge',
2472 'suppress',
2473 );
2474
2475 /**
2476 * This restricts log access to those who have a certain right
2477 * Users without this will not see it in the option menu and can not view it
2478 * Restricted logs are not added to recent changes
2479 * Logs should remain non-transcludable
2480 */
2481 $wgLogRestrictions = array(
2482 'suppress' => 'suppress'
2483 );
2484
2485 /**
2486 * Lists the message key string for each log type. The localized messages
2487 * will be listed in the user interface.
2488 *
2489 * Extensions with custom log types may add to this array.
2490 */
2491 $wgLogNames = array(
2492 '' => 'all-logs-page',
2493 'block' => 'blocklogpage',
2494 'protect' => 'protectlogpage',
2495 'rights' => 'rightslog',
2496 'delete' => 'dellogpage',
2497 'upload' => 'uploadlogpage',
2498 'move' => 'movelogpage',
2499 'import' => 'importlogpage',
2500 'patrol' => 'patrol-log-page',
2501 'merge' => 'mergelog',
2502 'suppress' => 'suppressionlog',
2503 );
2504
2505 /**
2506 * Lists the message key string for descriptive text to be shown at the
2507 * top of each log type.
2508 *
2509 * Extensions with custom log types may add to this array.
2510 */
2511 $wgLogHeaders = array(
2512 '' => 'alllogstext',
2513 'block' => 'blocklogtext',
2514 'protect' => 'protectlogtext',
2515 'rights' => 'rightslogtext',
2516 'delete' => 'dellogpagetext',
2517 'upload' => 'uploadlogpagetext',
2518 'move' => 'movelogpagetext',
2519 'import' => 'importlogpagetext',
2520 'patrol' => 'patrol-log-header',
2521 'merge' => 'mergelogpagetext',
2522 'suppress' => 'suppressionlogtext',
2523 );
2524
2525 /**
2526 * Lists the message key string for formatting individual events of each
2527 * type and action when listed in the logs.
2528 *
2529 * Extensions with custom log types may add to this array.
2530 */
2531 $wgLogActions = array(
2532 'block/block' => 'blocklogentry',
2533 'block/unblock' => 'unblocklogentry',
2534 'protect/protect' => 'protectedarticle',
2535 'protect/modify' => 'modifiedarticleprotection',
2536 'protect/unprotect' => 'unprotectedarticle',
2537 'rights/rights' => 'rightslogentry',
2538 'delete/delete' => 'deletedarticle',
2539 'delete/restore' => 'undeletedarticle',
2540 'delete/revision' => 'revdelete-logentry',
2541 'delete/event' => 'logdelete-logentry',
2542 'upload/upload' => 'uploadedimage',
2543 'upload/overwrite' => 'overwroteimage',
2544 'upload/revert' => 'uploadedimage',
2545 'move/move' => '1movedto2',
2546 'move/move_redir' => '1movedto2_redir',
2547 'import/upload' => 'import-logentry-upload',
2548 'import/interwiki' => 'import-logentry-interwiki',
2549 'merge/merge' => 'pagemerge-logentry',
2550 'suppress/revision' => 'revdelete-logentry',
2551 'suppress/file' => 'revdelete-logentry',
2552 'suppress/event' => 'logdelete-logentry',
2553 'suppress/delete' => 'suppressedarticle',
2554 'suppress/block' => 'blocklogentry',
2555 );
2556
2557 /**
2558 * List of special pages, followed by what subtitle they should go under
2559 * at Special:SpecialPages
2560 */
2561 $wgSpecialPageGroups = array(
2562 'DoubleRedirects' => 'maintenance',
2563 'BrokenRedirects' => 'maintenance',
2564 'Lonelypages' => 'maintenance',
2565 'Uncategorizedpages' => 'maintenance',
2566 'Uncategorizedcategories' => 'maintenance',
2567 'Uncategorizedimages' => 'maintenance',
2568 'Uncategorizedtemplates' => 'maintenance',
2569 'Unusedcategories' => 'maintenance',
2570 'Unusedimages' => 'maintenance',
2571 'Protectedpages' => 'maintenance',
2572 'Protectedtitles' => 'maintenance',
2573 'Unusedtemplates' => 'maintenance',
2574 'Withoutinterwiki' => 'maintenance',
2575 'Longpages' => 'maintenance',
2576
2577 'Userlogin' => 'login',
2578 'Userlogout' => 'login',
2579 'CreateAccount' => 'login',
2580
2581 'Recentchanges' => 'changes',
2582 'Recentchangeslinked' => 'changes',
2583 'Watchlist' => 'changes',
2584 'Newimages' => 'changes',
2585 'Newpages' => 'changes',
2586 'Log' => 'changes',
2587
2588 'Upload' => 'media',
2589 'Imagelist' => 'media',
2590 'MIMEsearch' => 'media',
2591 'FileDuplicateSearch' => 'media',
2592 'Filepath' => 'media',
2593
2594 'Listusers' => 'users',
2595 'Listgrouprights' => 'users',
2596 'Ipblocklist' => 'users',
2597 'Contributions' => 'users',
2598 'Emailuser' => 'users',
2599 'Listadmins' => 'users',
2600 'Listbots' => 'users',
2601
2602 'Wantedpages' => 'needy',
2603 'Wantedcategories' => 'needy',
2604 'Shortpages' => 'needy',
2605 'Ancientpages' => 'needy',
2606 'Deadendpages' => 'needy',
2607
2608 'Mostlinked' => 'highuse',
2609 'Mostlinkedcategories' => 'highuse',
2610 'Mostlinkedtemplates' => 'highuse',
2611 'Mostcategories' => 'highuse',
2612 'Mostimages' => 'highuse',
2613 'Mostrevisions' => 'highuse',
2614
2615 'Userrights' => 'permissions',
2616 'Blockip' => 'permissions',
2617
2618 'Statistics' => 'other',
2619 'Fewestrevisions' => 'other',
2620 'Randompage' => 'other',
2621 'Disambiguations' => 'other',
2622 'Specialpages' => 'other',
2623 'Blockme' => 'other',
2624 'Movepage' => 'other',
2625 'MergeHistory' => 'other',
2626 'Lockdb' => 'other',
2627 'Unlockdb' => 'other',
2628 'Version' => 'other',
2629 'Whatlinkshere' => 'other',
2630 'Booksources' => 'other',
2631 'Revisiondelete' => 'other',
2632 'Export' => 'other',
2633 'Categories' => 'other',
2634 'Undelete' => 'other',
2635 'Import' => 'other',
2636 'Unwatchedpages' => 'other',
2637 'Randomredirect' => 'other',
2638 'Allpages' => 'other',
2639 'Allmessages' => 'other',
2640 'Prefixindex' => 'other',
2641 'Listredirects' => 'other',
2642 'Preferences' => 'other',
2643 'Resetpass' => 'other',
2644 'Mypage' => 'other',
2645 'Mytalk' => 'other',
2646 'Mycontributions' => 'other',
2647 );
2648
2649 /**
2650 * Experimental preview feature to fetch rendered text
2651 * over an XMLHttpRequest from JavaScript instead of
2652 * forcing a submit and reload of the whole page.
2653 * Leave disabled unless you're testing it.
2654 */
2655 $wgLivePreview = false;
2656
2657 /**
2658 * Disable the internal MySQL-based search, to allow it to be
2659 * implemented by an extension instead.
2660 */
2661 $wgDisableInternalSearch = false;
2662
2663 /**
2664 * Set this to a URL to forward search requests to some external location.
2665 * If the URL includes '$1', this will be replaced with the URL-encoded
2666 * search term.
2667 *
2668 * For example, to forward to Google you'd have something like:
2669 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2670 * '&domains=http://example.com' .
2671 * '&sitesearch=http://example.com' .
2672 * '&ie=utf-8&oe=utf-8';
2673 */
2674 $wgSearchForwardUrl = null;
2675
2676 /**
2677 * If true, external URL links in wiki text will be given the
2678 * rel="nofollow" attribute as a hint to search engines that
2679 * they should not be followed for ranking purposes as they
2680 * are user-supplied and thus subject to spamming.
2681 */
2682 $wgNoFollowLinks = true;
2683
2684 /**
2685 * Namespaces in which $wgNoFollowLinks doesn't apply.
2686 * See Language.php for a list of namespaces.
2687 */
2688 $wgNoFollowNsExceptions = array();
2689
2690 /**
2691 * Default robot policy.
2692 * The default policy is to encourage indexing and following of links.
2693 * It may be overridden on a per-namespace and/or per-page basis.
2694 */
2695 $wgDefaultRobotPolicy = 'index,follow';
2696
2697 /**
2698 * Robot policies per namespaces.
2699 * The default policy is given above, the array is made of namespace
2700 * constants as defined in includes/Defines.php
2701 * Example:
2702 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2703 */
2704 $wgNamespaceRobotPolicies = array();
2705
2706 /**
2707 * Robot policies per article.
2708 * These override the per-namespace robot policies.
2709 * Must be in the form of an array where the key part is a properly
2710 * canonicalised text form title and the value is a robot policy.
2711 * Example:
2712 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex' );
2713 */
2714 $wgArticleRobotPolicies = array();
2715
2716 /**
2717 * Specifies the minimal length of a user password. If set to
2718 * 0, empty passwords are allowed.
2719 */
2720 $wgMinimalPasswordLength = 0;
2721
2722 /**
2723 * Activate external editor interface for files and pages
2724 * See http://meta.wikimedia.org/wiki/Help:External_editors
2725 */
2726 $wgUseExternalEditor = true;
2727
2728 /** Whether or not to sort special pages in Special:Specialpages */
2729
2730 $wgSortSpecialPages = true;
2731
2732 /**
2733 * Specify the name of a skin that should not be presented in the
2734 * list of available skins.
2735 * Use for blacklisting a skin which you do not want to remove
2736 * from the .../skins/ directory
2737 */
2738 $wgSkipSkin = '';
2739 $wgSkipSkins = array(); # More of the same
2740
2741 /**
2742 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2743 */
2744 $wgDisabledActions = array();
2745
2746 /**
2747 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2748 */
2749 $wgDisableHardRedirects = false;
2750
2751 /**
2752 * Use http.dnsbl.sorbs.net to check for open proxies
2753 */
2754 $wgEnableSorbs = false;
2755 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2756
2757 /**
2758 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2759 * methods might say
2760 */
2761 $wgProxyWhitelist = array();
2762
2763 /**
2764 * Simple rate limiter options to brake edit floods.
2765 * Maximum number actions allowed in the given number of seconds;
2766 * after that the violating client receives HTTP 500 error pages
2767 * until the period elapses.
2768 *
2769 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2770 *
2771 * This option set is experimental and likely to change.
2772 * Requires memcached.
2773 */
2774 $wgRateLimits = array(
2775 'edit' => array(
2776 'anon' => null, // for any and all anonymous edits (aggregate)
2777 'user' => null, // for each logged-in user
2778 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
2779 'ip' => null, // for each anon and recent account
2780 'subnet' => null, // ... with final octet removed
2781 ),
2782 'move' => array(
2783 'user' => null,
2784 'newbie' => null,
2785 'ip' => null,
2786 'subnet' => null,
2787 ),
2788 'mailpassword' => array(
2789 'anon' => NULL,
2790 ),
2791 'emailuser' => array(
2792 'user' => null,
2793 ),
2794 );
2795
2796 /**
2797 * Set to a filename to log rate limiter hits.
2798 */
2799 $wgRateLimitLog = null;
2800
2801 /**
2802 * Array of groups which should never trigger the rate limiter
2803 */
2804 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2805
2806 /**
2807 * On Special:Unusedimages, consider images "used", if they are put
2808 * into a category. Default (false) is not to count those as used.
2809 */
2810 $wgCountCategorizedImagesAsUsed = false;
2811
2812 /**
2813 * External stores allow including content
2814 * from non database sources following URL links
2815 *
2816 * Short names of ExternalStore classes may be specified in an array here:
2817 * $wgExternalStores = array("http","file","custom")...
2818 *
2819 * CAUTION: Access to database might lead to code execution
2820 */
2821 $wgExternalStores = false;
2822
2823 /**
2824 * An array of external mysql servers, e.g.
2825 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2826 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
2827 */
2828 $wgExternalServers = array();
2829
2830 /**
2831 * The place to put new revisions, false to put them in the local text table.
2832 * Part of a URL, e.g. DB://cluster1
2833 *
2834 * Can be an array instead of a single string, to enable data distribution. Keys
2835 * must be consecutive integers, starting at zero. Example:
2836 *
2837 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2838 *
2839 */
2840 $wgDefaultExternalStore = false;
2841
2842 /**
2843 * Revision text may be cached in $wgMemc to reduce load on external storage
2844 * servers and object extraction overhead for frequently-loaded revisions.
2845 *
2846 * Set to 0 to disable, or number of seconds before cache expiry.
2847 */
2848 $wgRevisionCacheExpiry = 0;
2849
2850 /**
2851 * list of trusted media-types and mime types.
2852 * Use the MEDIATYPE_xxx constants to represent media types.
2853 * This list is used by Image::isSafeFile
2854 *
2855 * Types not listed here will have a warning about unsafe content
2856 * displayed on the images description page. It would also be possible
2857 * to use this for further restrictions, like disabling direct
2858 * [[media:...]] links for non-trusted formats.
2859 */
2860 $wgTrustedMediaFormats= array(
2861 MEDIATYPE_BITMAP, //all bitmap formats
2862 MEDIATYPE_AUDIO, //all audio formats
2863 MEDIATYPE_VIDEO, //all plain video formats
2864 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
2865 "application/pdf", //PDF files
2866 #"application/x-shockwave-flash", //flash/shockwave movie
2867 );
2868
2869 /**
2870 * Allow special page inclusions such as {{Special:Allpages}}
2871 */
2872 $wgAllowSpecialInclusion = true;
2873
2874 /**
2875 * Timeout for HTTP requests done via CURL
2876 */
2877 $wgHTTPTimeout = 3;
2878
2879 /**
2880 * Proxy to use for CURL requests.
2881 */
2882 $wgHTTPProxy = false;
2883
2884 /**
2885 * Enable interwiki transcluding. Only when iw_trans=1.
2886 */
2887 $wgEnableScaryTranscluding = false;
2888 /**
2889 * Expiry time for interwiki transclusion
2890 */
2891 $wgTranscludeCacheExpiry = 3600;
2892
2893 /**
2894 * Support blog-style "trackbacks" for articles. See
2895 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2896 */
2897 $wgUseTrackbacks = false;
2898
2899 /**
2900 * Enable filtering of categories in Recentchanges
2901 */
2902 $wgAllowCategorizedRecentChanges = false ;
2903
2904 /**
2905 * Number of jobs to perform per request. May be less than one in which case
2906 * jobs are performed probabalistically. If this is zero, jobs will not be done
2907 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2908 * be run periodically.
2909 */
2910 $wgJobRunRate = 1;
2911
2912 /**
2913 * Number of rows to update per job
2914 */
2915 $wgUpdateRowsPerJob = 500;
2916
2917 /**
2918 * Number of rows to update per query
2919 */
2920 $wgUpdateRowsPerQuery = 10;
2921
2922 /**
2923 * Enable AJAX framework
2924 */
2925 $wgUseAjax = true;
2926
2927 /**
2928 * Enable auto suggestion for the search bar
2929 * Requires $wgUseAjax to be true too.
2930 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2931 */
2932 $wgAjaxSearch = false;
2933
2934 /**
2935 * List of Ajax-callable functions.
2936 * Extensions acting as Ajax callbacks must register here
2937 */
2938 $wgAjaxExportList = array( );
2939
2940 /**
2941 * Enable watching/unwatching pages using AJAX.
2942 * Requires $wgUseAjax to be true too.
2943 * Causes wfAjaxWatch to be added to $wgAjaxExportList
2944 */
2945 $wgAjaxWatch = true;
2946
2947 /**
2948 * Enable AJAX check for file overwrite, pre-upload
2949 */
2950 $wgAjaxUploadDestCheck = true;
2951
2952 /**
2953 * Enable previewing licences via AJAX
2954 */
2955 $wgAjaxLicensePreview = true;
2956
2957 /**
2958 * Allow DISPLAYTITLE to change title display
2959 */
2960 $wgAllowDisplayTitle = true;
2961
2962 /**
2963 * Array of usernames which may not be registered or logged in from
2964 * Maintenance scripts can still use these
2965 */
2966 $wgReservedUsernames = array(
2967 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
2968 'Conversion script', // Used for the old Wikipedia software upgrade
2969 'Maintenance script', // Maintenance scripts which perform editing, image import script
2970 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
2971 );
2972
2973 /**
2974 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
2975 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
2976 * crap files as images. When this directive is on, <title> will be allowed in files with
2977 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
2978 * and doesn't send appropriate MIME types for SVG images.
2979 */
2980 $wgAllowTitlesInSVG = false;
2981
2982 /**
2983 * Array of namespaces which can be deemed to contain valid "content", as far
2984 * as the site statistics are concerned. Useful if additional namespaces also
2985 * contain "content" which should be considered when generating a count of the
2986 * number of articles in the wiki.
2987 */
2988 $wgContentNamespaces = array( NS_MAIN );
2989
2990 /**
2991 * Maximum amount of virtual memory available to shell processes under linux, in KB.
2992 */
2993 $wgMaxShellMemory = 102400;
2994
2995 /**
2996 * Maximum file size created by shell processes under linux, in KB
2997 * ImageMagick convert for example can be fairly hungry for scratch space
2998 */
2999 $wgMaxShellFileSize = 102400;
3000
3001 /**
3002 * DJVU settings
3003 * Path of the djvudump executable
3004 * Enable this and $wgDjvuRenderer to enable djvu rendering
3005 */
3006 # $wgDjvuDump = 'djvudump';
3007 $wgDjvuDump = null;
3008
3009 /**
3010 * Path of the ddjvu DJVU renderer
3011 * Enable this and $wgDjvuDump to enable djvu rendering
3012 */
3013 # $wgDjvuRenderer = 'ddjvu';
3014 $wgDjvuRenderer = null;
3015
3016 /**
3017 * Path of the djvutoxml executable
3018 * This works like djvudump except much, much slower as of version 3.5.
3019 *
3020 * For now I recommend you use djvudump instead. The djvuxml output is
3021 * probably more stable, so we'll switch back to it as soon as they fix
3022 * the efficiency problem.
3023 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
3024 */
3025 # $wgDjvuToXML = 'djvutoxml';
3026 $wgDjvuToXML = null;
3027
3028
3029 /**
3030 * Shell command for the DJVU post processor
3031 * Default: pnmtopng, since ddjvu generates ppm output
3032 * Set this to false to output the ppm file directly.
3033 */
3034 $wgDjvuPostProcessor = 'pnmtojpeg';
3035 /**
3036 * File extension for the DJVU post processor output
3037 */
3038 $wgDjvuOutputExtension = 'jpg';
3039
3040 /**
3041 * Enable the MediaWiki API for convenient access to
3042 * machine-readable data via api.php
3043 *
3044 * See http://www.mediawiki.org/wiki/API
3045 */
3046 $wgEnableAPI = true;
3047
3048 /**
3049 * Allow the API to be used to perform write operations
3050 * (page edits, rollback, etc.) when an authorised user
3051 * accesses it
3052 */
3053 $wgEnableWriteAPI = false;
3054
3055 /**
3056 * API module extensions
3057 * Associative array mapping module name to class name.
3058 * Extension modules may override the core modules.
3059 */
3060 $wgAPIModules = array();
3061
3062 /**
3063 * Maximum amount of rows to scan in a DB query in the API
3064 * The default value is generally fine
3065 */
3066 $wgAPIMaxDBRows = 5000;
3067
3068 /**
3069 * Parser test suite files to be run by parserTests.php when no specific
3070 * filename is passed to it.
3071 *
3072 * Extensions may add their own tests to this array, or site-local tests
3073 * may be added via LocalSettings.php
3074 *
3075 * Use full paths.
3076 */
3077 $wgParserTestFiles = array(
3078 "$IP/maintenance/parserTests.txt",
3079 );
3080
3081 /**
3082 * Break out of framesets. This can be used to prevent external sites from
3083 * framing your site with ads.
3084 */
3085 $wgBreakFrames = false;
3086
3087 /**
3088 * Set this to an array of special page names to prevent
3089 * maintenance/updateSpecialPages.php from updating those pages.
3090 */
3091 $wgDisableQueryPageUpdate = false;
3092
3093 /**
3094 * Set this to false to disable cascading protection
3095 */
3096 $wgEnableCascadingProtection = true;
3097
3098 /**
3099 * Disable output compression (enabled by default if zlib is available)
3100 */
3101 $wgDisableOutputCompression = false;
3102
3103 /**
3104 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
3105 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
3106 * show a more obvious warning.
3107 */
3108 $wgSlaveLagWarning = 10;
3109 $wgSlaveLagCritical = 30;
3110
3111 /**
3112 * Parser configuration. Associative array with the following members:
3113 *
3114 * class The class name
3115 * preprocessorClass The preprocessor class, by default it is Preprocessor_DOM
3116 * but it has a dependency of the dom module of PHP. If you
3117 * don't have this module, you can use Preprocessor_Hash wich
3118 * has not this depedency.
3119 * It has no effect with Parser_OldPP parser class.
3120 *
3121 *
3122 * The entire associative array will be passed through to the constructor as
3123 * the first parameter. Note that only Setup.php can use this variable --
3124 * the configuration will change at runtime via $wgParser member functions, so
3125 * the contents of this variable will be out-of-date. The variable can only be
3126 * changed during LocalSettings.php, in particular, it can't be changed during
3127 * an extension setup function.
3128 */
3129 $wgParserConf = array(
3130 'class' => 'Parser',
3131 'preprocessorClass' => 'Preprocessor_DOM',
3132 );
3133
3134 /**
3135 * Hooks that are used for outputting exceptions
3136 * Format is:
3137 * $wgExceptionHooks[] = $funcname
3138 * or:
3139 * $wgExceptionHooks[] = array( $class, $funcname )
3140 * Hooks should return strings or false
3141 */
3142 $wgExceptionHooks = array();
3143
3144 /**
3145 * Page property link table invalidation lists.
3146 * Should only be set by extensions.
3147 */
3148 $wgPagePropLinkInvalidations = array(
3149 'hiddencat' => 'categorylinks',
3150 );
3151
3152 /**
3153 * Maximum number of links to a redirect page listed on
3154 * Special:Whatlinkshere/RedirectDestination
3155 */
3156 $wgMaxRedirectLinksRetrieved = 500;
3157
3158 /**
3159 * Maximum number of calls to expensive parser functions
3160 * such as PAGESINCATEGORY.
3161 */
3162 $wgExpensiveParserFunctionLimit = 100;
3163
3164 /**
3165 * Array of namespaces to generate a sitemap for when the
3166 * maintenance/generateSitemap.php script is run, or false
3167 * if one is to be generated for all namespaces.
3168 */
3169 $wgSitemapNamespaces = false;