* Add $wgIgnoreImageErrors to suppress error messages for thumbnail rendering problem...
[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 * @package MediaWiki
19 */
20
21 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
22 if( !defined( 'MEDIAWIKI' ) ) {
23 echo "This file is part of MediaWiki and is not a valid entry point\n";
24 die( -1 );
25 }
26
27 /**
28 * Create a site configuration object
29 * Not used for much in a default install
30 */
31 require_once( 'includes/SiteConfiguration.php' );
32 $wgConf = new SiteConfiguration;
33
34 /** MediaWiki version number */
35 $wgVersion = '1.7alpha';
36
37 /** Name of the site. It must be changed in LocalSettings.php */
38 $wgSitename = 'MediaWiki';
39
40 /** Will be same as you set @see $wgSitename */
41 $wgMetaNamespace = FALSE;
42
43
44 /** URL of the server. It will be automatically built including https mode */
45 $wgServer = '';
46
47 if( isset( $_SERVER['SERVER_NAME'] ) ) {
48 $wgServerName = $_SERVER['SERVER_NAME'];
49 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
50 $wgServerName = $_SERVER['HOSTNAME'];
51 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
52 $wgServerName = $_SERVER['HTTP_HOST'];
53 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
54 $wgServerName = $_SERVER['SERVER_ADDR'];
55 } else {
56 $wgServerName = 'localhost';
57 }
58
59 # check if server use https:
60 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
61
62 $wgServer = $wgProto.'://' . $wgServerName;
63 # If the port is a non-standard one, add it to the URL
64 if( isset( $_SERVER['SERVER_PORT'] )
65 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
66 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
67
68 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
69 }
70
71
72 /**
73 * The path we should point to.
74 * It might be a virtual path in case with use apache mod_rewrite for example
75 */
76 $wgScriptPath = '/wiki';
77
78 /**
79 * Whether to support URLs like index.php/Page_title
80 * @global bool $wgUsePathInfo
81 */
82 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
83
84
85 /**#@+
86 * Script users will request to get articles
87 * ATTN: Old installations used wiki.phtml and redirect.phtml -
88 * make sure that LocalSettings.php is correctly set!
89 * @deprecated
90 */
91 /**
92 * @global string $wgScript
93 */
94 $wgScript = "{$wgScriptPath}/index.php";
95 /**
96 * @global string $wgRedirectScript
97 */
98 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
99 /**#@-*/
100
101
102 /**#@+
103 * @global string
104 */
105 /**
106 * style path as seen by users
107 * @global string $wgStylePath
108 */
109 $wgStylePath = "{$wgScriptPath}/skins";
110 /**
111 * filesystem stylesheets directory
112 * @global string $wgStyleDirectory
113 */
114 $wgStyleDirectory = "{$IP}/skins";
115 $wgStyleSheetPath = &$wgStylePath;
116 $wgArticlePath = "{$wgScript}?title=$1";
117 $wgUploadPath = "{$wgScriptPath}/upload";
118 $wgUploadDirectory = "{$IP}/upload";
119 $wgHashedUploadDirectory = true;
120 $wgLogo = "{$wgUploadPath}/wiki.png";
121 $wgFavicon = '/favicon.ico';
122 $wgMathPath = "{$wgUploadPath}/math";
123 $wgMathDirectory = "{$wgUploadDirectory}/math";
124 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
125 $wgUploadBaseUrl = "";
126 /**#@-*/
127
128 /**
129 * Allowed title characters -- regex character class
130 * Don't change this unless you know what you're doing
131 *
132 * Problematic punctuation:
133 * []{}|# Are needed for link syntax, never enable these
134 * % Enabled by default, minor problems with path to query rewrite rules, see below
135 * + Doesn't work with path to query rewrite rules, corrupted by apache
136 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
137 *
138 * All three of these punctuation problems can be avoided by using an alias, instead of a
139 * rewrite rule of either variety.
140 *
141 * The problem with % is that when using a path to query rewrite rule, URLs are
142 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
143 * %253F, for example, becomes "?". Our code does not double-escape to compensate
144 * for this, indeed double escaping would break if the double-escaped title was
145 * passed in the query string rather than the path. This is a minor security issue
146 * because articles can be created such that they are hard to view or edit.
147 *
148 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
149 * this breaks interlanguage links
150 */
151 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF";
152
153
154 /**
155 * The external URL protocols
156 */
157 $wgUrlProtocols = array(
158 'http://',
159 'https://',
160 'ftp://',
161 'irc://',
162 'gopher://',
163 'telnet://', // Well if we're going to support the above.. -ævar
164 'nntp://', // @bug 3808 RFC 1738
165 'worldwind://',
166 'mailto:',
167 'news:'
168 );
169
170 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
171 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
172 * @global string $wgAntivirus
173 */
174 $wgAntivirus= NULL;
175
176 /** Configuration for different virus scanners. This an associative array of associative arrays:
177 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
178 * valid values for $wgAntivirus are the keys defined in this array.
179 *
180 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
181 *
182 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
183 * file to scan. If not present, the filename will be appended to the command. Note that this must be
184 * overwritten if the scanner is not in the system path; in that case, plase set
185 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
186 *
187 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
188 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
189 * the file if $wgAntivirusRequired is not set.
190 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
191 * which is probably imune to virusses. This causes the file to pass.
192 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
193 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
194 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
195 *
196 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
197 * output. The relevant part should be matched as group one (\1).
198 * If not defined or the pattern does not match, the full message is shown to the user.
199 *
200 * @global array $wgAntivirusSetup
201 */
202 $wgAntivirusSetup= array(
203
204 #setup for clamav
205 'clamav' => array (
206 'command' => "clamscan --no-summary ",
207
208 'codemap'=> array (
209 "0"=> AV_NO_VIRUS, #no virus
210 "1"=> AV_VIRUS_FOUND, #virus found
211 "52"=> AV_SCAN_ABORTED, #unsupported file format (probably imune)
212 "*"=> AV_SCAN_FAILED, #else scan failed
213 ),
214
215 'messagepattern'=> '/.*?:(.*)/sim',
216 ),
217
218 #setup for f-prot
219 'f-prot' => array (
220 'command' => "f-prot ",
221
222 'codemap'=> array (
223 "0"=> AV_NO_VIRUS, #no virus
224 "3"=> AV_VIRUS_FOUND, #virus found
225 "6"=> AV_VIRUS_FOUND, #virus found
226 "*"=> AV_SCAN_FAILED, #else scan failed
227 ),
228
229 'messagepattern'=> '/.*?Infection:(.*)$/m',
230 ),
231 );
232
233
234 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
235 * @global boolean $wgAntivirusRequired
236 */
237 $wgAntivirusRequired= true;
238
239 /** Determines if the mime type of uploaded files should be checked
240 * @global boolean $wgVerifyMimeType
241 */
242 $wgVerifyMimeType= true;
243
244 /** Sets the mime type definition file to use by MimeMagic.php.
245 * @global string $wgMimeTypeFile
246 */
247 #$wgMimeTypeFile= "/etc/mime.types";
248 $wgMimeTypeFile= "includes/mime.types";
249 #$wgMimeTypeFile= NULL; #use built-in defaults only.
250
251 /** Sets the mime type info file to use by MimeMagic.php.
252 * @global string $wgMimeInfoFile
253 */
254 $wgMimeInfoFile= "includes/mime.info";
255 #$wgMimeInfoFile= NULL; #use built-in defaults only.
256
257 /** Switch for loading the FileInfo extension by PECL at runtime.
258 * This should be used only if fileinfo is installed as a shared object / dynamic libary
259 * @global string $wgLoadFileinfoExtension
260 */
261 $wgLoadFileinfoExtension= false;
262
263 /** Sets an external mime detector program. The command must print only the mime type to standard output.
264 * the name of the file to process will be appended to the command given here.
265 * If not set or NULL, mime_content_type will be used if available.
266 */
267 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
268 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
269
270 /** Switch for trivial mime detection. Used by thumb.php to disable all fance things,
271 * because only a few types of images are needed and file extensions can be trusted.
272 */
273 $wgTrivialMimeDetection= false;
274
275 /**
276 * To set 'pretty' URL paths for actions other than
277 * plain page views, add to this array. For instance:
278 * 'edit' => "$wgScriptPath/edit/$1"
279 *
280 * There must be an appropriate script or rewrite rule
281 * in place to handle these URLs.
282 */
283 $wgActionPaths = array();
284
285 /**
286 * If you operate multiple wikis, you can define a shared upload path here.
287 * Uploads to this wiki will NOT be put there - they will be put into
288 * $wgUploadDirectory.
289 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
290 * no file of the given name is found in the local repository (for [[Image:..]],
291 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
292 * directory.
293 */
294 $wgUseSharedUploads = false;
295 /** Full path on the web server where shared uploads can be found */
296 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
297 /** Fetch commons image description pages and display them on the local wiki? */
298 $wgFetchCommonsDescriptions = false;
299 /** Path on the file system where shared uploads can be found. */
300 $wgSharedUploadDirectory = "/var/www/wiki3/images";
301 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
302 $wgSharedUploadDBname = false;
303 /** Optional table prefix used in database. */
304 $wgSharedUploadDBprefix = '';
305 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
306 $wgCacheSharedUploads = true;
307
308 /**
309 * Point the upload navigation link to an external URL
310 * Useful if you want to use a shared repository by default
311 * without disabling local uploads (use $wgEnableUploads = false for that)
312 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
313 */
314 $wgUploadNavigationUrl = false;
315
316 /**
317 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
318 * generating them on render and outputting a static URL. This is necessary if some of your
319 * apache servers don't have read/write access to the thumbnail path.
320 *
321 * Example:
322 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
323 */
324 $wgThumbnailScriptPath = false;
325 $wgSharedThumbnailScriptPath = false;
326
327 /**
328 * Set the following to false especially if you have a set of files that need to
329 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
330 * directory layout.
331 */
332 $wgHashedSharedUploadDirectory = true;
333
334 /**
335 * Base URL for a repository wiki. Leave this blank if uploads are just stored
336 * in a shared directory and not meant to be accessible through a separate wiki.
337 * Otherwise the image description pages on the local wiki will link to the
338 * image description page on this wiki.
339 *
340 * Please specify the namespace, as in the example below.
341 */
342 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
343
344
345 #
346 # Email settings
347 #
348
349 /**
350 * Site admin email address
351 * Default to wikiadmin@SERVER_NAME
352 * @global string $wgEmergencyContact
353 */
354 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
355
356 /**
357 * Password reminder email address
358 * The address we should use as sender when a user is requesting his password
359 * Default to apache@SERVER_NAME
360 * @global string $wgPasswordSender
361 */
362 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
363
364 /**
365 * dummy address which should be accepted during mail send action
366 * It might be necessay to adapt the address or to set it equal
367 * to the $wgEmergencyContact address
368 */
369 #$wgNoReplyAddress = $wgEmergencyContact;
370 $wgNoReplyAddress = 'reply@not.possible';
371
372 /**
373 * Set to true to enable the e-mail basic features:
374 * Password reminders, etc. If sending e-mail on your
375 * server doesn't work, you might want to disable this.
376 * @global bool $wgEnableEmail
377 */
378 $wgEnableEmail = true;
379
380 /**
381 * Set to true to enable user-to-user e-mail.
382 * This can potentially be abused, as it's hard to track.
383 * @global bool $wgEnableUserEmail
384 */
385 $wgEnableUserEmail = true;
386
387 /**
388 * SMTP Mode
389 * For using a direct (authenticated) SMTP server connection.
390 * Default to false or fill an array :
391 * <code>
392 * "host" => 'SMTP domain',
393 * "IDHost" => 'domain for MessageID',
394 * "port" => "25",
395 * "auth" => true/false,
396 * "username" => user,
397 * "password" => password
398 * </code>
399 *
400 * @global mixed $wgSMTP
401 */
402 $wgSMTP = false;
403
404
405 /**#@+
406 * Database settings
407 */
408 /** database host name or ip address */
409 $wgDBserver = 'localhost';
410 /** name of the database */
411 $wgDBname = 'wikidb';
412 /** */
413 $wgDBconnection = '';
414 /** Database username */
415 $wgDBuser = 'wikiuser';
416 /** Database type
417 * "mysql" for working code and "PostgreSQL" for development/broken code
418 */
419 $wgDBtype = "mysql";
420 /** Search type
421 * Leave as null to select the default search engine for the
422 * selected database type (eg SearchMySQL4), or set to a class
423 * name to override to a custom search engine.
424 */
425 $wgSearchType = null;
426 /** Table name prefix */
427 $wgDBprefix = '';
428 /** Database schema
429 * on some databases this allows separate
430 * logical namespace for application data
431 */
432 $wgDBschema = 'mediawiki';
433 /**#@-*/
434
435 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
436 $wgCheckDBSchema = true;
437
438
439 /**
440 * Shared database for multiple wikis. Presently used for storing a user table
441 * for single sign-on. The server for this database must be the same as for the
442 * main database.
443 * EXPERIMENTAL
444 */
445 $wgSharedDB = null;
446
447 # Database load balancer
448 # This is a two-dimensional array, an array of server info structures
449 # Fields are:
450 # host: Host name
451 # dbname: Default database name
452 # user: DB user
453 # password: DB password
454 # type: "mysql" or "pgsql"
455 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
456 # groupLoads: array of load ratios, the key is the query group name. A query may belong
457 # to several groups, the most specific group defined here is used.
458 #
459 # flags: bit field
460 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
461 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
462 # DBO_TRX -- wrap entire request in a transaction
463 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
464 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
465 #
466 # max lag: (optional) Maximum replication lag before a slave will taken out of rotation
467 # max threads: (optional) Maximum number of running threads
468 #
469 # These and any other user-defined properties will be assigned to the mLBInfo member
470 # variable of the Database object.
471 #
472 # Leave at false to use the single-server variables above
473 $wgDBservers = false;
474
475 /** How long to wait for a slave to catch up to the master */
476 $wgMasterWaitTimeout = 10;
477
478 /** File to log MySQL errors to */
479 $wgDBerrorLog = false;
480
481 /** When to give an error message */
482 $wgDBClusterTimeout = 10;
483
484 /**
485 * wgDBminWordLen :
486 * MySQL 3.x : used to discard words that MySQL will not return any results for
487 * shorter values configure mysql directly.
488 * MySQL 4.x : ignore it and configure mySQL
489 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
490 */
491 $wgDBminWordLen = 4;
492 /** Set to true if using InnoDB tables */
493 $wgDBtransactions = false;
494 /** Set to true for compatibility with extensions that might be checking.
495 * MySQL 3.23.x is no longer supported. */
496 $wgDBmysql4 = true;
497
498 /**
499 * Set to true to engage MySQL 4.1/5.0 charset-related features;
500 * for now will just cause sending of 'SET NAMES=utf8' on connect.
501 *
502 * WARNING: THIS IS EXPERIMENTAL!
503 *
504 * May break if you're not using the table defs from mysql5/tables.sql.
505 * May break if you're upgrading an existing wiki if set differently.
506 * Broken symptoms likely to include incorrect behavior with page titles,
507 * usernames, comments etc containing non-ASCII characters.
508 * Might also cause failures on the object cache and other things.
509 *
510 * Even correct usage may cause failures with Unicode supplementary
511 * characters (those not in the Basic Multilingual Plane) unless MySQL
512 * has enhanced their Unicode support.
513 */
514 $wgDBmysql5 = false;
515
516 /**
517 * Other wikis on this site, can be administered from a single developer
518 * account.
519 * Array numeric key => database name
520 */
521 $wgLocalDatabases = array();
522
523 /**
524 * Object cache settings
525 * See Defines.php for types
526 */
527 $wgMainCacheType = CACHE_NONE;
528 $wgMessageCacheType = CACHE_ANYTHING;
529 $wgParserCacheType = CACHE_ANYTHING;
530
531 $wgParserCacheExpireTime = 86400;
532
533 $wgSessionsInMemcached = false;
534 $wgLinkCacheMemcached = false; # Not fully tested
535
536 /**
537 * Memcached-specific settings
538 * See docs/memcached.txt
539 */
540 $wgUseMemCached = false;
541 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
542 $wgMemCachedServers = array( '127.0.0.1:11000' );
543 $wgMemCachedDebug = false;
544 $wgMemCachedPersistent = false;
545
546 /**
547 * Directory for local copy of message cache, for use in addition to memcached
548 */
549 $wgLocalMessageCache = false;
550
551 /**
552 * Directory for compiled constant message array databases
553 * WARNING: turning anything on will just break things, aaaaaah!!!!
554 */
555 $wgCachedMessageArrays = false;
556
557 # Language settings
558 #
559 /** Site language code, should be one of ./languages/Language(.*).php */
560 $wgLanguageCode = 'en';
561
562 /**
563 * Some languages need different word forms, usually for different cases.
564 * Used in Language::convertGrammar().
565 */
566 $wgGrammarForms = array();
567 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
568
569 /** Treat language links as magic connectors, not inline links */
570 $wgInterwikiMagic = true;
571
572 /** Hide interlanguage links from the sidebar */
573 $wgHideInterlanguageLinks = false;
574
575
576 /** We speak UTF-8 all the time now, unless some oddities happen */
577 $wgInputEncoding = 'UTF-8';
578 $wgOutputEncoding = 'UTF-8';
579 $wgEditEncoding = '';
580
581 # Set this to eg 'ISO-8859-1' to perform character set
582 # conversion when loading old revisions not marked with
583 # "utf-8" flag. Use this when converting wiki to UTF-8
584 # without the burdensome mass conversion of old text data.
585 #
586 # NOTE! This DOES NOT touch any fields other than old_text.
587 # Titles, comments, user names, etc still must be converted
588 # en masse in the database before continuing as a UTF-8 wiki.
589 $wgLegacyEncoding = false;
590
591 /**
592 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
593 * create stub reference rows in the text table instead of copying
594 * the full text of all current entries from 'cur' to 'text'.
595 *
596 * This will speed up the conversion step for large sites, but
597 * requires that the cur table be kept around for those revisions
598 * to remain viewable.
599 *
600 * maintenance/migrateCurStubs.php can be used to complete the
601 * migration in the background once the wiki is back online.
602 *
603 * This option affects the updaters *only*. Any present cur stub
604 * revisions will be readable at runtime regardless of this setting.
605 */
606 $wgLegacySchemaConversion = false;
607
608 $wgMimeType = 'text/html';
609 $wgJsMimeType = 'text/javascript';
610 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
611 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
612
613 /** Enable to allow rewriting dates in page text.
614 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
615 $wgUseDynamicDates = false;
616 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
617 * the interface is set to English
618 */
619 $wgAmericanDates = false;
620 /**
621 * For Hindi and Arabic use local numerals instead of Western style (0-9)
622 * numerals in interface.
623 */
624 $wgTranslateNumerals = true;
625
626
627 # Translation using MediaWiki: namespace
628 # This will increase load times by 25-60% unless memcached is installed
629 # Interface messages will be loaded from the database.
630 $wgUseDatabaseMessages = true;
631 $wgMsgCacheExpiry = 86400;
632
633 # Whether to enable language variant conversion.
634 $wgDisableLangConversion = false;
635
636 # Whether to use zhdaemon to perform Chinese text processing
637 # zhdaemon is under developement, so normally you don't want to
638 # use it unless for testing
639 $wgUseZhdaemon = false;
640 $wgZhdaemonHost="localhost";
641 $wgZhdaemonPort=2004;
642
643 /** Normally you can ignore this and it will be something
644 like $wgMetaNamespace . "_talk". In some languages, you
645 may want to set this manually for grammatical reasons.
646 It is currently only respected by those languages
647 where it might be relevant and where no automatic
648 grammar converter exists.
649 */
650 $wgMetaNamespaceTalk = false;
651
652 # Miscellaneous configuration settings
653 #
654
655 $wgLocalInterwiki = 'w';
656 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
657
658 /** Interwiki caching settings.
659 $wgInterwikiCache specifies path to constant database file
660 This cdb database is generated by dumpInterwiki from maintenance
661 and has such key formats:
662 dbname:key - a simple key (e.g. enwiki:meta)
663 _sitename:key - site-scope key (e.g. wiktionary:meta)
664 __global:key - global-scope key (e.g. __global:meta)
665 __sites:dbname - site mapping (e.g. __sites:enwiki)
666 Sites mapping just specifies site name, other keys provide
667 "local url" data layout.
668 $wgInterwikiScopes specify number of domains to check for messages:
669 1 - Just wiki(db)-level
670 2 - wiki and global levels
671 3 - site levels
672 $wgInterwikiFallbackSite - if unable to resolve from cache
673 */
674 $wgInterwikiCache = false;
675 $wgInterwikiScopes = 3;
676 $wgInterwikiFallbackSite = 'wiki';
677
678 /**
679 * If local interwikis are set up which allow redirects,
680 * set this regexp to restrict URLs which will be displayed
681 * as 'redirected from' links.
682 *
683 * It might look something like this:
684 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
685 *
686 * Leave at false to avoid displaying any incoming redirect markers.
687 * This does not affect intra-wiki redirects, which don't change
688 * the URL.
689 */
690 $wgRedirectSources = false;
691
692
693 $wgShowIPinHeader = true; # For non-logged in users
694 $wgMaxNameChars = 255; # Maximum number of bytes in username
695 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
696
697 $wgExtraSubtitle = '';
698 $wgSiteSupportPage = ''; # A page where you users can receive donations
699
700 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
701
702 /**
703 * The debug log file should be not be publicly accessible if it is used, as it
704 * may contain private data. */
705 $wgDebugLogFile = '';
706
707 /**#@+
708 * @global bool
709 */
710 $wgDebugRedirects = false;
711 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
712
713 $wgDebugComments = false;
714 $wgReadOnly = null;
715 $wgLogQueries = false;
716
717 /**
718 * Write SQL queries to the debug log
719 */
720 $wgDebugDumpSql = false;
721
722 /**
723 * Set to an array of log group keys to filenames.
724 * If set, wfDebugLog() output for that group will go to that file instead
725 * of the regular $wgDebugLogFile. Useful for enabling selective logging
726 * in production.
727 */
728 $wgDebugLogGroups = array();
729
730 /**
731 * Whether to show "we're sorry, but there has been a database error" pages.
732 * Displaying errors aids in debugging, but may display information useful
733 * to an attacker.
734 */
735 $wgShowSQLErrors = false;
736
737 /**
738 * If true, some error messages will be colorized when running scripts on the
739 * command line; this can aid picking important things out when debugging.
740 * Ignored when running on Windows or when output is redirected to a file.
741 */
742 $wgColorErrors = true;
743
744 /**
745 * disable experimental dmoz-like category browsing. Output things like:
746 * Encyclopedia > Music > Style of Music > Jazz
747 */
748 $wgUseCategoryBrowser = false;
749
750 /**
751 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
752 * to speed up output of the same page viewed by another user with the
753 * same options.
754 *
755 * This can provide a significant speedup for medium to large pages,
756 * so you probably want to keep it on.
757 */
758 $wgEnableParserCache = true;
759
760 /**
761 * If on, the sidebar navigation links are cached for users with the
762 * current language set. This can save a touch of load on a busy site
763 * by shaving off extra message lookups.
764 *
765 * However it is also fragile: changing the site configuration, or
766 * having a variable $wgArticlePath, can produce broken links that
767 * don't update as expected.
768 */
769 $wgEnableSidebarCache = false;
770
771 /**
772 * Under which condition should a page in the main namespace be counted
773 * as a valid article? If $wgUseCommaCount is set to true, it will be
774 * counted if it contains at least one comma. If it is set to false
775 * (default), it will only be counted if it contains at least one [[wiki
776 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
777 *
778 * Retroactively changing this variable will not affect
779 * the existing count (cf. maintenance/recount.sql).
780 */
781 $wgUseCommaCount = false;
782
783 /**#@-*/
784
785 /**
786 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
787 * values are easier on the database. A value of 1 causes the counters to be
788 * updated on every hit, any higher value n cause them to update *on average*
789 * every n hits. Should be set to either 1 or something largish, eg 1000, for
790 * maximum efficiency.
791 */
792 $wgHitcounterUpdateFreq = 1;
793
794 # Basic user rights and block settings
795 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
796 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
797 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
798 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
799
800 # Pages anonymous user may see as an array, e.g.:
801 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
802 # NOTE: This will only work if $wgGroupPermissions['*']['read']
803 # is false -- see below. Otherwise, ALL pages are accessible,
804 # regardless of this setting.
805 # Also note that this will only protect _pages in the wiki_.
806 # Uploaded files will remain readable. Make your upload
807 # directory name unguessable, or use .htaccess to protect it.
808 $wgWhitelistRead = false;
809
810 /**
811 * Should editors be required to have a validated e-mail
812 * address before being allowed to edit?
813 */
814 $wgEmailConfirmToEdit=false;
815
816 /**
817 * Permission keys given to users in each group.
818 * All users are implicitly in the '*' group including anonymous visitors;
819 * logged-in users are all implicitly in the 'user' group. These will be
820 * combined with the permissions of all groups that a given user is listed
821 * in in the user_groups table.
822 *
823 * Functionality to make pages inaccessible has not been extensively tested
824 * for security. Use at your own risk!
825 *
826 * This replaces wgWhitelistAccount and wgWhitelistEdit
827 */
828 $wgGroupPermissions = array();
829
830 // Implicit group for all visitors
831 $wgGroupPermissions['*' ]['createaccount'] = true;
832 $wgGroupPermissions['*' ]['read'] = true;
833 $wgGroupPermissions['*' ]['edit'] = true;
834 $wgGroupPermissions['*' ]['createpage'] = true;
835 $wgGroupPermissions['*' ]['createtalk'] = true;
836
837 // Implicit group for all logged-in accounts
838 $wgGroupPermissions['user' ]['move'] = true;
839 $wgGroupPermissions['user' ]['read'] = true;
840 $wgGroupPermissions['user' ]['edit'] = true;
841 $wgGroupPermissions['user' ]['createpage'] = true;
842 $wgGroupPermissions['user' ]['createtalk'] = true;
843 $wgGroupPermissions['user' ]['upload'] = true;
844 $wgGroupPermissions['user' ]['reupload'] = true;
845 $wgGroupPermissions['user' ]['reupload-shared'] = true;
846 $wgGroupPermissions['user' ]['minoredit'] = true;
847
848 // Implicit group for accounts that pass $wgAutoConfirmAge
849 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
850
851 // Users with bot privilege can have their edits hidden
852 // from various log pages by default
853 $wgGroupPermissions['bot' ]['bot'] = true;
854 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
855
856 // Most extra permission abilities go to this group
857 $wgGroupPermissions['sysop']['block'] = true;
858 $wgGroupPermissions['sysop']['createaccount'] = true;
859 $wgGroupPermissions['sysop']['delete'] = true;
860 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
861 $wgGroupPermissions['sysop']['editinterface'] = true;
862 $wgGroupPermissions['sysop']['import'] = true;
863 $wgGroupPermissions['sysop']['importupload'] = true;
864 $wgGroupPermissions['sysop']['move'] = true;
865 $wgGroupPermissions['sysop']['patrol'] = true;
866 $wgGroupPermissions['sysop']['protect'] = true;
867 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
868 $wgGroupPermissions['sysop']['rollback'] = true;
869 $wgGroupPermissions['sysop']['trackback'] = true;
870 $wgGroupPermissions['sysop']['upload'] = true;
871 $wgGroupPermissions['sysop']['reupload'] = true;
872 $wgGroupPermissions['sysop']['reupload-shared'] = true;
873 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
874 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
875
876 // Permission to change users' group assignments
877 $wgGroupPermissions['bureaucrat']['userrights'] = true;
878
879 // Experimental permissions, not ready for production use
880 //$wgGroupPermissions['sysop']['deleterevision'] = true;
881 //$wgGroupPermissions['bureaucrat']['hiderevision'] = true;
882
883 /**
884 * The developer group is deprecated, but can be activated if need be
885 * to use the 'lockdb' and 'unlockdb' special pages. Those require
886 * that a lock file be defined and creatable/removable by the web
887 * server.
888 */
889 # $wgGroupPermissions['developer']['siteadmin'] = true;
890
891 /**
892 * Set of available actions that can be restricted via Special:Protect
893 * You probably shouldn't change this.
894 * Translated trough restriction-* messages.
895 */
896 $wgRestrictionTypes = array( 'edit', 'move' );
897
898 /**
899 * Set of permission keys that can be selected via Special:Protect.
900 * 'autoconfirm' allows all registerd users if $wgAutoConfirmAge is 0.
901 */
902 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
903
904
905 /**
906 * Number of seconds an account is required to age before
907 * it's given the implicit 'autoconfirm' group membership.
908 * This can be used to limit privileges of new accounts.
909 *
910 * Accounts created by earlier versions of the software
911 * may not have a recorded creation date, and will always
912 * be considered to pass the age test.
913 *
914 * When left at 0, all registered accounts will pass.
915 */
916 $wgAutoConfirmAge = 0;
917 //$wgAutoConfirmAge = 600; // ten minutes
918 //$wgAutoConfirmAge = 3600*24; // one day
919
920
921
922 # Proxy scanner settings
923 #
924
925 /**
926 * If you enable this, every editor's IP address will be scanned for open HTTP
927 * proxies.
928 *
929 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
930 * ISP and ask for your server to be shut down.
931 *
932 * You have been warned.
933 */
934 $wgBlockOpenProxies = false;
935 /** Port we want to scan for a proxy */
936 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
937 /** Script used to scan */
938 $wgProxyScriptPath = "$IP/proxy_check.php";
939 /** */
940 $wgProxyMemcExpiry = 86400;
941 /** This should always be customised in LocalSettings.php */
942 $wgSecretKey = false;
943 /** big list of banned IP addresses, in the keys not the values */
944 $wgProxyList = array();
945 /** deprecated */
946 $wgProxyKey = false;
947
948 /** Number of accounts each IP address may create, 0 to disable.
949 * Requires memcached */
950 $wgAccountCreationThrottle = 0;
951
952 # Client-side caching:
953
954 /** Allow client-side caching of pages */
955 $wgCachePages = true;
956
957 /**
958 * Set this to current time to invalidate all prior cached pages. Affects both
959 * client- and server-side caching.
960 * You can get the current date on your server by using the command:
961 * date +%Y%m%d%H%M%S
962 */
963 $wgCacheEpoch = '20030516000000';
964
965
966 # Server-side caching:
967
968 /**
969 * This will cache static pages for non-logged-in users to reduce
970 * database traffic on public sites.
971 * Must set $wgShowIPinHeader = false
972 */
973 $wgUseFileCache = false;
974 /** Directory where the cached page will be saved */
975 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
976
977 /**
978 * When using the file cache, we can store the cached HTML gzipped to save disk
979 * space. Pages will then also be served compressed to clients that support it.
980 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
981 * the default LocalSettings.php! If you enable this, remove that setting first.
982 *
983 * Requires zlib support enabled in PHP.
984 */
985 $wgUseGzip = false;
986
987 # Email notification settings
988 #
989
990 /** For email notification on page changes */
991 $wgPasswordSender = $wgEmergencyContact;
992
993 # true: from page editor if s/he opted-in
994 # false: Enotif mails appear to come from $wgEmergencyContact
995 $wgEnotifFromEditor = false;
996
997 // TODO move UPO to preferences probably ?
998 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
999 # If set to false, the corresponding input form on the user preference page is suppressed
1000 # It call this to be a "user-preferences-option (UPO)"
1001 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1002 $wgEnotifWatchlist = false; # UPO
1003 $wgEnotifUserTalk = false; # UPO
1004 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1005 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1006 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1007
1008
1009 /** Show watching users in recent changes, watchlist and page history views */
1010 $wgRCShowWatchingUsers = false; # UPO
1011 /** Show watching users in Page views */
1012 $wgPageShowWatchingUsers = false;
1013 /**
1014 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1015 * view for watched pages with new changes */
1016 $wgShowUpdatedMarker = true;
1017
1018 $wgCookieExpiration = 2592000;
1019
1020 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1021 * problems when the user requests two pages within a short period of time. This
1022 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1023 * a grace period.
1024 */
1025 $wgClockSkewFudge = 5;
1026
1027 # Squid-related settings
1028 #
1029
1030 /** Enable/disable Squid */
1031 $wgUseSquid = false;
1032
1033 /** If you run Squid3 with ESI support, enable this (default:false): */
1034 $wgUseESI = false;
1035
1036 /** Internal server name as known to Squid, if different */
1037 # $wgInternalServer = 'http://yourinternal.tld:8000';
1038 $wgInternalServer = $wgServer;
1039
1040 /**
1041 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1042 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1043 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1044 * days
1045 */
1046 $wgSquidMaxage = 18000;
1047
1048 /**
1049 * A list of proxy servers (ips if possible) to purge on changes don't specify
1050 * ports here (80 is default)
1051 */
1052 # $wgSquidServers = array('127.0.0.1');
1053 $wgSquidServers = array();
1054 $wgSquidServersNoPurge = array();
1055
1056 /** Maximum number of titles to purge in any one client operation */
1057 $wgMaxSquidPurgeTitles = 400;
1058
1059 /** HTCP multicast purging */
1060 $wgHTCPPort = 4827;
1061 $wgHTCPMulticastTTL = 1;
1062 # $wgHTCPMulticastAddress = "224.0.0.85";
1063
1064 # Cookie settings:
1065 #
1066 /**
1067 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1068 * or ".any.subdomain.net"
1069 */
1070 $wgCookieDomain = '';
1071 $wgCookiePath = '/';
1072 $wgCookieSecure = ($wgProto == 'https');
1073 $wgDisableCookieCheck = false;
1074
1075 /** Whether to allow inline image pointing to other websites */
1076 $wgAllowExternalImages = true;
1077
1078 /** If the above is false, you can specify an exception here. Image URLs
1079 * that start with this string are then rendered, while all others are not.
1080 * You can use this to set up a trusted, simple repository of images.
1081 *
1082 * Example:
1083 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1084 */
1085 $wgAllowExternalImagesFrom = '';
1086
1087 /** Disable database-intensive features */
1088 $wgMiserMode = false;
1089 /** Disable all query pages if miser mode is on, not just some */
1090 $wgDisableQueryPages = false;
1091 /** Generate a watchlist once every hour or so */
1092 $wgUseWatchlistCache = false;
1093 /** The hour or so mentioned above */
1094 $wgWLCacheTimeout = 3600;
1095 /** Number of links to a page required before it is deemed "wanted" */
1096 $wgWantedPagesThreshold = 1;
1097
1098 /**
1099 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1100 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1101 * (ImageMagick) installed and available in the PATH.
1102 * Please see math/README for more information.
1103 */
1104 $wgUseTeX = false;
1105 /** Location of the texvc binary */
1106 $wgTexvc = './math/texvc';
1107
1108 #
1109 # Profiling / debugging
1110 #
1111 # You have to create a 'profiling' table in your database before using
1112 # profiling see maintenance/archives/patch-profiling.sql .
1113
1114 /** Enable for more detailed by-function times in debug log */
1115 $wgProfiling = false;
1116 /** Only record profiling info for pages that took longer than this */
1117 $wgProfileLimit = 0.0;
1118 /** Don't put non-profiling info into log file */
1119 $wgProfileOnly = false;
1120 /** Log sums from profiling into "profiling" table in db. */
1121 $wgProfileToDatabase = false;
1122 /** Only profile every n requests when profiling is turned on */
1123 $wgProfileSampleRate = 1;
1124 /** If true, print a raw call tree instead of per-function report */
1125 $wgProfileCallTree = false;
1126 /** If not empty, specifies profiler type to load */
1127 $wgProfilerType = '';
1128
1129 /** Settings for UDP profiler */
1130 $wgUDPProfilerHost = '127.0.0.1';
1131 $wgUDPProfilerPort = '3811';
1132
1133 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1134 $wgDebugProfiling = false;
1135 /** Output debug message on every wfProfileIn/wfProfileOut */
1136 $wgDebugFunctionEntry = 0;
1137 /** Lots of debugging output from SquidUpdate.php */
1138 $wgDebugSquid = false;
1139
1140 $wgDisableCounters = false;
1141 $wgDisableTextSearch = false;
1142 $wgDisableSearchContext = false;
1143 /**
1144 * If you've disabled search semi-permanently, this also disables updates to the
1145 * table. If you ever re-enable, be sure to rebuild the search table.
1146 */
1147 $wgDisableSearchUpdate = false;
1148 /** Uploads have to be specially set up to be secure */
1149 $wgEnableUploads = false;
1150 /**
1151 * Show EXIF data, on by default if available.
1152 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1153 */
1154 $wgShowEXIF = function_exists( 'exif_read_data' );
1155
1156 /**
1157 * Set to true to enable the upload _link_ while local uploads are disabled.
1158 * Assumes that the special page link will be bounced to another server where
1159 * uploads do work.
1160 */
1161 $wgRemoteUploads = false;
1162 $wgDisableAnonTalk = false;
1163 /**
1164 * Do DELETE/INSERT for link updates instead of incremental
1165 */
1166 $wgUseDumbLinkUpdate = false;
1167
1168 /**
1169 * Anti-lock flags - bitfield
1170 * ALF_PRELOAD_LINKS
1171 * Preload links during link update for save
1172 * ALF_PRELOAD_EXISTENCE
1173 * Preload cur_id during replaceLinkHolders
1174 * ALF_NO_LINK_LOCK
1175 * Don't use locking reads when updating the link table. This is
1176 * necessary for wikis with a high edit rate for performance
1177 * reasons, but may cause link table inconsistency
1178 * ALF_NO_BLOCK_LOCK
1179 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1180 * wikis.
1181 */
1182 $wgAntiLockFlags = 0;
1183
1184 /**
1185 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1186 * fall back to the old behaviour (no merging).
1187 */
1188 $wgDiff3 = '/usr/bin/diff3';
1189
1190 /**
1191 * We can also compress text in the old revisions table. If this is set on, old
1192 * revisions will be compressed on page save if zlib support is available. Any
1193 * compressed revisions will be decompressed on load regardless of this setting
1194 * *but will not be readable at all* if zlib support is not available.
1195 */
1196 $wgCompressRevisions = false;
1197
1198 /**
1199 * This is the list of preferred extensions for uploading files. Uploading files
1200 * with extensions not in this list will trigger a warning.
1201 */
1202 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1203
1204 /** Files with these extensions will never be allowed as uploads. */
1205 $wgFileBlacklist = array(
1206 # HTML may contain cookie-stealing JavaScript and web bugs
1207 'html', 'htm', 'js', 'jsb',
1208 # PHP scripts may execute arbitrary code on the server
1209 'php', 'phtml', 'php3', 'php4', 'phps',
1210 # Other types that may be interpreted by some servers
1211 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1212 # May contain harmful executables for Windows victims
1213 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1214
1215 /** Files with these mime types will never be allowed as uploads
1216 * if $wgVerifyMimeType is enabled.
1217 */
1218 $wgMimeTypeBlacklist= array(
1219 # HTML may contain cookie-stealing JavaScript and web bugs
1220 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1221 # PHP scripts may execute arbitrary code on the server
1222 'application/x-php', 'text/x-php',
1223 # Other types that may be interpreted by some servers
1224 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1225 # Windows metafile, client-side vulnerability on some systems
1226 'application/x-msmetafile'
1227 );
1228
1229 /** This is a flag to determine whether or not to check file extensions on upload. */
1230 $wgCheckFileExtensions = true;
1231
1232 /**
1233 * If this is turned off, users may override the warning for files not covered
1234 * by $wgFileExtensions.
1235 */
1236 $wgStrictFileExtensions = true;
1237
1238 /** Warn if uploaded files are larger than this */
1239 $wgUploadSizeWarning = 150 * 1024;
1240
1241 /** For compatibility with old installations set to false */
1242 $wgPasswordSalt = true;
1243
1244 /** Which namespaces should support subpages?
1245 * See Language.php for a list of namespaces.
1246 */
1247 $wgNamespacesWithSubpages = array(
1248 NS_TALK => true,
1249 NS_USER => true,
1250 NS_USER_TALK => true,
1251 NS_PROJECT_TALK => true,
1252 NS_IMAGE_TALK => true,
1253 NS_MEDIAWIKI_TALK => true,
1254 NS_TEMPLATE_TALK => true,
1255 NS_HELP_TALK => true,
1256 NS_CATEGORY_TALK => true
1257 );
1258
1259 $wgNamespacesToBeSearchedDefault = array(
1260 NS_MAIN => true,
1261 );
1262
1263 /** If set, a bold ugly notice will show up at the top of every page. */
1264 $wgSiteNotice = '';
1265
1266
1267 #
1268 # Images settings
1269 #
1270
1271 /** dynamic server side image resizing ("Thumbnails") */
1272 $wgUseImageResize = false;
1273
1274 /**
1275 * Resizing can be done using PHP's internal image libraries or using
1276 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1277 * These support more file formats than PHP, which only supports PNG,
1278 * GIF, JPG, XBM and WBMP.
1279 *
1280 * Use Image Magick instead of PHP builtin functions.
1281 */
1282 $wgUseImageMagick = false;
1283 /** The convert command shipped with ImageMagick */
1284 $wgImageMagickConvertCommand = '/usr/bin/convert';
1285
1286 /**
1287 * Use another resizing converter, e.g. GraphicMagick
1288 * %s will be replaced with the source path, %d with the destination
1289 * %w and %h will be replaced with the width and height
1290 *
1291 * An example is provided for GraphicMagick
1292 * Leave as false to skip this
1293 */
1294 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1295 $wgCustomConvertCommand = false;
1296
1297 # Scalable Vector Graphics (SVG) may be uploaded as images.
1298 # Since SVG support is not yet standard in browsers, it is
1299 # necessary to rasterize SVGs to PNG as a fallback format.
1300 #
1301 # An external program is required to perform this conversion:
1302 $wgSVGConverters = array(
1303 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1304 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1305 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1306 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1307 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1308 );
1309 /** Pick one of the above */
1310 $wgSVGConverter = 'ImageMagick';
1311 /** If not in the executable PATH, specify */
1312 $wgSVGConverterPath = '';
1313 /** Don't scale a SVG larger than this */
1314 $wgSVGMaxSize = 1024;
1315 /**
1316 * Don't thumbnail an image if it will use too much working memory
1317 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1318 * 12.5 million pixels or 3500x3500
1319 */
1320 $wgMaxImageArea = 1.25e7;
1321 /**
1322 * If rendered thumbnail files are older than this timestamp, they
1323 * will be rerendered on demand as if the file didn't already exist.
1324 * Update if there is some need to force thumbs and SVG rasterizations
1325 * to rerender, such as fixes to rendering bugs.
1326 */
1327 $wgThumbnailEpoch = '20030516000000';
1328
1329 /**
1330 * If set, inline scaled images will still produce <img> tags ready for
1331 * output instead of showing an error message.
1332 *
1333 * This may be useful if errors are transitory, especially if the site
1334 * is configured to automatically render thumbnails on request.
1335 *
1336 * On the other hand, it may obscure error conditions from debugging.
1337 * Enable the debug log or the 'thumbnail' log group to make sure errors
1338 * are logged to a file for review.
1339 */
1340 $wgIgnoreImageErrors = false;
1341
1342
1343 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1344 if( !isset( $wgCommandLineMode ) ) {
1345 $wgCommandLineMode = false;
1346 }
1347
1348
1349 #
1350 # Recent changes settings
1351 #
1352
1353 /** Log IP addresses in the recentchanges table */
1354 $wgPutIPinRC = true;
1355
1356 /**
1357 * Recentchanges items are periodically purged; entries older than this many
1358 * seconds will go.
1359 * For one week : 7 * 24 * 3600
1360 */
1361 $wgRCMaxAge = 7 * 24 * 3600;
1362
1363
1364 # Send RC updates via UDP
1365 $wgRC2UDPAddress = false;
1366 $wgRC2UDPPort = false;
1367 $wgRC2UDPPrefix = '';
1368
1369 #
1370 # Copyright and credits settings
1371 #
1372
1373 /** RDF metadata toggles */
1374 $wgEnableDublinCoreRdf = false;
1375 $wgEnableCreativeCommonsRdf = false;
1376
1377 /** Override for copyright metadata.
1378 * TODO: these options need documentation
1379 */
1380 $wgRightsPage = NULL;
1381 $wgRightsUrl = NULL;
1382 $wgRightsText = NULL;
1383 $wgRightsIcon = NULL;
1384
1385 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1386 $wgCopyrightIcon = NULL;
1387
1388 /** Set this to true if you want detailed copyright information forms on Upload. */
1389 $wgUseCopyrightUpload = false;
1390
1391 /** Set this to false if you want to disable checking that detailed copyright
1392 * information values are not empty. */
1393 $wgCheckCopyrightUpload = true;
1394
1395 /**
1396 * Set this to the number of authors that you want to be credited below an
1397 * article text. Set it to zero to hide the attribution block, and a negative
1398 * number (like -1) to show all authors. Note that this will require 2-3 extra
1399 * database hits, which can have a not insignificant impact on performance for
1400 * large wikis.
1401 */
1402 $wgMaxCredits = 0;
1403
1404 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1405 * Otherwise, link to a separate credits page. */
1406 $wgShowCreditsIfMax = true;
1407
1408
1409
1410 /**
1411 * Set this to false to avoid forcing the first letter of links to capitals.
1412 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1413 * appearing with a capital at the beginning of a sentence will *not* go to the
1414 * same place as links in the middle of a sentence using a lowercase initial.
1415 */
1416 $wgCapitalLinks = true;
1417
1418 /**
1419 * List of interwiki prefixes for wikis we'll accept as sources for
1420 * Special:Import (for sysops). Since complete page history can be imported,
1421 * these should be 'trusted'.
1422 *
1423 * If a user has the 'import' permission but not the 'importupload' permission,
1424 * they will only be able to run imports through this transwiki interface.
1425 */
1426 $wgImportSources = array();
1427
1428 /**
1429 * If set to false, disables the full-history option on Special:Export.
1430 * This is currently poorly optimized for long edit histories, so is
1431 * disabled on Wikimedia's sites.
1432 */
1433 $wgExportAllowHistory = true;
1434 $wgExportAllowListContributors = false ;
1435
1436
1437 /** Text matching this regular expression will be recognised as spam
1438 * See http://en.wikipedia.org/wiki/Regular_expression */
1439 $wgSpamRegex = false;
1440 /** Similarly if this function returns true */
1441 $wgFilterCallback = false;
1442
1443 /** Go button goes straight to the edit screen if the article doesn't exist. */
1444 $wgGoToEdit = false;
1445
1446 /** Allow limited user-specified HTML in wiki pages?
1447 * It will be run through a whitelist for security. Set this to false if you
1448 * want wiki pages to consist only of wiki markup. Note that replacements do not
1449 * yet exist for all HTML constructs.*/
1450 $wgUserHtml = true;
1451
1452 /** Allow raw, unchecked HTML in <html>...</html> sections.
1453 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1454 * TO RESTRICT EDITING to only those that you trust
1455 */
1456 $wgRawHtml = false;
1457
1458 /**
1459 * $wgUseTidy: use tidy to make sure HTML output is sane.
1460 * This should only be enabled if $wgUserHtml is true.
1461 * tidy is a free tool that fixes broken HTML.
1462 * See http://www.w3.org/People/Raggett/tidy/
1463 * $wgTidyBin should be set to the path of the binary and
1464 * $wgTidyConf to the path of the configuration file.
1465 * $wgTidyOpts can include any number of parameters.
1466 *
1467 * $wgTidyInternal controls the use of the PECL extension to use an in-
1468 * process tidy library instead of spawning a separate program.
1469 * Normally you shouldn't need to override the setting except for
1470 * debugging. To install, use 'pear install tidy' and add a line
1471 * 'extension=tidy.so' to php.ini.
1472 */
1473 $wgUseTidy = false;
1474 $wgAlwaysUseTidy = false;
1475 $wgTidyBin = 'tidy';
1476 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1477 $wgTidyOpts = '';
1478 $wgTidyInternal = function_exists( 'tidy_load_config' );
1479
1480 /** See list of skins and their symbolic names in languages/Language.php */
1481 $wgDefaultSkin = 'monobook';
1482
1483 /**
1484 * Settings added to this array will override the language globals for the user
1485 * preferences used by anonymous visitors and newly created accounts. (See names
1486 * and sample values in languages/Language.php)
1487 * For instance, to disable section editing links:
1488 * $wgDefaultUserOptions ['editsection'] = 0;
1489 *
1490 */
1491 $wgDefaultUserOptions = array();
1492
1493 /** Whether or not to allow and use real name fields. Defaults to true. */
1494 $wgAllowRealName = true;
1495
1496 /** Use XML parser? */
1497 $wgUseXMLparser = false ;
1498
1499 /** Extensions */
1500 $wgSkinExtensionFunctions = array();
1501 $wgExtensionFunctions = array();
1502 /**
1503 * An array of extension types and inside that their names, versions, authors
1504 * and urls, note that the version and url key can be omitted.
1505 *
1506 * <code>
1507 * $wgExtensionCredits[$type][] = array(
1508 * 'name' => 'Example extension',
1509 * 'version' => 1.9,
1510 * 'author' => 'Foo Barstein',
1511 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1512 * );
1513 * </code>
1514 *
1515 * Where $type is 'specialpage', 'parserhook', or 'other'.
1516 */
1517 $wgExtensionCredits = array();
1518
1519 /**
1520 * Allow user Javascript page?
1521 * This enables a lot of neat customizations, but may
1522 * increase security risk to users and server load.
1523 */
1524 $wgAllowUserJs = false;
1525
1526 /**
1527 * Allow user Cascading Style Sheets (CSS)?
1528 * This enables a lot of neat customizations, but may
1529 * increase security risk to users and server load.
1530 */
1531 $wgAllowUserCss = false;
1532
1533 /** Use the site's Javascript page? */
1534 $wgUseSiteJs = true;
1535
1536 /** Use the site's Cascading Style Sheets (CSS)? */
1537 $wgUseSiteCss = true;
1538
1539 /** Filter for Special:Randompage. Part of a WHERE clause */
1540 $wgExtraRandompageSQL = false;
1541
1542 /** Allow the "info" action, very inefficient at the moment */
1543 $wgAllowPageInfo = false;
1544
1545 /** Maximum indent level of toc. */
1546 $wgMaxTocLevel = 999;
1547
1548 /** Name of the external diff engine to use */
1549 $wgExternalDiffEngine = false;
1550
1551 /** Use RC Patrolling to check for vandalism */
1552 $wgUseRCPatrol = true;
1553
1554 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1555 * eg Recentchanges, Newpages. */
1556 $wgFeedLimit = 50;
1557
1558 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1559 * A cached version will continue to be served out even if changes
1560 * are made, until this many seconds runs out since the last render.
1561 *
1562 * If set to 0, feed caching is disabled. Use this for debugging only;
1563 * feed generation can be pretty slow with diffs.
1564 */
1565 $wgFeedCacheTimeout = 60;
1566
1567 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1568 * pages larger than this size. */
1569 $wgFeedDiffCutoff = 32768;
1570
1571
1572 /**
1573 * Additional namespaces. If the namespaces defined in Language.php and
1574 * Namespace.php are insufficient, you can create new ones here, for example,
1575 * to import Help files in other languages.
1576 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1577 * no longer be accessible. If you rename it, then you can access them through
1578 * the new namespace name.
1579 *
1580 * Custom namespaces should start at 100 to avoid conflicting with standard
1581 * namespaces, and should always follow the even/odd main/talk pattern.
1582 */
1583 #$wgExtraNamespaces =
1584 # array(100 => "Hilfe",
1585 # 101 => "Hilfe_Diskussion",
1586 # 102 => "Aide",
1587 # 103 => "Discussion_Aide"
1588 # );
1589 $wgExtraNamespaces = NULL;
1590
1591 /**
1592 * Limit images on image description pages to a user-selectable limit. In order
1593 * to reduce disk usage, limits can only be selected from a list. This is the
1594 * list of settings the user can choose from:
1595 */
1596 $wgImageLimits = array (
1597 array(320,240),
1598 array(640,480),
1599 array(800,600),
1600 array(1024,768),
1601 array(1280,1024),
1602 array(10000,10000) );
1603
1604 /**
1605 * Adjust thumbnails on image pages according to a user setting. In order to
1606 * reduce disk usage, the values can only be selected from a list. This is the
1607 * list of settings the user can choose from:
1608 */
1609 $wgThumbLimits = array(
1610 120,
1611 150,
1612 180,
1613 200,
1614 250,
1615 300
1616 );
1617
1618 /**
1619 * On category pages, show thumbnail gallery for images belonging to that
1620 * category instead of listing them as articles.
1621 */
1622 $wgCategoryMagicGallery = true;
1623
1624 /**
1625 * Paging limit for categories
1626 */
1627 $wgCategoryPagingLimit = 200;
1628
1629 /**
1630 * Browser Blacklist for unicode non compliant browsers
1631 * Contains a list of regexps : "/regexp/" matching problematic browsers
1632 */
1633 $wgBrowserBlackList = array(
1634 /**
1635 * Netscape 2-4 detection
1636 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
1637 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
1638 * with a negative assertion. The [UIN] identifier specifies the level of security
1639 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
1640 * The language string is unreliable, it is missing on NS4 Mac.
1641 *
1642 * Reference: http://www.psychedelix.com/agents/index.shtml
1643 */
1644 '/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1645 '/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1646 '/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1647
1648 /**
1649 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1650 *
1651 * Known useragents:
1652 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1653 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1654 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1655 * - [...]
1656 *
1657 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1658 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1659 */
1660 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/'
1661 );
1662
1663 /**
1664 * Fake out the timezone that the server thinks it's in. This will be used for
1665 * date display and not for what's stored in the DB. Leave to null to retain
1666 * your server's OS-based timezone value. This is the same as the timezone.
1667 *
1668 * This variable is currently used ONLY for signature formatting, not for
1669 * anything else.
1670 */
1671 # $wgLocaltimezone = 'GMT';
1672 # $wgLocaltimezone = 'PST8PDT';
1673 # $wgLocaltimezone = 'Europe/Sweden';
1674 # $wgLocaltimezone = 'CET';
1675 $wgLocaltimezone = null;
1676
1677 /**
1678 * Set an offset from UTC in minutes to use for the default timezone setting
1679 * for anonymous users and new user accounts.
1680 *
1681 * This setting is used for most date/time displays in the software, and is
1682 * overrideable in user preferences. It is *not* used for signature timestamps.
1683 *
1684 * You can set it to match the configured server timezone like this:
1685 * $wgLocalTZoffset = date("Z") / 60;
1686 *
1687 * If your server is not configured for the timezone you want, you can set
1688 * this in conjunction with the signature timezone and override the TZ
1689 * environment variable like so:
1690 * $wgLocaltimezone="Europe/Berlin";
1691 * putenv("TZ=$wgLocaltimezone");
1692 * $wgLocalTZoffset = date("Z") / 60;
1693 *
1694 * Leave at NULL to show times in universal time (UTC/GMT).
1695 */
1696 $wgLocalTZoffset = null;
1697
1698
1699 /**
1700 * When translating messages with wfMsg(), it is not always clear what should be
1701 * considered UI messages and what shoud be content messages.
1702 *
1703 * For example, for regular wikipedia site like en, there should be only one
1704 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1705 * it as content of the site and call wfMsgForContent(), while for rendering the
1706 * text of the link, we call wfMsg(). The code in default behaves this way.
1707 * However, sites like common do offer different versions of 'mainpage' and the
1708 * like for different languages. This array provides a way to override the
1709 * default behavior. For example, to allow language specific mainpage and
1710 * community portal, set
1711 *
1712 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1713 */
1714 $wgForceUIMsgAsContentMsg = array();
1715
1716
1717 /**
1718 * Authentication plugin.
1719 */
1720 $wgAuth = null;
1721
1722 /**
1723 * Global list of hooks.
1724 * Add a hook by doing:
1725 * $wgHooks['event_name'][] = $function;
1726 * or:
1727 * $wgHooks['event_name'][] = array($function, $data);
1728 * or:
1729 * $wgHooks['event_name'][] = array($object, 'method');
1730 */
1731 $wgHooks = array();
1732
1733 /**
1734 * The logging system has two levels: an event type, which describes the
1735 * general category and can be viewed as a named subset of all logs; and
1736 * an action, which is a specific kind of event that can exist in that
1737 * log type.
1738 */
1739 $wgLogTypes = array( '', 'block', 'protect', 'rights', 'delete', 'upload', 'move' );
1740
1741 /**
1742 * Lists the message key string for each log type. The localized messages
1743 * will be listed in the user interface.
1744 *
1745 * Extensions with custom log types may add to this array.
1746 */
1747 $wgLogNames = array(
1748 '' => 'log',
1749 'block' => 'blocklogpage',
1750 'protect' => 'protectlogpage',
1751 'rights' => 'rightslog',
1752 'delete' => 'dellogpage',
1753 'upload' => 'uploadlogpage',
1754 'move' => 'movelogpage' );
1755
1756 /**
1757 * Lists the message key string for descriptive text to be shown at the
1758 * top of each log type.
1759 *
1760 * Extensions with custom log types may add to this array.
1761 */
1762 $wgLogHeaders = array(
1763 '' => 'alllogstext',
1764 'block' => 'blocklogtext',
1765 'protect' => 'protectlogtext',
1766 'rights' => 'rightslogtext',
1767 'delete' => 'dellogpagetext',
1768 'upload' => 'uploadlogpagetext',
1769 'move' => 'movelogpagetext' );
1770
1771 /**
1772 * Lists the message key string for formatting individual events of each
1773 * type and action when listed in the logs.
1774 *
1775 * Extensions with custom log types may add to this array.
1776 */
1777 $wgLogActions = array(
1778 'block/block' => 'blocklogentry',
1779 'block/unblock' => 'unblocklogentry',
1780 'protect/protect' => 'protectedarticle',
1781 'protect/unprotect' => 'unprotectedarticle',
1782
1783 // TODO: This whole section should be moved to extensions/Makesysop/SpecialMakesysop.php
1784 'rights/rights' => 'rightslogentry',
1785 'rights/addgroup' => 'addgrouplogentry',
1786 'rights/rngroup' => 'renamegrouplogentry',
1787 'rights/chgroup' => 'changegrouplogentry',
1788
1789 'delete/delete' => 'deletedarticle',
1790 'delete/restore' => 'undeletedarticle',
1791 'delete/revision' => 'revdelete-logentry',
1792 'upload/upload' => 'uploadedimage',
1793 'upload/revert' => 'uploadedimage',
1794 'move/move' => '1movedto2',
1795 'move/move_redir' => '1movedto2_redir' );
1796
1797 /**
1798 * Experimental preview feature to fetch rendered text
1799 * over an XMLHttpRequest from JavaScript instead of
1800 * forcing a submit and reload of the whole page.
1801 * Leave disabled unless you're testing it.
1802 */
1803 $wgLivePreview = false;
1804
1805 /**
1806 * Disable the internal MySQL-based search, to allow it to be
1807 * implemented by an extension instead.
1808 */
1809 $wgDisableInternalSearch = false;
1810
1811 /**
1812 * Set this to a URL to forward search requests to some external location.
1813 * If the URL includes '$1', this will be replaced with the URL-encoded
1814 * search term.
1815 *
1816 * For example, to forward to Google you'd have something like:
1817 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1818 * '&domains=http://example.com' .
1819 * '&sitesearch=http://example.com' .
1820 * '&ie=utf-8&oe=utf-8';
1821 */
1822 $wgSearchForwardUrl = null;
1823
1824 /**
1825 * If true, external URL links in wiki text will be given the
1826 * rel="nofollow" attribute as a hint to search engines that
1827 * they should not be followed for ranking purposes as they
1828 * are user-supplied and thus subject to spamming.
1829 */
1830 $wgNoFollowLinks = true;
1831
1832 /**
1833 * Namespaces in which $wgNoFollowLinks doesn't apply.
1834 * See Language.php for a list of namespaces.
1835 */
1836 $wgNoFollowNsExceptions = array();
1837
1838 /**
1839 * Specifies the minimal length of a user password. If set to
1840 * 0, empty passwords are allowed.
1841 */
1842 $wgMinimalPasswordLength = 0;
1843
1844 /**
1845 * Activate external editor interface for files and pages
1846 * See http://meta.wikimedia.org/wiki/Help:External_editors
1847 */
1848 $wgUseExternalEditor = true;
1849
1850 /** Whether or not to sort special pages in Special:Specialpages */
1851
1852 $wgSortSpecialPages = true;
1853
1854 /**
1855 * Specify the name of a skin that should not be presented in the
1856 * list of available skins.
1857 * Use for blacklisting a skin which you do not want to remove
1858 * from the .../skins/ directory
1859 */
1860 $wgSkipSkin = '';
1861 $wgSkipSkins = array(); # More of the same
1862
1863 /**
1864 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1865 */
1866 $wgDisabledActions = array();
1867
1868 /**
1869 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1870 */
1871 $wgDisableHardRedirects = false;
1872
1873 /**
1874 * Use http.dnsbl.sorbs.net to check for open proxies
1875 */
1876 $wgEnableSorbs = false;
1877
1878 /**
1879 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1880 * methods might say
1881 */
1882 $wgProxyWhitelist = array();
1883
1884 /**
1885 * Simple rate limiter options to brake edit floods.
1886 * Maximum number actions allowed in the given number of seconds;
1887 * after that the violating client receives HTTP 500 error pages
1888 * until the period elapses.
1889 *
1890 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
1891 *
1892 * This option set is experimental and likely to change.
1893 * Requires memcached.
1894 */
1895 $wgRateLimits = array(
1896 'edit' => array(
1897 'anon' => null, // for any and all anonymous edits (aggregate)
1898 'user' => null, // for each logged-in user
1899 'newbie' => null, // for each recent account; overrides 'user'
1900 'ip' => null, // for each anon and recent account
1901 'subnet' => null, // ... with final octet removed
1902 ),
1903 'move' => array(
1904 'user' => null,
1905 'newbie' => null,
1906 'ip' => null,
1907 'subnet' => null,
1908 ),
1909 'mailpassword' => array(
1910 'anon' => NULL,
1911 ),
1912 );
1913
1914 /**
1915 * Set to a filename to log rate limiter hits.
1916 */
1917 $wgRateLimitLog = null;
1918
1919 /**
1920 * Array of groups which should never trigger the rate limiter
1921 */
1922 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
1923
1924 /**
1925 * On Special:Unusedimages, consider images "used", if they are put
1926 * into a category. Default (false) is not to count those as used.
1927 */
1928 $wgCountCategorizedImagesAsUsed = false;
1929
1930 /**
1931 * External stores allow including content
1932 * from non database sources following URL links
1933 *
1934 * Short names of ExternalStore classes may be specified in an array here:
1935 * $wgExternalStores = array("http","file","custom")...
1936 *
1937 * CAUTION: Access to database might lead to code execution
1938 */
1939 $wgExternalStores = false;
1940
1941 /**
1942 * An array of external mysql servers, e.g.
1943 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1944 */
1945 $wgExternalServers = array();
1946
1947 /**
1948 * The place to put new revisions, false to put them in the local text table.
1949 * Part of a URL, e.g. DB://cluster1
1950 *
1951 * Can be an array instead of a single string, to enable data distribution. Keys
1952 * must be consecutive integers, starting at zero. Example:
1953 *
1954 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
1955 *
1956 */
1957 $wgDefaultExternalStore = false;
1958
1959 /**
1960 * list of trusted media-types and mime types.
1961 * Use the MEDIATYPE_xxx constants to represent media types.
1962 * This list is used by Image::isSafeFile
1963 *
1964 * Types not listed here will have a warning about unsafe content
1965 * displayed on the images description page. It would also be possible
1966 * to use this for further restrictions, like disabling direct
1967 * [[media:...]] links for non-trusted formats.
1968 */
1969 $wgTrustedMediaFormats= array(
1970 MEDIATYPE_BITMAP, //all bitmap formats
1971 MEDIATYPE_AUDIO, //all audio formats
1972 MEDIATYPE_VIDEO, //all plain video formats
1973 "image/svg", //svg (only needed if inline rendering of svg is not supported)
1974 "application/pdf", //PDF files
1975 #"application/x-shockwafe-flash", //flash/shockwave movie
1976 );
1977
1978 /**
1979 * Allow special page inclusions such as {{Special:Allpages}}
1980 */
1981 $wgAllowSpecialInclusion = true;
1982
1983 /**
1984 * Timeout for HTTP requests done via CURL
1985 */
1986 $wgHTTPTimeout = 3;
1987
1988 /**
1989 * Proxy to use for CURL requests.
1990 */
1991 $wgHTTPProxy = false;
1992
1993 /**
1994 * Enable interwiki transcluding. Only when iw_trans=1.
1995 */
1996 $wgEnableScaryTranscluding = false;
1997 /**
1998 * Expiry time for interwiki transclusion
1999 */
2000 $wgTranscludeCacheExpiry = 3600;
2001
2002 /**
2003 * Support blog-style "trackbacks" for articles. See
2004 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2005 */
2006 $wgUseTrackbacks = false;
2007
2008 /**
2009 * Enable filtering of categories in Recentchanges
2010 */
2011 $wgAllowCategorizedRecentChanges = false ;
2012
2013 /**
2014 * Number of jobs to perform per request. May be less than one in which case
2015 * jobs are performed probabalistically. If this is zero, jobs will not be done
2016 * during ordinary apache requests. In this case, maintenance/doJobs.php should
2017 * be run periodically.
2018 */
2019 $wgJobRunRate = 1;
2020
2021 /**
2022 * Log file for job execution
2023 */
2024 $wgJobLogFile = false;
2025
2026 /**
2027 * Enable use of AJAX features, currently auto suggestion for the search bar
2028 */
2029 $wgUseAjax = false;
2030
2031 /**
2032 * List of Ajax-callable functions
2033 */
2034 $wgAjaxExportList = array( 'wfSajaxSearch' );
2035
2036 /**
2037 * Allow DISPLAYTITLE to change title display
2038 */
2039 $wgAllowDisplayTitle = false ;
2040
2041 /**
2042 * Array of usernames which may not be registered or logged in from
2043 * Maintenance scripts can still use these
2044 */
2045 $wgReservedUsernames = array( 'MediaWiki default', 'Conversion script' );
2046
2047 /**
2048 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
2049 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
2050 * crap files as images. When this directive is on, <title> will be allowed in files with
2051 * an "image/svg" MIME type. You should leave this disabled if your web server is misconfigured
2052 * and doesn't send appropriate MIME types for SVG images.
2053 */
2054 $wgAllowTitlesInSVG = false;
2055
2056 ?>