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