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