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