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