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