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