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