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