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