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