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