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