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