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