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