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