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