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