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