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