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