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