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