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