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