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