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