3 * DO NOT EDIT THIS FILE!
5 * To customize your installation, edit "LocalSettings.php".
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
15 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
16 if( defined( 'MEDIAWIKI' ) ) {
18 /** MediaWiki version number */
19 $wgVersion = '1.5alpha1';
21 /** Name of the site. It must be changed in LocalSettings.php */
22 $wgSitename = 'MediaWiki';
24 /** Will be same as you set @see $wgSitename */
25 $wgMetaNamespace = FALSE;
27 /** URL of the server. It will be automaticly build including https mode */
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'];
39 $wgServerName = 'localhost';
42 # check if server use https:
43 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
45 $wgServer = $wgProto.'://' . $wgServerName;
46 # If the port is a non-standard one, add it to the URL
47 if( isset( $_SERVER['SERVER_PORT'] )
48 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
49 ||
( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
51 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
57 * The path we should point to.
58 * It might be a virtual path in case with use apache mod_rewrite for example
60 $wgScriptPath = '/wiki';
63 * Whether to support URLs like index.php/Page_title
64 * @global bool $wgUsePathInfo
66 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
70 * Script users will request to get articles
71 * ATTN: Old installations used wiki.phtml and redirect.phtml -
72 * make sure that LocalSettings.php is correctly set!
76 * @global string $wgScript
78 $wgScript = "{$wgScriptPath}/index.php";
80 * @global string $wgRedirectScript
82 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
90 * style path as seen by users
91 * @global string $wgStylePath
93 $wgStylePath = "{$wgScriptPath}/skins";
95 * filesystem stylesheets directory
96 * @global string $wgStyleDirectory
98 $wgStyleDirectory = "{$IP}/skins";
99 $wgStyleSheetPath = &$wgStylePath;
100 $wgArticlePath = "{$wgScript}?title=$1";
101 $wgUploadPath = "{$wgScriptPath}/upload";
102 $wgUploadDirectory = "{$IP}/upload";
103 $wgHashedUploadDirectory = true;
104 $wgLogo = "{$wgUploadPath}/wiki.png";
105 $wgMathPath = "{$wgUploadPath}/math";
106 $wgMathDirectory = "{$wgUploadDirectory}/math";
107 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
108 $wgUploadBaseUrl = "";
112 * Produce hashed HTML article paths. Used internally, do not set.
114 $wgMakeDumpLinks = false;
117 * To set 'pretty' URL paths for actions other than
118 * plain page views, add to this array. For instance:
119 * 'edit' => "$wgScriptPath/edit/$1"
121 * There must be an appropriate script or rewrite rule
122 * in place to handle these URLs.
124 $wgActionPaths = array();
127 * If you operate multiple wikis, you can define a shared upload path here.
128 * Uploads to this wiki will NOT be put there - they will be put into
129 * $wgUploadDirectory.
130 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
131 * no file of the given name is found in the local repository (for [[Image:..]],
132 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
135 $wgUseSharedUploads = false;
136 /** Full path on the web server where shared uploads can be found */
137 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
138 /** Path on the file system where shared uploads can be found. */
139 $wgSharedUploadDirectory = "/var/www/wiki3/images";
140 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
141 $wgSharedUploadDBname = false;
142 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
143 $wgCacheSharedUploads = true;
146 * Point the upload navigation link to an external URL
147 * Useful if you want to use a shared repository by default
148 * without disabling local uploads
149 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
151 $wgUploadNavigationUrl = false;
154 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
155 * generating them on render and outputting a static URL. This is necessary if some of your
156 * apache servers don't have read/write access to the thumbnail path.
159 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
161 $wgThumbnailScriptPath = false;
162 $wgSharedThumbnailScriptPath = false;
165 * Set the following to false especially if you have a set of files that need to
166 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
169 $wgHashedSharedUploadDirectory = true;
172 * Base URL for a repository wiki. Leave this blank if uploads are just stored
173 * in a shared directory and not meant to be accessible through a separate wiki.
174 * Otherwise the image description pages on the local wiki will link to the
175 * image description page on this wiki.
177 * Please specify the namespace, as in the example below.
179 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
187 * Site admin email address
188 * Default to wikiadmin@SERVER_NAME
189 * @global string $wgEmergencyContact
191 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
194 * Password reminder email address
195 * The address we should use as sender when a user is requesting his password
196 * Default to apache@SERVER_NAME
197 * @global string $wgPasswordSender
199 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
202 * dummy address which should be accepted during mail send action
203 * It might be necessay to adapt the address or to set it equal
204 * to the $wgEmergencyContact address
206 #$wgNoReplyAddress = $wgEmergencyContact;
207 $wgNoReplyAddress = 'reply@not.possible';
210 * Set to true to enable the e-mail basic features:
211 * Password reminders, etc. If sending e-mail on your
212 * server doesn't work, you might want to disable this.
213 * @global bool $wgEnableEmail
215 $wgEnableEmail = true;
218 * Set to true to enable user-to-user e-mail.
219 * This can potentially be abused, as it's hard to track.
220 * @global bool $wgEnableUserEmail
222 $wgEnableUserEmail = true;
226 * For using a direct (authenticated) SMTP server connection.
227 * Default to false or fill an array :
229 * "host" => 'SMTP domain',
230 * "IDHost" => 'domain for MessageID',
232 * "auth" => true/false,
233 * "username" => user,
234 * "password" => password
237 * @global mixed $wgSMTP
245 /** database host name or ip address */
246 $wgDBserver = 'localhost';
247 /** name of the database */
248 $wgDBname = 'wikidb';
250 $wgDBconnection = '';
251 /** Database username */
252 $wgDBuser = 'wikiuser';
254 * "mysql" for working code and "PostgreSQL" for development/broken code
258 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
259 * based search engine
261 $wgSearchType = "MyISAM";
262 /** Table name prefix */
265 * on some databases this allows separate
266 * logical namespace for application data
268 $wgDBschema = 'mediawiki';
274 * Shared database for multiple wikis. Presently used for storing a user table
275 * for single sign-on. The server for this database must be the same as for the
281 # Database load balancer
282 # This is a two-dimensional array, an array of server info structures
285 # dbname: Default database name
287 # password: DB password
288 # type: "mysql" or "pgsql"
289 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
290 # groupLoads: array of load ratios, the key is the query group name. A query may belong
291 # to several groups, the most specific group defined here is used.
294 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
295 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
296 # DBO_TRX -- wrap entire request in a transaction
297 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
298 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
300 # Leave at false to use the single-server variables above
301 $wgDBservers = false;
303 /** How long to wait for a slave to catch up to the master */
304 $wgMasterWaitTimeout = 10;
306 /** File to log MySQL errors to */
307 $wgDBerrorLog = false;
311 * MySQL 3.x : used to discard words that MySQL will not return any results for
312 * shorter values configure mysql directly.
313 * MySQL 4.x : ignore it and configure mySQL
314 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
317 /** Set to true if using InnoDB tables */
318 $wgDBtransactions = false;
319 /** Set to true to use enhanced fulltext search */
323 * Other wikis on this site, can be administered from a single developer
325 * Array, interwiki prefix => database name
327 $wgLocalDatabases = array();
330 * Object cache settings
331 * See Defines.php for types
333 $wgMainCacheType = CACHE_NONE
;
334 $wgMessageCacheType = CACHE_ANYTHING
;
335 $wgParserCacheType = CACHE_ANYTHING
;
337 $wgSessionsInMemcached = false;
338 $wgLinkCacheMemcached = false; # Not fully tested
341 * Memcached-specific settings
342 * See docs/memcached.txt
344 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
345 $wgMemCachedServers = array( '127.0.0.1:11000' );
346 $wgMemCachedDebug = false;
352 /** Site language code, should be one of ./languages/Language(.*).php */
353 $wgLanguageCode = 'en';
355 /** Filename of a language file generated by dumpMessages.php */
356 $wgLanguageFile = false;
358 /** Treat language links as magic connectors, not inline links */
359 $wgInterwikiMagic = true;
361 /** We speak UTF-8 all the time now, unless some oddities happen */
362 $wgInputEncoding = 'UTF-8';
363 $wgOutputEncoding = 'UTF-8';
364 $wgEditEncoding = '';
366 # Set this to eg 'ISO-8859-1' to perform character set
367 # conversion when loading old revisions not marked with
368 # "utf-8" flag. Use this when converting wiki to UTF-8
369 # without the burdensome mass conversion of old text data.
371 # NOTE! This DOES NOT touch any fields other than old_text.
372 # Titles, comments, user names, etc still must be converted
373 # en masse in the database before continuing as a UTF-8 wiki.
374 $wgLegacyEncoding = false;
376 $wgMimeType = 'text/html';
377 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
378 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
380 /** Enable to allow rewriting dates in page text.
381 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
382 $wgUseDynamicDates = false;
383 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
384 * the interface is set to English
386 $wgAmericanDates = false;
388 * For Hindi and Arabic use local numerals instead of Western style (0-9)
389 * numerals in interface.
391 $wgTranslateNumerals = true;
394 # Translation using MediaWiki: namespace
395 # This will increase load times by 25-60% unless memcached is installed
396 # Interface messages will be get from the database.
397 $wgUseDatabaseMessages = true;
398 $wgMsgCacheExpiry = 86400;
399 $wgPartialMessageCache = false;
401 # Whether to enable language variant conversion. Currently only zh
402 # supports this function, to convert between Traditional and Simplified
403 # Chinese. This flag is meant to isolate the (untested) conversion
404 # code, so that if it breaks, only zh will be affected
405 $wgDisableLangConversion = false;
407 # Use article validation feature; turned off by default
408 $wgUseValidation = false;
410 # Whether to use zhdaemon to perform Chinese text processing
411 # zhdaemon is under developement, so normally you don't want to
412 # use it unless for testing
413 $wgUseZhdaemon = false;
414 $wgZhdaemonHost="localhost";
415 $wgZhdaemonPort=2004;
417 # Miscellaneous configuration settings
420 $wgLocalInterwiki = 'w';
421 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
424 * If local interwikis are set up which allow redirects,
425 * set this regexp to restrict URLs which will be displayed
426 * as 'redirected from' links.
428 * It might look something like this:
429 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
431 * Leave at false to avoid displaying any incoming redirect markers.
432 * This does not affect intra-wiki redirects, which don't change
435 $wgRedirectSources = false;
438 $wgShowIPinHeader = true; # For non-logged in users
439 $wgMaxNameChars = 32; # Maximum number of bytes in username
441 $wgExtraSubtitle = '';
442 $wgSiteSupportPage = ''; # A page where you users can receive donations
444 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
447 * The debug log file should be not be publicly accessible if it is used, as it
448 * may contain private data. */
449 $wgDebugLogFile = '';
454 $wgDebugRedirects = false;
455 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
457 $wgDebugComments = false;
459 $wgLogQueries = false;
460 $wgDebugDumpSql = false;
463 * Whether to show "we're sorry, but there has been a database error" pages.
464 * Displaying errors aids in debugging, but may display information useful
467 $wgShowSQLErrors = false;
469 # Should [[Category:Dog]] on a page associate it with the
470 # category "Dog"? (a link to that category page will be
471 # added to the article, clicking it reveals a list of
472 # all articles in the category)
473 $wgUseCategoryMagic = true;
476 * disable experimental dmoz-like category browsing. Output things like:
477 * Encyclopedia > Music > Style of Music > Jazz
479 $wgUseCategoryBrowser = false;
481 $wgEnablePersistentLC = false; # Obsolete, do not use
482 $wgCompressedPersistentLC = true; # use gzcompressed blobs
483 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
486 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
487 * to speed up output of the same page viewed by another user with the
490 * This can provide a significant speedup for medium to large pages,
491 * so you probably want to keep it on.
493 $wgEnableParserCache = true;
496 * Under which condition should a page in the main namespace be counted
497 * as a valid article? If $wgUseCommaCount is set to true, it will be
498 * counted if it contains at least one comma. If it is set to false
499 * (default), it will only be counted if it contains at least one [[wiki
500 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
502 * Retroactively changing this variable will not affect
503 * the existing count (cf. maintenance/recount.sql).
505 $wgUseCommaCount = false;
510 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
511 * values are easier on the database. A value of 1 causes the counters to be
512 * updated on every hit, any higher value n cause them to update *on average*
513 * every n hits. Should be set to either 1 or something largish, eg 1000, for
514 * maximum efficiency.
516 $wgHitcounterUpdateFreq = 1;
518 # User rights settings
520 # It's not 100% safe, there could be security hole using that one. Use at your
523 $wgWhitelistEdit = false; # true = user must login to edit.
524 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
525 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
527 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
529 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
530 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
532 /** Comma-separated list of options to show on the IP block form.
533 * Use strtotime() format, or "infinite" for an infinite block
535 $wgBlockExpiryOptions = "2 hours,1 day,3 days,1 week,2 weeks,1 month,3 months,6 months,1 year,infinite";
537 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
540 * Static user groups serialized record
541 * To avoid database access, you can set this to a user groups record as returned
542 * by Special:Groups with the magic parameter showrecord=1. This will however mean
543 * that you won't be able to edit them at runtime.
545 $wgStaticGroups = false;
547 # Proxy scanner settings
551 * If you enable this, every editor's IP address will be scanned for open HTTP
554 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
555 * ISP and ask for your server to be shut down.
557 * You have been warned.
559 $wgBlockOpenProxies = false;
560 /** Port we want to scan for a proxy */
561 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
562 /** Script used to scan */
563 $wgProxyScriptPath = "$IP/proxy_check.php";
565 $wgProxyMemcExpiry = 86400;
566 /** This should always be customised in LocalSettings.php */
567 $wgSecretKey = false;
568 /** big list of banned IP addresses, in the keys not the values */
569 $wgProxyList = array();
573 /** Number of accounts each IP address may create, 0 to disable.
574 * Requires memcached */
575 $wgAccountCreationThrottle = 0;
577 # Client-side caching:
579 /** Allow client-side caching of pages */
580 $wgCachePages = true;
583 * Set this to current time to invalidate all prior cached pages. Affects both
584 * client- and server-side caching.
586 $wgCacheEpoch = '20030516000000';
589 # Server-side caching:
592 * This will cache static pages for non-logged-in users to reduce
593 * database traffic on public sites.
594 * Must set $wgShowIPinHeader = false
596 $wgUseFileCache = false;
597 /** Directory where the cached page will be saved */
598 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
601 * When using the file cache, we can store the cached HTML gzipped to save disk
602 * space. Pages will then also be served compressed to clients that support it.
603 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
604 * the default LocalSettings.php! If you enable this, remove that setting first.
606 * Requires zlib support enabled in PHP.
610 # Email notification settings
614 * Program to run when the email is actually sent out. You might want to make
615 * your server beep for example. Usermailer.php will make a system() call with
616 * exactly that string as parameter.
618 # $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
619 $wgEmailNotificationSystembeep = '';
621 /** For email notification on page changes */
622 $wgPasswordSender = $wgEmergencyContact;
624 # true: from PageEditor if s/he opted-in
625 # false: Enotif mails appear to come from $wgEmergencyContact
626 $wgEmailNotificationMailsSentFromPageEditor = false;
628 // TODO move UPO to preferences probably ?
629 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
630 # If set to false, the corresponding input form on the user preference page is suppressed
631 # It call this to be a "user-preferences-option (UPO)"
632 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
633 $wgEmailNotificationForWatchlistPages = false; # UPO
634 $wgEmailNotificationForUserTalkPages = false; # UPO
635 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
636 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
637 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
640 /** Show watching users in recent changes, watchlist and page history views */
641 $wgRCShowWatchingUsers = false; # UPO
642 /** Show watching users in Page views */
643 $wgPageShowWatchingUsers = false;
645 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
646 * view for watched pages with new changes */
647 $wgShowUpdatedMarker = true; # UPO
649 $wgCookieExpiration = 2592000;
651 # Squid-related settings
654 /** Enable/disable Squid */
657 /** If you run Squid3 with ESI support, enable this (default:false): */
660 /** Internal server name as known to Squid, if different */
661 # $wgInternalServer = 'http://yourinternal.tld:8000';
662 $wgInternalServer = $wgServer;
665 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
666 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
667 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
670 $wgSquidMaxage = 18000;
673 * A list of proxy servers (ips if possible) to purge on changes don't specify
674 * ports here (80 is default)
676 # $wgSquidServers = array('127.0.0.1');
677 $wgSquidServers = array();
678 $wgSquidServersNoPurge = array();
680 /** Maximum number of titles to purge in any one client operation */
681 $wgMaxSquidPurgeTitles = 400;
683 /** HTCP multicast purging */
685 $wgHTCPMulticastTTL = 1;
686 # $wgHTCPMulticastAddress = "224.0.0.85";
691 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
692 * or ".any.subdomain.net"
694 $wgCookieDomain = '';
696 $wgDisableCookieCheck = false;
698 /** Whether to allow inline image pointing to other websites */
699 $wgAllowExternalImages = true;
701 /** Disable database-intensive features */
702 $wgMiserMode = false;
703 /** Disable all query pages if miser mode is on, not just some */
704 $wgDisableQueryPages = false;
705 /** Generate a watchlist once every hour or so */
706 $wgUseWatchlistCache = false;
707 /** The hour or so mentioned above */
708 $wgWLCacheTimeout = 3600;
711 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
712 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
713 * (ImageMagick) installed and available in the PATH.
714 * Please see math/README for more information.
717 /** Location of the texvc binary */
718 $wgTexvc = './math/texvc';
721 # Profiling / debugging
724 /** Enable for more detailed by-function times in debug log */
725 $wgProfiling = false;
726 /** Only record profiling info for pages that took longer than this */
727 $wgProfileLimit = 0.0;
728 /** Don't put non-profiling info into log file */
729 $wgProfileOnly = false;
730 /** Log sums from profiling into "profiling" table in db. */
731 $wgProfileToDatabase = false;
732 /** Only profile every n requests when profiling is turned on */
733 $wgProfileSampleRate = 1;
734 /** If true, print a raw call tree instead of per-function report */
735 $wgProfileCallTree = false;
737 /** Detects non-matching wfProfileIn/wfProfileOut calls */
738 $wgDebugProfiling = false;
739 /** Output debug message on every wfProfileIn/wfProfileOut */
740 $wgDebugFunctionEntry = 0;
741 /** Lots of debugging output from SquidUpdate.php */
742 $wgDebugSquid = false;
744 $wgDisableCounters = false;
745 $wgDisableTextSearch = false;
747 * If you've disabled search semi-permanently, this also disables updates to the
748 * table. If you ever re-enable, be sure to rebuild the search table.
750 $wgDisableSearchUpdate = false;
751 /** Uploads have to be specially set up to be secure */
752 $wgEnableUploads = false;
754 * Show EXIF data, on by default if available.
755 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
757 $wgShowEXIF = function_exists( 'exif_read_data' );
760 * Set to true to enable the upload _link_ while local uploads are disabled.
761 * Assumes that the special page link will be bounced to another server where
764 $wgRemoteUploads = false;
765 $wgDisableAnonTalk = false;
768 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
769 * fall back to the old behaviour (no merging).
771 $wgDiff3 = '/usr/bin/diff3';
774 * We can also compress text in the old revisions table. If this is set on, old
775 * revisions will be compressed on page save if zlib support is available. Any
776 * compressed revisions will be decompressed on load regardless of this setting
777 * *but will not be readable at all* if zlib support is not available.
779 $wgCompressRevisions = false;
782 * This is the list of preferred extensions for uploading files. Uploading files
783 * with extensions not in this list will trigger a warning.
785 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
787 /** Files with these extensions will never be allowed as uploads. */
788 $wgFileBlacklist = array(
789 # HTML may contain cookie-stealing JavaScript and web bugs
791 # PHP scripts may execute arbitrary code on the server
792 'php', 'phtml', 'php3', 'php4', 'phps',
793 # Other types that may be interpreted by some servers
794 'shtml', 'jhtml', 'pl', 'py', 'cgi',
795 # May contain harmful executables for Windows victims
796 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
798 /** This is a flag to determine whether or not to check file extensions on upload. */
799 $wgCheckFileExtensions = true;
802 * If this is turned off, users may override the warning for files not covered
803 * by $wgFileExtensions.
805 $wgStrictFileExtensions = true;
807 /** Warn if uploaded files are larger than this */
808 $wgUploadSizeWarning = 150 * 1024;
810 /** For compatibility with old installations set to false */
811 $wgPasswordSalt = true;
813 /** Which namespaces should support subpages?
814 * See Language.php for a list of namespaces.
816 $wgNamespacesWithSubpages = array(
823 NS_PROJECT_TALK
=> 1,
827 NS_MEDIAWIKI_TALK
=> 1,
829 NS_TEMPLATE_TALK
=> 1,
833 NS_CATEGORY_TALK
=> 1
836 $wgNamespacesToBeSearchedDefault = array(
843 NS_PROJECT_TALK
=> 0,
847 NS_MEDIAWIKI_TALK
=> 1,
849 NS_TEMPLATE_TALK
=> 1,
853 NS_CATEGORY_TALK
=> 0
856 /** If set, a bold ugly notice will show up at the top of every page. */
864 /** dynamic server side image resizing ("Thumbnails") */
865 $wgUseImageResize = false;
868 * Resizing can be done using PHP's internal image libraries or using
869 * ImageMagick. The later supports more file formats than PHP, which only
870 * supports PNG, GIF, JPG, XBM and WBMP.
872 * Use Image Magick instead of PHP builtin functions.
874 $wgUseImageMagick = false;
875 /** The convert command shipped with ImageMagick */
876 $wgImageMagickConvertCommand = '/usr/bin/convert';
878 # Scalable Vector Graphics (SVG) may be uploaded as images.
879 # Since SVG support is not yet standard in browsers, it is
880 # necessary to rasterize SVGs to PNG as a fallback format.
882 # An external program is required to perform this conversion:
883 $wgSVGConverters = array(
884 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
885 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
886 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
887 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
889 /** Pick one of the above */
890 $wgSVGConverter = 'ImageMagick';
891 /** If not in the executable PATH, specify */
892 $wgSVGConverterPath = '';
894 /** @todo FIXME what does it do here ?? [ashar] */
895 if( !isset( $wgCommandLineMode ) ) {
896 $wgCommandLineMode = false;
901 # Recent changes settings
904 /** Show seconds in Recent Changes */
905 $wgRCSeconds = false;
907 /** Log IP addresses in the recentchanges table */
908 $wgPutIPinRC = false;
911 * Recentchanges items are periodically purged; entries older than this many
913 * For one week : 7 * 24 * 3600
915 $wgRCMaxAge = 7 * 24 * 3600;
919 # Copyright and credits settings
922 /** RDF metadata toggles */
923 $wgEnableDublinCoreRdf = false;
924 $wgEnableCreativeCommonsRdf = false;
926 /** Override for copyright metadata.
927 * TODO: these options need documentation
929 $wgRightsPage = NULL;
931 $wgRightsText = NULL;
932 $wgRightsIcon = NULL;
934 /** Set this to some HTML to override the rights icon with an arbitrary logo */
935 $wgCopyrightIcon = NULL;
937 /** Set this to true if you want detailed copyright information forms on Upload. */
938 $wgUseCopyrightUpload = false;
940 /** Set this to false if you want to disable checking that detailed copyright
941 * information values are not empty. */
942 $wgCheckCopyrightUpload = true;
945 * Set this to the number of authors that you want to be credited below an
946 * article text. Set it to zero to hide the attribution block, and a negative
947 * number (like -1) to show all authors. Note that this will# require 2-3 extra
948 * database hits, which can have a not insignificant impact on performance for
953 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
954 * Otherwise, link to a separate credits page. */
955 $wgShowCreditsIfMax = true;
960 * Set this to false to avoid forcing the first letter of links to capitals.
961 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
962 * appearing with a capital at the beginning of a sentence will *not* go to the
963 * same place as links in the middle of a sentence using a lowercase initial.
965 $wgCapitalLinks = true;
968 * List of interwiki prefixes for wikis we'll accept as sources for
969 * Special:Import (for sysops). Since complete page history# can be imported,
970 * these should be 'trusted'.
972 $wgImportSources = array();
976 /** Text matching this regular expression will be recognised as spam
977 * See http://en.wikipedia.org/wiki/Regular_expression */
978 $wgSpamRegex = false;
979 /** Similarly if this function returns true */
980 $wgFilterCallback = false;
982 /** Go button goes straight to the edit screen if the article doesn't exist. */
985 /** Allow limited user-specified HTML in wiki pages?
986 * It will be run through a whitelist for security. Set this to false if you
987 * want wiki pages to consist only of wiki markup. Note that replacements do not
988 * yet exist for all HTML constructs.*/
991 /** Allow raw, unchecked HTML in <html>...</html> sections.
992 * THIS IS VERY DANGEROUS on a publically editable site, so you can't enable it
993 * unless you've restricted editing to trusted users only with $wgWhitelistEdit.
998 * $wgUseTidy: use tidy to make sure HTML output is sane.
999 * This should only be enabled if $wgUserHtml is true.
1000 * tidy is a free tool that fixes broken HTML.
1001 * See http://www.w3.org/People/Raggett/tidy/
1002 * $wgTidyBin should be set to the path of the binary and
1003 * $wgTidyConf to the path of the configuration file.
1004 * $wgTidyOpts can include any number of parameters.
1006 * $wgTidyInternal controls the use of the PECL extension to use an in-
1007 * process tidy library instead of spawning a separate program.
1008 * Normally you shouldn't need to override the setting except for
1009 * debugging. To install, use 'pear install tidy' and add a line
1010 * 'extension=tidy.so' to php.ini.
1013 $wgTidyBin = 'tidy';
1014 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1016 $wgTidyInternal = function_exists( 'tidy_load_config' );
1018 /** See list of skins and their symbolic names in languages/Language.php */
1019 $wgDefaultSkin = 'monobook';
1022 * Settings added to this array will override the language globals for the user
1023 * preferences used by anonymous visitors and newly created accounts. (See names
1024 * and sample values in languages/Language.php)
1025 * For instance, to disable section editing links:
1026 * $wgDefaultUserOptions ['editsection'] = 0;
1029 $wgDefaultUserOptions = array();
1031 /** Whether or not to allow and use real name fields. Defaults to true. */
1032 $wgAllowRealName = true;
1034 /** Use XML parser? */
1035 $wgUseXMLparser = false ;
1038 $wgSkinExtensionFunctions = array();
1039 $wgExtensionFunctions = array();
1042 * Allow user Javascript page?
1043 * This enables a lot of neat customizations, but may
1044 * increase security risk to users and server load.
1046 $wgAllowUserJs = false;
1049 * Allow user Cascading Style Sheets (CSS)?
1050 * This enables a lot of neat customizations, but may
1051 * increase security risk to users and server load.
1053 $wgAllowUserCss = false;
1055 /** Use the site's Javascript page? */
1056 $wgUseSiteJs = true;
1058 /** Use the site's Cascading Style Sheets (CSS)? */
1059 $wgUseSiteCss = true;
1061 /** Filter for Special:Randompage. Part of a WHERE clause */
1062 $wgExtraRandompageSQL = false;
1064 /** Allow the "info" action, very inefficient at the moment */
1065 $wgAllowPageInfo = false;
1067 /** Maximum indent level of toc. */
1068 $wgMaxTocLevel = 999;
1070 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1071 $wgUseExternalDiffEngine = false;
1073 /** Use RC Patrolling to check for vandalism */
1074 $wgUseRCPatrol = true;
1076 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1077 * eg Recentchanges, Newpages. */
1080 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1081 * A cached version will continue to be served out even if changes
1082 * are made, until this many seconds runs out since the last render. */
1083 $wgFeedCacheTimeout = 60;
1085 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1086 * pages larger than this size. */
1087 $wgFeedDiffCutoff = 32768;
1091 * Additional namespaces. If the namespaces defined in Language.php and
1092 * Namespace.php are insufficient,# you can create new ones here, for example,
1093 * to import Help files in other languages.
1094 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1095 * no longer be accessible. If you rename it, then you can access them through
1096 * the new namespace name.
1098 * Custom namespaces should start at 100 to avoid conflicting with standard
1099 * namespaces, and should always follow the even/odd main/talk pattern.
1101 #$wgExtraNamespaces =
1102 # array(100 => "Hilfe",
1103 # 101 => "Hilfe_Diskussion",
1105 # 103 => "Discussion_Aide"
1107 $wgExtraNamespaces = NULL;
1110 * Limit images on image description pages to a user-selectable limit. In order
1111 * to reduce disk usage, limits can only be selected from a list. This is the
1112 * list of settings the user can choose from:
1114 $wgImageLimits = array (
1120 array(10000,10000) );
1123 * Adjust thumbnails on image pages according to a user setting. In order to
1124 * reduce disk usage, the values can only be selected from a list. This is the
1125 * list of settings the user can choose from:
1127 $wgThumbLimits = array(
1136 /** Navigation links for the user sidebar.
1137 * 'text' is the name of the MediaWiki message that contains the label of this link
1138 * 'href' is the name of the MediaWiki message that contains the link target of this link.
1139 * Link targets starting with http are considered remote links. Ones not starting with
1140 * http are considered as names of local wiki pages.
1142 $wgNavigationLinks = array (
1143 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
1144 array( 'text'=>'portal', 'href'=>'portal-url' ),
1145 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
1146 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
1147 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
1148 array( 'text'=>'help', 'href'=>'helppage' ),
1149 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
1153 * On category pages, show thumbnail gallery for images belonging to that
1154 * category instead of listing them as articles.
1156 $wgCategoryMagicGallery = true;
1159 * Browser Blacklist for unicode non compliant browsers
1160 * Contains a list of regexps : "/regexp/" matching problematic browsers
1162 $wgBrowserBlackList = array(
1163 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1165 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1168 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1169 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1170 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1173 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1174 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1176 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1180 * Fake out the timezone that the server thinks it's in. This will be used for
1181 * date display and not for what's stored in the DB. Leave to null to retain
1182 * your server's OS-based timezone value. This is the same as the timezone.
1184 # $wgLocaltimezone = 'GMT';
1185 # $wgLocaltimezone = 'PST8PDT';
1186 # $wgLocaltimezone = 'Europe/Sweden';
1187 # $wgLocaltimezone = 'CET';
1188 $wgLocaltimezone = null;
1191 * User level management
1192 * The number is the database id of a group you want users to be attached by
1193 * default. A better interface should be coded [av]
1196 $wgLoggedInGroupId = 2;
1197 $wgSysopGroupId = 3;
1198 $wgBureaucratGroupId = 4;
1199 $wgStewardGroupId = 5;
1202 * When translating messages with wfMsg(), it is not always clear what should be
1203 * considered UI messages and what shoud be content messages.
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
1214 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1216 $wgForceUIMsgAsContentMsg = array();
1220 * Authentication plugin.
1225 * Global list of hooks.
1226 * Add a hook by doing:
1227 * $wgHooks['event_name'][] = $function;
1229 * $wgHooks['event_name'][] = array($function, $data);
1231 * $wgHooks['event_name'][] = array($object, 'method');
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.
1241 $wgLivePreview = false;
1244 * Disable the internal MySQL-based search, to allow it to be
1245 * implemented by an extension instead.
1247 $wgDisableInternalSearch = false;
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
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';
1260 $wgSearchForwardUrl = null;
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.
1268 $wgNoFollowLinks = true;
1271 * Specifies the minimal length of a user password. If set to
1272 * 0, empty passwords are allowed.
1274 $wgMinimalPasswordLength = 0;
1277 * Activate external editor interface for files and pages
1278 * See http://meta.wikimedia.org/wiki/Help:External_editors
1280 $wgUseExternalEditor = true;
1282 /** Whether or not to sort special pages in Special:Specialpages */
1284 $wgSortSpecialPages = true;
1287 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1289 $wgDisabledActions = array();
1292 * Use http.dnsbl.sorbs.net to check for open proxies
1294 $wgEnableSorbs = false;
1297 * On Special:Unusedimages, consider images "used", if they are put
1298 * into a category. Default (false) is not to count those as used.
1300 $wgCountCategorizedImagesAsUsed = false;
1303 * External stores allow including content
1304 * from non database sources following URL links
1306 * Short names of ExternalStore classes may be specified in an array here:
1307 * $wgExternalStores = array("http","file","custom")...
1309 * CAUTION: Access to database might lead to code execution
1311 $wgExternalStores = false;