Revert r24105, r24106, r24107 'security fix' forbidden text/css and text/javascript...
[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 = '85';
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/svg' => 'SvgHandler',
1590 'image/vnd.djvu' => 'DjVuHandler',
1591 );
1592
1593
1594 /**
1595 * Resizing can be done using PHP's internal image libraries or using
1596 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1597 * These support more file formats than PHP, which only supports PNG,
1598 * GIF, JPG, XBM and WBMP.
1599 *
1600 * Use Image Magick instead of PHP builtin functions.
1601 */
1602 $wgUseImageMagick = false;
1603 /** The convert command shipped with ImageMagick */
1604 $wgImageMagickConvertCommand = '/usr/bin/convert';
1605
1606 /** Sharpening parameter to ImageMagick */
1607 $wgSharpenParameter = '0x0.4';
1608
1609 /** Reduction in linear dimensions below which sharpening will be enabled */
1610 $wgSharpenReductionThreshold = 0.85;
1611
1612 /**
1613 * Use another resizing converter, e.g. GraphicMagick
1614 * %s will be replaced with the source path, %d with the destination
1615 * %w and %h will be replaced with the width and height
1616 *
1617 * An example is provided for GraphicMagick
1618 * Leave as false to skip this
1619 */
1620 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1621 $wgCustomConvertCommand = false;
1622
1623 # Scalable Vector Graphics (SVG) may be uploaded as images.
1624 # Since SVG support is not yet standard in browsers, it is
1625 # necessary to rasterize SVGs to PNG as a fallback format.
1626 #
1627 # An external program is required to perform this conversion:
1628 $wgSVGConverters = array(
1629 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1630 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1631 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1632 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1633 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1634 );
1635 /** Pick one of the above */
1636 $wgSVGConverter = 'ImageMagick';
1637 /** If not in the executable PATH, specify */
1638 $wgSVGConverterPath = '';
1639 /** Don't scale a SVG larger than this */
1640 $wgSVGMaxSize = 1024;
1641 /**
1642 * Don't thumbnail an image if it will use too much working memory
1643 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1644 * 12.5 million pixels or 3500x3500
1645 */
1646 $wgMaxImageArea = 1.25e7;
1647 /**
1648 * If rendered thumbnail files are older than this timestamp, they
1649 * will be rerendered on demand as if the file didn't already exist.
1650 * Update if there is some need to force thumbs and SVG rasterizations
1651 * to rerender, such as fixes to rendering bugs.
1652 */
1653 $wgThumbnailEpoch = '20030516000000';
1654
1655 /**
1656 * If set, inline scaled images will still produce <img> tags ready for
1657 * output instead of showing an error message.
1658 *
1659 * This may be useful if errors are transitory, especially if the site
1660 * is configured to automatically render thumbnails on request.
1661 *
1662 * On the other hand, it may obscure error conditions from debugging.
1663 * Enable the debug log or the 'thumbnail' log group to make sure errors
1664 * are logged to a file for review.
1665 */
1666 $wgIgnoreImageErrors = false;
1667
1668 /**
1669 * Allow thumbnail rendering on page view. If this is false, a valid
1670 * thumbnail URL is still output, but no file will be created at
1671 * the target location. This may save some time if you have a
1672 * thumb.php or 404 handler set up which is faster than the regular
1673 * webserver(s).
1674 */
1675 $wgGenerateThumbnailOnParse = true;
1676
1677 /** Obsolete, always true, kept for compatibility with extensions */
1678 $wgUseImageResize = true;
1679
1680
1681 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1682 if( !isset( $wgCommandLineMode ) ) {
1683 $wgCommandLineMode = false;
1684 }
1685
1686 /** For colorized maintenance script output, is your terminal background dark ? */
1687 $wgCommandLineDarkBg = false;
1688
1689 #
1690 # Recent changes settings
1691 #
1692
1693 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1694 $wgPutIPinRC = true;
1695
1696 /**
1697 * Recentchanges items are periodically purged; entries older than this many
1698 * seconds will go.
1699 * For one week : 7 * 24 * 3600
1700 */
1701 $wgRCMaxAge = 7 * 24 * 3600;
1702
1703
1704 # Send RC updates via UDP
1705 $wgRC2UDPAddress = false;
1706 $wgRC2UDPPort = false;
1707 $wgRC2UDPPrefix = '';
1708
1709 #
1710 # Copyright and credits settings
1711 #
1712
1713 /** RDF metadata toggles */
1714 $wgEnableDublinCoreRdf = false;
1715 $wgEnableCreativeCommonsRdf = false;
1716
1717 /** Override for copyright metadata.
1718 * TODO: these options need documentation
1719 */
1720 $wgRightsPage = NULL;
1721 $wgRightsUrl = NULL;
1722 $wgRightsText = NULL;
1723 $wgRightsIcon = NULL;
1724
1725 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1726 $wgCopyrightIcon = NULL;
1727
1728 /** Set this to true if you want detailed copyright information forms on Upload. */
1729 $wgUseCopyrightUpload = false;
1730
1731 /** Set this to false if you want to disable checking that detailed copyright
1732 * information values are not empty. */
1733 $wgCheckCopyrightUpload = true;
1734
1735 /**
1736 * Set this to the number of authors that you want to be credited below an
1737 * article text. Set it to zero to hide the attribution block, and a negative
1738 * number (like -1) to show all authors. Note that this will require 2-3 extra
1739 * database hits, which can have a not insignificant impact on performance for
1740 * large wikis.
1741 */
1742 $wgMaxCredits = 0;
1743
1744 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1745 * Otherwise, link to a separate credits page. */
1746 $wgShowCreditsIfMax = true;
1747
1748
1749
1750 /**
1751 * Set this to false to avoid forcing the first letter of links to capitals.
1752 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1753 * appearing with a capital at the beginning of a sentence will *not* go to the
1754 * same place as links in the middle of a sentence using a lowercase initial.
1755 */
1756 $wgCapitalLinks = true;
1757
1758 /**
1759 * List of interwiki prefixes for wikis we'll accept as sources for
1760 * Special:Import (for sysops). Since complete page history can be imported,
1761 * these should be 'trusted'.
1762 *
1763 * If a user has the 'import' permission but not the 'importupload' permission,
1764 * they will only be able to run imports through this transwiki interface.
1765 */
1766 $wgImportSources = array();
1767
1768 /**
1769 * Optional default target namespace for interwiki imports.
1770 * Can use this to create an incoming "transwiki"-style queue.
1771 * Set to numeric key, not the name.
1772 *
1773 * Users may override this in the Special:Import dialog.
1774 */
1775 $wgImportTargetNamespace = null;
1776
1777 /**
1778 * If set to false, disables the full-history option on Special:Export.
1779 * This is currently poorly optimized for long edit histories, so is
1780 * disabled on Wikimedia's sites.
1781 */
1782 $wgExportAllowHistory = true;
1783
1784 /**
1785 * If set nonzero, Special:Export requests for history of pages with
1786 * more revisions than this will be rejected. On some big sites things
1787 * could get bogged down by very very long pages.
1788 */
1789 $wgExportMaxHistory = 0;
1790
1791 $wgExportAllowListContributors = false ;
1792
1793
1794 /** Text matching this regular expression will be recognised as spam
1795 * See http://en.wikipedia.org/wiki/Regular_expression */
1796 $wgSpamRegex = false;
1797 /** Similarly you can get a function to do the job. The function will be given
1798 * the following args:
1799 * - a Title object for the article the edit is made on
1800 * - the text submitted in the textarea (wpTextbox1)
1801 * - the section number.
1802 * The return should be boolean indicating whether the edit matched some evilness:
1803 * - true : block it
1804 * - false : let it through
1805 *
1806 * For a complete example, have a look at the SpamBlacklist extension.
1807 */
1808 $wgFilterCallback = false;
1809
1810 /** Go button goes straight to the edit screen if the article doesn't exist. */
1811 $wgGoToEdit = false;
1812
1813 /** Allow raw, unchecked HTML in <html>...</html> sections.
1814 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1815 * TO RESTRICT EDITING to only those that you trust
1816 */
1817 $wgRawHtml = false;
1818
1819 /**
1820 * $wgUseTidy: use tidy to make sure HTML output is sane.
1821 * Tidy is a free tool that fixes broken HTML.
1822 * See http://www.w3.org/People/Raggett/tidy/
1823 * $wgTidyBin should be set to the path of the binary and
1824 * $wgTidyConf to the path of the configuration file.
1825 * $wgTidyOpts can include any number of parameters.
1826 *
1827 * $wgTidyInternal controls the use of the PECL extension to use an in-
1828 * process tidy library instead of spawning a separate program.
1829 * Normally you shouldn't need to override the setting except for
1830 * debugging. To install, use 'pear install tidy' and add a line
1831 * 'extension=tidy.so' to php.ini.
1832 */
1833 $wgUseTidy = false;
1834 $wgAlwaysUseTidy = false;
1835 $wgTidyBin = 'tidy';
1836 $wgTidyConf = $IP.'/includes/tidy.conf';
1837 $wgTidyOpts = '';
1838 $wgTidyInternal = function_exists( 'tidy_load_config' );
1839
1840 /** See list of skins and their symbolic names in languages/Language.php */
1841 $wgDefaultSkin = 'monobook';
1842
1843 /**
1844 * Settings added to this array will override the default globals for the user
1845 * preferences used by anonymous visitors and newly created accounts.
1846 * For instance, to disable section editing links:
1847 * $wgDefaultUserOptions ['editsection'] = 0;
1848 *
1849 */
1850 $wgDefaultUserOptions = array(
1851 'quickbar' => 1,
1852 'underline' => 2,
1853 'cols' => 80,
1854 'rows' => 25,
1855 'searchlimit' => 20,
1856 'contextlines' => 5,
1857 'contextchars' => 50,
1858 'skin' => false,
1859 'math' => 1,
1860 'rcdays' => 7,
1861 'rclimit' => 50,
1862 'wllimit' => 250,
1863 'highlightbroken' => 1,
1864 'stubthreshold' => 0,
1865 'previewontop' => 1,
1866 'editsection' => 1,
1867 'editsectiononrightclick'=> 0,
1868 'showtoc' => 1,
1869 'showtoolbar' => 1,
1870 'date' => 'default',
1871 'imagesize' => 2,
1872 'thumbsize' => 2,
1873 'rememberpassword' => 0,
1874 'enotifwatchlistpages' => 0,
1875 'enotifusertalkpages' => 1,
1876 'enotifminoredits' => 0,
1877 'enotifrevealaddr' => 0,
1878 'shownumberswatching' => 1,
1879 'fancysig' => 0,
1880 'externaleditor' => 0,
1881 'externaldiff' => 0,
1882 'showjumplinks' => 1,
1883 'numberheadings' => 0,
1884 'uselivepreview' => 0,
1885 'watchlistdays' => 3.0,
1886 );
1887
1888 /** Whether or not to allow and use real name fields. Defaults to true. */
1889 $wgAllowRealName = true;
1890
1891 /*****************************************************************************
1892 * Extensions
1893 */
1894
1895 /**
1896 * A list of callback functions which are called once MediaWiki is fully initialised
1897 */
1898 $wgExtensionFunctions = array();
1899
1900 /**
1901 * Extension functions for initialisation of skins. This is called somewhat earlier
1902 * than $wgExtensionFunctions.
1903 */
1904 $wgSkinExtensionFunctions = array();
1905
1906 /**
1907 * List of valid skin names.
1908 * The key should be the name in all lower case, the value should be a display name.
1909 * The default skins will be added later, by Skin::getSkinNames(). Use
1910 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
1911 */
1912 $wgValidSkinNames = array();
1913
1914 /**
1915 * Special page list.
1916 * See the top of SpecialPage.php for documentation.
1917 */
1918 $wgSpecialPages = array();
1919
1920 /**
1921 * Array mapping class names to filenames, for autoloading.
1922 */
1923 $wgAutoloadClasses = array();
1924
1925 /**
1926 * An array of extension types and inside that their names, versions, authors
1927 * and urls, note that the version and url key can be omitted.
1928 *
1929 * <code>
1930 * $wgExtensionCredits[$type][] = array(
1931 * 'name' => 'Example extension',
1932 * 'version' => 1.9,
1933 * 'author' => 'Foo Barstein',
1934 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1935 * );
1936 * </code>
1937 *
1938 * Where $type is 'specialpage', 'parserhook', or 'other'.
1939 */
1940 $wgExtensionCredits = array();
1941 /*
1942 * end extensions
1943 ******************************************************************************/
1944
1945 /**
1946 * Allow user Javascript page?
1947 * This enables a lot of neat customizations, but may
1948 * increase security risk to users and server load.
1949 */
1950 $wgAllowUserJs = false;
1951
1952 /**
1953 * Allow user Cascading Style Sheets (CSS)?
1954 * This enables a lot of neat customizations, but may
1955 * increase security risk to users and server load.
1956 */
1957 $wgAllowUserCss = false;
1958
1959 /** Use the site's Javascript page? */
1960 $wgUseSiteJs = true;
1961
1962 /** Use the site's Cascading Style Sheets (CSS)? */
1963 $wgUseSiteCss = true;
1964
1965 /** Filter for Special:Randompage. Part of a WHERE clause */
1966 $wgExtraRandompageSQL = false;
1967
1968 /** Allow the "info" action, very inefficient at the moment */
1969 $wgAllowPageInfo = false;
1970
1971 /** Maximum indent level of toc. */
1972 $wgMaxTocLevel = 999;
1973
1974 /** Name of the external diff engine to use */
1975 $wgExternalDiffEngine = false;
1976
1977 /** Use RC Patrolling to check for vandalism */
1978 $wgUseRCPatrol = true;
1979
1980 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1981 * eg Recentchanges, Newpages. */
1982 $wgFeedLimit = 50;
1983
1984 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1985 * A cached version will continue to be served out even if changes
1986 * are made, until this many seconds runs out since the last render.
1987 *
1988 * If set to 0, feed caching is disabled. Use this for debugging only;
1989 * feed generation can be pretty slow with diffs.
1990 */
1991 $wgFeedCacheTimeout = 60;
1992
1993 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1994 * pages larger than this size. */
1995 $wgFeedDiffCutoff = 32768;
1996
1997
1998 /**
1999 * Additional namespaces. If the namespaces defined in Language.php and
2000 * Namespace.php are insufficient, you can create new ones here, for example,
2001 * to import Help files in other languages.
2002 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2003 * no longer be accessible. If you rename it, then you can access them through
2004 * the new namespace name.
2005 *
2006 * Custom namespaces should start at 100 to avoid conflicting with standard
2007 * namespaces, and should always follow the even/odd main/talk pattern.
2008 */
2009 #$wgExtraNamespaces =
2010 # array(100 => "Hilfe",
2011 # 101 => "Hilfe_Diskussion",
2012 # 102 => "Aide",
2013 # 103 => "Discussion_Aide"
2014 # );
2015 $wgExtraNamespaces = NULL;
2016
2017 /**
2018 * Namespace aliases
2019 * These are alternate names for the primary localised namespace names, which
2020 * are defined by $wgExtraNamespaces and the language file. If a page is
2021 * requested with such a prefix, the request will be redirected to the primary
2022 * name.
2023 *
2024 * Set this to a map from namespace names to IDs.
2025 * Example:
2026 * $wgNamespaceAliases = array(
2027 * 'Wikipedian' => NS_USER,
2028 * 'Help' => 100,
2029 * );
2030 */
2031 $wgNamespaceAliases = array();
2032
2033 /**
2034 * Limit images on image description pages to a user-selectable limit. In order
2035 * to reduce disk usage, limits can only be selected from a list.
2036 * The user preference is saved as an array offset in the database, by default
2037 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2038 * change it if you alter the array (see bug 8858).
2039 * This is the list of settings the user can choose from:
2040 */
2041 $wgImageLimits = array (
2042 array(320,240),
2043 array(640,480),
2044 array(800,600),
2045 array(1024,768),
2046 array(1280,1024),
2047 array(10000,10000) );
2048
2049 /**
2050 * Adjust thumbnails on image pages according to a user setting. In order to
2051 * reduce disk usage, the values can only be selected from a list. This is the
2052 * list of settings the user can choose from:
2053 */
2054 $wgThumbLimits = array(
2055 120,
2056 150,
2057 180,
2058 200,
2059 250,
2060 300
2061 );
2062
2063 /**
2064 * Adjust width of upright images when parameter 'upright' is used
2065 * This allows a nicer look for upright images without the need to fix the width
2066 * by hardcoded px in wiki sourcecode.
2067 */
2068 $wgThumbUpright = 0.75;
2069
2070 /**
2071 * On category pages, show thumbnail gallery for images belonging to that
2072 * category instead of listing them as articles.
2073 */
2074 $wgCategoryMagicGallery = true;
2075
2076 /**
2077 * Paging limit for categories
2078 */
2079 $wgCategoryPagingLimit = 200;
2080
2081 /**
2082 * Browser Blacklist for unicode non compliant browsers
2083 * Contains a list of regexps : "/regexp/" matching problematic browsers
2084 */
2085 $wgBrowserBlackList = array(
2086 /**
2087 * Netscape 2-4 detection
2088 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2089 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2090 * with a negative assertion. The [UIN] identifier specifies the level of security
2091 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2092 * The language string is unreliable, it is missing on NS4 Mac.
2093 *
2094 * Reference: http://www.psychedelix.com/agents/index.shtml
2095 */
2096 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2097 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2098 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2099
2100 /**
2101 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2102 *
2103 * Known useragents:
2104 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2105 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2106 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2107 * - [...]
2108 *
2109 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2110 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2111 */
2112 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2113
2114 /**
2115 * Google wireless transcoder, seems to eat a lot of chars alive
2116 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2117 */
2118 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2119 );
2120
2121 /**
2122 * Fake out the timezone that the server thinks it's in. This will be used for
2123 * date display and not for what's stored in the DB. Leave to null to retain
2124 * your server's OS-based timezone value. This is the same as the timezone.
2125 *
2126 * This variable is currently used ONLY for signature formatting, not for
2127 * anything else.
2128 */
2129 # $wgLocaltimezone = 'GMT';
2130 # $wgLocaltimezone = 'PST8PDT';
2131 # $wgLocaltimezone = 'Europe/Sweden';
2132 # $wgLocaltimezone = 'CET';
2133 $wgLocaltimezone = null;
2134
2135 /**
2136 * Set an offset from UTC in minutes to use for the default timezone setting
2137 * for anonymous users and new user accounts.
2138 *
2139 * This setting is used for most date/time displays in the software, and is
2140 * overrideable in user preferences. It is *not* used for signature timestamps.
2141 *
2142 * You can set it to match the configured server timezone like this:
2143 * $wgLocalTZoffset = date("Z") / 60;
2144 *
2145 * If your server is not configured for the timezone you want, you can set
2146 * this in conjunction with the signature timezone and override the TZ
2147 * environment variable like so:
2148 * $wgLocaltimezone="Europe/Berlin";
2149 * putenv("TZ=$wgLocaltimezone");
2150 * $wgLocalTZoffset = date("Z") / 60;
2151 *
2152 * Leave at NULL to show times in universal time (UTC/GMT).
2153 */
2154 $wgLocalTZoffset = null;
2155
2156
2157 /**
2158 * When translating messages with wfMsg(), it is not always clear what should be
2159 * considered UI messages and what shoud be content messages.
2160 *
2161 * For example, for regular wikipedia site like en, there should be only one
2162 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2163 * it as content of the site and call wfMsgForContent(), while for rendering the
2164 * text of the link, we call wfMsg(). The code in default behaves this way.
2165 * However, sites like common do offer different versions of 'mainpage' and the
2166 * like for different languages. This array provides a way to override the
2167 * default behavior. For example, to allow language specific mainpage and
2168 * community portal, set
2169 *
2170 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2171 */
2172 $wgForceUIMsgAsContentMsg = array();
2173
2174
2175 /**
2176 * Authentication plugin.
2177 */
2178 $wgAuth = null;
2179
2180 /**
2181 * Global list of hooks.
2182 * Add a hook by doing:
2183 * $wgHooks['event_name'][] = $function;
2184 * or:
2185 * $wgHooks['event_name'][] = array($function, $data);
2186 * or:
2187 * $wgHooks['event_name'][] = array($object, 'method');
2188 */
2189 $wgHooks = array();
2190
2191 /**
2192 * The logging system has two levels: an event type, which describes the
2193 * general category and can be viewed as a named subset of all logs; and
2194 * an action, which is a specific kind of event that can exist in that
2195 * log type.
2196 */
2197 $wgLogTypes = array( '',
2198 'block',
2199 'protect',
2200 'rights',
2201 'delete',
2202 'upload',
2203 'move',
2204 'import',
2205 'patrol',
2206 );
2207
2208 /**
2209 * Lists the message key string for each log type. The localized messages
2210 * will be listed in the user interface.
2211 *
2212 * Extensions with custom log types may add to this array.
2213 */
2214 $wgLogNames = array(
2215 '' => 'all-logs-page',
2216 'block' => 'blocklogpage',
2217 'protect' => 'protectlogpage',
2218 'rights' => 'rightslog',
2219 'delete' => 'dellogpage',
2220 'upload' => 'uploadlogpage',
2221 'move' => 'movelogpage',
2222 'import' => 'importlogpage',
2223 'patrol' => 'patrol-log-page',
2224 );
2225
2226 /**
2227 * Lists the message key string for descriptive text to be shown at the
2228 * top of each log type.
2229 *
2230 * Extensions with custom log types may add to this array.
2231 */
2232 $wgLogHeaders = array(
2233 '' => 'alllogstext',
2234 'block' => 'blocklogtext',
2235 'protect' => 'protectlogtext',
2236 'rights' => 'rightslogtext',
2237 'delete' => 'dellogpagetext',
2238 'upload' => 'uploadlogpagetext',
2239 'move' => 'movelogpagetext',
2240 'import' => 'importlogpagetext',
2241 'patrol' => 'patrol-log-header',
2242 );
2243
2244 /**
2245 * Lists the message key string for formatting individual events of each
2246 * type and action when listed in the logs.
2247 *
2248 * Extensions with custom log types may add to this array.
2249 */
2250 $wgLogActions = array(
2251 'block/block' => 'blocklogentry',
2252 'block/unblock' => 'unblocklogentry',
2253 'protect/protect' => 'protectedarticle',
2254 'protect/modify' => 'modifiedarticleprotection',
2255 'protect/unprotect' => 'unprotectedarticle',
2256 'rights/rights' => 'rightslogentry',
2257 'delete/delete' => 'deletedarticle',
2258 'delete/restore' => 'undeletedarticle',
2259 'delete/revision' => 'revdelete-logentry',
2260 'upload/upload' => 'uploadedimage',
2261 'upload/revert' => 'uploadedimage',
2262 'move/move' => '1movedto2',
2263 'move/move_redir' => '1movedto2_redir',
2264 'import/upload' => 'import-logentry-upload',
2265 'import/interwiki' => 'import-logentry-interwiki',
2266 );
2267
2268 /**
2269 * Experimental preview feature to fetch rendered text
2270 * over an XMLHttpRequest from JavaScript instead of
2271 * forcing a submit and reload of the whole page.
2272 * Leave disabled unless you're testing it.
2273 */
2274 $wgLivePreview = false;
2275
2276 /**
2277 * Disable the internal MySQL-based search, to allow it to be
2278 * implemented by an extension instead.
2279 */
2280 $wgDisableInternalSearch = false;
2281
2282 /**
2283 * Set this to a URL to forward search requests to some external location.
2284 * If the URL includes '$1', this will be replaced with the URL-encoded
2285 * search term.
2286 *
2287 * For example, to forward to Google you'd have something like:
2288 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2289 * '&domains=http://example.com' .
2290 * '&sitesearch=http://example.com' .
2291 * '&ie=utf-8&oe=utf-8';
2292 */
2293 $wgSearchForwardUrl = null;
2294
2295 /**
2296 * If true, external URL links in wiki text will be given the
2297 * rel="nofollow" attribute as a hint to search engines that
2298 * they should not be followed for ranking purposes as they
2299 * are user-supplied and thus subject to spamming.
2300 */
2301 $wgNoFollowLinks = true;
2302
2303 /**
2304 * Namespaces in which $wgNoFollowLinks doesn't apply.
2305 * See Language.php for a list of namespaces.
2306 */
2307 $wgNoFollowNsExceptions = array();
2308
2309 /**
2310 * Robot policies per namespaces.
2311 * The default policy is 'index,follow', the array is made of namespace
2312 * constants as defined in includes/Defines.php
2313 * Example:
2314 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2315 */
2316 $wgNamespaceRobotPolicies = array();
2317
2318 /**
2319 * Robot policies per article.
2320 * These override the per-namespace robot policies.
2321 * Must be in the form of an array where the key part is a properly
2322 * canonicalised text form title and the value is a robot policy.
2323 * Example:
2324 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex' );
2325 */
2326 $wgArticleRobotPolicies = array();
2327
2328 /**
2329 * Specifies the minimal length of a user password. If set to
2330 * 0, empty passwords are allowed.
2331 */
2332 $wgMinimalPasswordLength = 0;
2333
2334 /**
2335 * Activate external editor interface for files and pages
2336 * See http://meta.wikimedia.org/wiki/Help:External_editors
2337 */
2338 $wgUseExternalEditor = true;
2339
2340 /** Whether or not to sort special pages in Special:Specialpages */
2341
2342 $wgSortSpecialPages = true;
2343
2344 /**
2345 * Specify the name of a skin that should not be presented in the
2346 * list of available skins.
2347 * Use for blacklisting a skin which you do not want to remove
2348 * from the .../skins/ directory
2349 */
2350 $wgSkipSkin = '';
2351 $wgSkipSkins = array(); # More of the same
2352
2353 /**
2354 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2355 */
2356 $wgDisabledActions = array();
2357
2358 /**
2359 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2360 */
2361 $wgDisableHardRedirects = false;
2362
2363 /**
2364 * Use http.dnsbl.sorbs.net to check for open proxies
2365 */
2366 $wgEnableSorbs = false;
2367 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2368
2369 /**
2370 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2371 * methods might say
2372 */
2373 $wgProxyWhitelist = array();
2374
2375 /**
2376 * Simple rate limiter options to brake edit floods.
2377 * Maximum number actions allowed in the given number of seconds;
2378 * after that the violating client receives HTTP 500 error pages
2379 * until the period elapses.
2380 *
2381 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2382 *
2383 * This option set is experimental and likely to change.
2384 * Requires memcached.
2385 */
2386 $wgRateLimits = array(
2387 'edit' => array(
2388 'anon' => null, // for any and all anonymous edits (aggregate)
2389 'user' => null, // for each logged-in user
2390 'newbie' => null, // for each recent account; overrides 'user'
2391 'ip' => null, // for each anon and recent account
2392 'subnet' => null, // ... with final octet removed
2393 ),
2394 'move' => array(
2395 'user' => null,
2396 'newbie' => null,
2397 'ip' => null,
2398 'subnet' => null,
2399 ),
2400 'mailpassword' => array(
2401 'anon' => NULL,
2402 ),
2403 'emailuser' => array(
2404 'user' => null,
2405 ),
2406 );
2407
2408 /**
2409 * Set to a filename to log rate limiter hits.
2410 */
2411 $wgRateLimitLog = null;
2412
2413 /**
2414 * Array of groups which should never trigger the rate limiter
2415 */
2416 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2417
2418 /**
2419 * On Special:Unusedimages, consider images "used", if they are put
2420 * into a category. Default (false) is not to count those as used.
2421 */
2422 $wgCountCategorizedImagesAsUsed = false;
2423
2424 /**
2425 * External stores allow including content
2426 * from non database sources following URL links
2427 *
2428 * Short names of ExternalStore classes may be specified in an array here:
2429 * $wgExternalStores = array("http","file","custom")...
2430 *
2431 * CAUTION: Access to database might lead to code execution
2432 */
2433 $wgExternalStores = false;
2434
2435 /**
2436 * An array of external mysql servers, e.g.
2437 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2438 */
2439 $wgExternalServers = array();
2440
2441 /**
2442 * The place to put new revisions, false to put them in the local text table.
2443 * Part of a URL, e.g. DB://cluster1
2444 *
2445 * Can be an array instead of a single string, to enable data distribution. Keys
2446 * must be consecutive integers, starting at zero. Example:
2447 *
2448 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2449 *
2450 */
2451 $wgDefaultExternalStore = false;
2452
2453 /**
2454 * Revision text may be cached in $wgMemc to reduce load on external storage
2455 * servers and object extraction overhead for frequently-loaded revisions.
2456 *
2457 * Set to 0 to disable, or number of seconds before cache expiry.
2458 */
2459 $wgRevisionCacheExpiry = 0;
2460
2461 /**
2462 * list of trusted media-types and mime types.
2463 * Use the MEDIATYPE_xxx constants to represent media types.
2464 * This list is used by Image::isSafeFile
2465 *
2466 * Types not listed here will have a warning about unsafe content
2467 * displayed on the images description page. It would also be possible
2468 * to use this for further restrictions, like disabling direct
2469 * [[media:...]] links for non-trusted formats.
2470 */
2471 $wgTrustedMediaFormats= array(
2472 MEDIATYPE_BITMAP, //all bitmap formats
2473 MEDIATYPE_AUDIO, //all audio formats
2474 MEDIATYPE_VIDEO, //all plain video formats
2475 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
2476 "application/pdf", //PDF files
2477 #"application/x-shockwave-flash", //flash/shockwave movie
2478 );
2479
2480 /**
2481 * Allow special page inclusions such as {{Special:Allpages}}
2482 */
2483 $wgAllowSpecialInclusion = true;
2484
2485 /**
2486 * Timeout for HTTP requests done via CURL
2487 */
2488 $wgHTTPTimeout = 3;
2489
2490 /**
2491 * Proxy to use for CURL requests.
2492 */
2493 $wgHTTPProxy = false;
2494
2495 /**
2496 * Enable interwiki transcluding. Only when iw_trans=1.
2497 */
2498 $wgEnableScaryTranscluding = false;
2499 /**
2500 * Expiry time for interwiki transclusion
2501 */
2502 $wgTranscludeCacheExpiry = 3600;
2503
2504 /**
2505 * Support blog-style "trackbacks" for articles. See
2506 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2507 */
2508 $wgUseTrackbacks = false;
2509
2510 /**
2511 * Enable filtering of categories in Recentchanges
2512 */
2513 $wgAllowCategorizedRecentChanges = false ;
2514
2515 /**
2516 * Number of jobs to perform per request. May be less than one in which case
2517 * jobs are performed probabalistically. If this is zero, jobs will not be done
2518 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2519 * be run periodically.
2520 */
2521 $wgJobRunRate = 1;
2522
2523 /**
2524 * Number of rows to update per job
2525 */
2526 $wgUpdateRowsPerJob = 500;
2527
2528 /**
2529 * Number of rows to update per query
2530 */
2531 $wgUpdateRowsPerQuery = 10;
2532
2533 /**
2534 * Enable AJAX framework
2535 */
2536 $wgUseAjax = true;
2537
2538 /**
2539 * Enable auto suggestion for the search bar
2540 * Requires $wgUseAjax to be true too.
2541 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2542 */
2543 $wgAjaxSearch = false;
2544
2545 /**
2546 * List of Ajax-callable functions.
2547 * Extensions acting as Ajax callbacks must register here
2548 */
2549 $wgAjaxExportList = array( );
2550
2551 /**
2552 * Enable watching/unwatching pages using AJAX.
2553 * Requires $wgUseAjax to be true too.
2554 * Causes wfAjaxWatch to be added to $wgAjaxExportList
2555 */
2556 $wgAjaxWatch = true;
2557
2558 /**
2559 * Enable AJAX check for file overwrite, pre-upload
2560 */
2561 $wgAjaxUploadDestCheck = true;
2562
2563 /**
2564 * Enable previewing licences via AJAX
2565 */
2566 $wgAjaxLicencePreview = true;
2567
2568 /**
2569 * Allow DISPLAYTITLE to change title display
2570 */
2571 $wgAllowDisplayTitle = true;
2572
2573 /**
2574 * Array of usernames which may not be registered or logged in from
2575 * Maintenance scripts can still use these
2576 */
2577 $wgReservedUsernames = array(
2578 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
2579 'Conversion script', // Used for the old Wikipedia software upgrade
2580 'Maintenance script', // Maintenance scripts which perform editing, image import script
2581 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
2582 );
2583
2584 /**
2585 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
2586 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
2587 * crap files as images. When this directive is on, <title> will be allowed in files with
2588 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
2589 * and doesn't send appropriate MIME types for SVG images.
2590 */
2591 $wgAllowTitlesInSVG = false;
2592
2593 /**
2594 * Array of namespaces which can be deemed to contain valid "content", as far
2595 * as the site statistics are concerned. Useful if additional namespaces also
2596 * contain "content" which should be considered when generating a count of the
2597 * number of articles in the wiki.
2598 */
2599 $wgContentNamespaces = array( NS_MAIN );
2600
2601 /**
2602 * Maximum amount of virtual memory available to shell processes under linux, in KB.
2603 */
2604 $wgMaxShellMemory = 102400;
2605
2606 /**
2607 * Maximum file size created by shell processes under linux, in KB
2608 * ImageMagick convert for example can be fairly hungry for scratch space
2609 */
2610 $wgMaxShellFileSize = 102400;
2611
2612 /**
2613 * DJVU settings
2614 * Path of the djvudump executable
2615 * Enable this and $wgDjvuRenderer to enable djvu rendering
2616 */
2617 # $wgDjvuDump = 'djvudump';
2618 $wgDjvuDump = null;
2619
2620 /**
2621 * Path of the ddjvu DJVU renderer
2622 * Enable this and $wgDjvuDump to enable djvu rendering
2623 */
2624 # $wgDjvuRenderer = 'ddjvu';
2625 $wgDjvuRenderer = null;
2626
2627 /**
2628 * Path of the djvutoxml executable
2629 * This works like djvudump except much, much slower as of version 3.5.
2630 *
2631 * For now I recommend you use djvudump instead. The djvuxml output is
2632 * probably more stable, so we'll switch back to it as soon as they fix
2633 * the efficiency problem.
2634 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
2635 */
2636 # $wgDjvuToXML = 'djvutoxml';
2637 $wgDjvuToXML = null;
2638
2639
2640 /**
2641 * Shell command for the DJVU post processor
2642 * Default: pnmtopng, since ddjvu generates ppm output
2643 * Set this to false to output the ppm file directly.
2644 */
2645 $wgDjvuPostProcessor = 'pnmtojpeg';
2646 /**
2647 * File extension for the DJVU post processor output
2648 */
2649 $wgDjvuOutputExtension = 'jpg';
2650
2651 /**
2652 * Enable direct access to the data API
2653 * through api.php
2654 */
2655 $wgEnableAPI = true;
2656 $wgEnableWriteAPI = false;
2657
2658 /**
2659 * Parser test suite files to be run by parserTests.php when no specific
2660 * filename is passed to it.
2661 *
2662 * Extensions may add their own tests to this array, or site-local tests
2663 * may be added via LocalSettings.php
2664 *
2665 * Use full paths.
2666 */
2667 $wgParserTestFiles = array(
2668 "$IP/maintenance/parserTests.txt",
2669 );
2670
2671 /**
2672 * Break out of framesets. This can be used to prevent external sites from
2673 * framing your site with ads.
2674 */
2675 $wgBreakFrames = false;
2676
2677 /**
2678 * Set this to an array of special page names to prevent
2679 * maintenance/updateSpecialPages.php from updating those pages.
2680 */
2681 $wgDisableQueryPageUpdate = false;
2682
2683 /**
2684 * Set this to false to disable cascading protection
2685 */
2686 $wgEnableCascadingProtection = true;
2687
2688 /**
2689 * Disable output compression (enabled by default if zlib is available)
2690 */
2691 $wgDisableOutputCompression = false;
2692
2693 /**
2694 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
2695 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
2696 * show a more obvious warning.
2697 */
2698 $wgSlaveLagWarning = 10;
2699 $wgSlaveLagCritical = 30;