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' ) ) {
17 die( "This file is part of MediaWiki and is not a valid entry point\n" );
20 /** MediaWiki version number */
21 $wgVersion = '1.5alpha1';
23 /** Name of the site. It must be changed in LocalSettings.php */
24 $wgSitename = 'MediaWiki';
26 /** Will be same as you set @see $wgSitename */
27 $wgMetaNamespace = FALSE;
29 /** URL of the server. It will be automaticly build including https mode */
32 if( isset( $_SERVER['SERVER_NAME'] ) ) {
33 $wgServerName = $_SERVER['SERVER_NAME'];
34 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
35 $wgServerName = $_SERVER['HOSTNAME'];
36 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
37 $wgServerName = $_SERVER['HTTP_HOST'];
38 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
39 $wgServerName = $_SERVER['SERVER_ADDR'];
41 $wgServerName = 'localhost';
44 # check if server use https:
45 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
47 $wgServer = $wgProto.'://' . $wgServerName;
48 # If the port is a non-standard one, add it to the URL
49 if( isset( $_SERVER['SERVER_PORT'] )
50 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
51 ||
( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
53 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
59 * The path we should point to.
60 * It might be a virtual path in case with use apache mod_rewrite for example
62 $wgScriptPath = '/wiki';
65 * Whether to support URLs like index.php/Page_title
66 * @global bool $wgUsePathInfo
68 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
72 * Script users will request to get articles
73 * ATTN: Old installations used wiki.phtml and redirect.phtml -
74 * make sure that LocalSettings.php is correctly set!
78 * @global string $wgScript
80 $wgScript = "{$wgScriptPath}/index.php";
82 * @global string $wgRedirectScript
84 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
92 * style path as seen by users
93 * @global string $wgStylePath
95 $wgStylePath = "{$wgScriptPath}/skins";
97 * filesystem stylesheets directory
98 * @global string $wgStyleDirectory
100 $wgStyleDirectory = "{$IP}/skins";
101 $wgStyleSheetPath = &$wgStylePath;
102 $wgArticlePath = "{$wgScript}?title=$1";
103 $wgUploadPath = "{$wgScriptPath}/upload";
104 $wgUploadDirectory = "{$IP}/upload";
105 $wgHashedUploadDirectory = true;
106 $wgLogo = "{$wgUploadPath}/wiki.png";
107 $wgMathPath = "{$wgUploadPath}/math";
108 $wgMathDirectory = "{$wgUploadDirectory}/math";
109 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
110 $wgUploadBaseUrl = "";
114 * Produce hashed HTML article paths. Used internally, do not set.
116 $wgMakeDumpLinks = false;
119 * To set 'pretty' URL paths for actions other than
120 * plain page views, add to this array. For instance:
121 * 'edit' => "$wgScriptPath/edit/$1"
123 * There must be an appropriate script or rewrite rule
124 * in place to handle these URLs.
126 $wgActionPaths = array();
129 * If you operate multiple wikis, you can define a shared upload path here.
130 * Uploads to this wiki will NOT be put there - they will be put into
131 * $wgUploadDirectory.
132 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
133 * no file of the given name is found in the local repository (for [[Image:..]],
134 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
137 $wgUseSharedUploads = false;
138 /** Full path on the web server where shared uploads can be found */
139 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
140 /** Path on the file system where shared uploads can be found. */
141 $wgSharedUploadDirectory = "/var/www/wiki3/images";
142 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
143 $wgSharedUploadDBname = false;
144 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
145 $wgCacheSharedUploads = true;
148 * Point the upload navigation link to an external URL
149 * Useful if you want to use a shared repository by default
150 * without disabling local uploads
151 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
153 $wgUploadNavigationUrl = false;
156 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
157 * generating them on render and outputting a static URL. This is necessary if some of your
158 * apache servers don't have read/write access to the thumbnail path.
161 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
163 $wgThumbnailScriptPath = false;
164 $wgSharedThumbnailScriptPath = false;
167 * Set the following to false especially if you have a set of files that need to
168 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
171 $wgHashedSharedUploadDirectory = true;
174 * Base URL for a repository wiki. Leave this blank if uploads are just stored
175 * in a shared directory and not meant to be accessible through a separate wiki.
176 * Otherwise the image description pages on the local wiki will link to the
177 * image description page on this wiki.
179 * Please specify the namespace, as in the example below.
181 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
189 * Site admin email address
190 * Default to wikiadmin@SERVER_NAME
191 * @global string $wgEmergencyContact
193 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
196 * Password reminder email address
197 * The address we should use as sender when a user is requesting his password
198 * Default to apache@SERVER_NAME
199 * @global string $wgPasswordSender
201 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
204 * dummy address which should be accepted during mail send action
205 * It might be necessay to adapt the address or to set it equal
206 * to the $wgEmergencyContact address
208 #$wgNoReplyAddress = $wgEmergencyContact;
209 $wgNoReplyAddress = 'reply@not.possible';
212 * Set to true to enable the e-mail basic features:
213 * Password reminders, etc. If sending e-mail on your
214 * server doesn't work, you might want to disable this.
215 * @global bool $wgEnableEmail
217 $wgEnableEmail = true;
220 * Set to true to enable user-to-user e-mail.
221 * This can potentially be abused, as it's hard to track.
222 * @global bool $wgEnableUserEmail
224 $wgEnableUserEmail = true;
228 * For using a direct (authenticated) SMTP server connection.
229 * Default to false or fill an array :
231 * "host" => 'SMTP domain',
232 * "IDHost" => 'domain for MessageID',
234 * "auth" => true/false,
235 * "username" => user,
236 * "password" => password
239 * @global mixed $wgSMTP
247 /** database host name or ip address */
248 $wgDBserver = 'localhost';
249 /** name of the database */
250 $wgDBname = 'wikidb';
252 $wgDBconnection = '';
253 /** Database username */
254 $wgDBuser = 'wikiuser';
256 * "mysql" for working code and "PostgreSQL" for development/broken code
260 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
261 * based search engine
263 $wgSearchType = "MyISAM";
264 /** Table name prefix */
267 * on some databases this allows separate
268 * logical namespace for application data
270 $wgDBschema = 'mediawiki';
276 * Shared database for multiple wikis. Presently used for storing a user table
277 * for single sign-on. The server for this database must be the same as for the
283 # Database load balancer
284 # This is a two-dimensional array, an array of server info structures
287 # dbname: Default database name
289 # password: DB password
290 # type: "mysql" or "pgsql"
291 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
292 # groupLoads: array of load ratios, the key is the query group name. A query may belong
293 # to several groups, the most specific group defined here is used.
296 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
297 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
298 # DBO_TRX -- wrap entire request in a transaction
299 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
300 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
302 # Leave at false to use the single-server variables above
303 $wgDBservers = false;
305 /** How long to wait for a slave to catch up to the master */
306 $wgMasterWaitTimeout = 10;
308 /** File to log MySQL errors to */
309 $wgDBerrorLog = false;
313 * MySQL 3.x : used to discard words that MySQL will not return any results for
314 * shorter values configure mysql directly.
315 * MySQL 4.x : ignore it and configure mySQL
316 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
319 /** Set to true if using InnoDB tables */
320 $wgDBtransactions = false;
321 /** Set to true to use enhanced fulltext search */
325 * Other wikis on this site, can be administered from a single developer
327 * Array, interwiki prefix => database name
329 $wgLocalDatabases = array();
332 * Object cache settings
333 * See Defines.php for types
335 $wgMainCacheType = CACHE_NONE
;
336 $wgMessageCacheType = CACHE_ANYTHING
;
337 $wgParserCacheType = CACHE_ANYTHING
;
339 $wgSessionsInMemcached = false;
340 $wgLinkCacheMemcached = false; # Not fully tested
343 * Memcached-specific settings
344 * See docs/memcached.txt
346 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
347 $wgMemCachedServers = array( '127.0.0.1:11000' );
348 $wgMemCachedDebug = false;
354 /** Site language code, should be one of ./languages/Language(.*).php */
355 $wgLanguageCode = 'en';
357 /** Filename of a language file generated by dumpMessages.php */
358 $wgLanguageFile = false;
360 /** Treat language links as magic connectors, not inline links */
361 $wgInterwikiMagic = true;
363 /** We speak UTF-8 all the time now, unless some oddities happen */
364 $wgInputEncoding = 'UTF-8';
365 $wgOutputEncoding = 'UTF-8';
366 $wgEditEncoding = '';
368 # Set this to eg 'ISO-8859-1' to perform character set
369 # conversion when loading old revisions not marked with
370 # "utf-8" flag. Use this when converting wiki to UTF-8
371 # without the burdensome mass conversion of old text data.
373 # NOTE! This DOES NOT touch any fields other than old_text.
374 # Titles, comments, user names, etc still must be converted
375 # en masse in the database before continuing as a UTF-8 wiki.
376 $wgLegacyEncoding = false;
379 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
380 * create stub reference rows in the text table instead of copying
381 * the full text of all current entries from 'cur' to 'text'.
383 * This will speed up the conversion step for large sites, but
384 * requires that the cur table be kept around for those revisions
385 * to remain viewable.
387 * maintenance/migrateCurStubs.php can be used to complete the
388 * migration in the background once the wiki is back online.
390 * This option affects the updaters *only*. Any present cur stub
391 * revisions will be readable at runtime regardless of this setting.
393 $wgLegacySchemaConversion = false;
395 $wgMimeType = 'text/html';
396 $wgJsMimeType = 'text/javascript';
397 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
398 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
400 /** Enable to allow rewriting dates in page text.
401 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
402 $wgUseDynamicDates = false;
403 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
404 * the interface is set to English
406 $wgAmericanDates = false;
408 * For Hindi and Arabic use local numerals instead of Western style (0-9)
409 * numerals in interface.
411 $wgTranslateNumerals = true;
414 # Translation using MediaWiki: namespace
415 # This will increase load times by 25-60% unless memcached is installed
416 # Interface messages will be get from the database.
417 $wgUseDatabaseMessages = true;
418 $wgMsgCacheExpiry = 86400;
420 # Whether to enable language variant conversion. Currently only zh
421 # supports this function, to convert between Traditional and Simplified
422 # Chinese. This flag is meant to isolate the (untested) conversion
423 # code, so that if it breaks, only zh will be affected
424 $wgDisableLangConversion = false;
426 # Use article validation feature; turned off by default
427 $wgUseValidation = false;
429 # Whether to use zhdaemon to perform Chinese text processing
430 # zhdaemon is under developement, so normally you don't want to
431 # use it unless for testing
432 $wgUseZhdaemon = false;
433 $wgZhdaemonHost="localhost";
434 $wgZhdaemonPort=2004;
436 # Miscellaneous configuration settings
439 $wgLocalInterwiki = 'w';
440 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
443 * If local interwikis are set up which allow redirects,
444 * set this regexp to restrict URLs which will be displayed
445 * as 'redirected from' links.
447 * It might look something like this:
448 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
450 * Leave at false to avoid displaying any incoming redirect markers.
451 * This does not affect intra-wiki redirects, which don't change
454 $wgRedirectSources = false;
457 $wgShowIPinHeader = true; # For non-logged in users
458 $wgMaxNameChars = 32; # Maximum number of bytes in username
460 $wgExtraSubtitle = '';
461 $wgSiteSupportPage = ''; # A page where you users can receive donations
463 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
466 * The debug log file should be not be publicly accessible if it is used, as it
467 * may contain private data. */
468 $wgDebugLogFile = '';
473 $wgDebugRedirects = false;
474 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
476 $wgDebugComments = false;
478 $wgLogQueries = false;
479 $wgDebugDumpSql = false;
482 * Whether to show "we're sorry, but there has been a database error" pages.
483 * Displaying errors aids in debugging, but may display information useful
486 $wgShowSQLErrors = false;
488 # Should [[Category:Dog]] on a page associate it with the
489 # category "Dog"? (a link to that category page will be
490 # added to the article, clicking it reveals a list of
491 # all articles in the category)
492 $wgUseCategoryMagic = true;
495 * disable experimental dmoz-like category browsing. Output things like:
496 * Encyclopedia > Music > Style of Music > Jazz
498 $wgUseCategoryBrowser = false;
500 $wgEnablePersistentLC = false; # Obsolete, do not use
501 $wgCompressedPersistentLC = true; # use gzcompressed blobs
502 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
505 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
506 * to speed up output of the same page viewed by another user with the
509 * This can provide a significant speedup for medium to large pages,
510 * so you probably want to keep it on.
512 $wgEnableParserCache = true;
515 * Under which condition should a page in the main namespace be counted
516 * as a valid article? If $wgUseCommaCount is set to true, it will be
517 * counted if it contains at least one comma. If it is set to false
518 * (default), it will only be counted if it contains at least one [[wiki
519 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
521 * Retroactively changing this variable will not affect
522 * the existing count (cf. maintenance/recount.sql).
524 $wgUseCommaCount = false;
529 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
530 * values are easier on the database. A value of 1 causes the counters to be
531 * updated on every hit, any higher value n cause them to update *on average*
532 * every n hits. Should be set to either 1 or something largish, eg 1000, for
533 * maximum efficiency.
535 $wgHitcounterUpdateFreq = 1;
537 # User rights settings
539 # It's not 100% safe, there could be security hole using that one. Use at your
542 $wgWhitelistEdit = false; # true = user must login to edit.
543 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
544 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
546 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
548 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
549 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
551 /** Comma-separated list of options to show on the IP block form.
552 * Use strtotime() format, or "infinite" for an infinite block
554 $wgBlockExpiryOptions = "2 hours,1 day,3 days,1 week,2 weeks,1 month,3 months,6 months,1 year,infinite";
556 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
559 * Static user groups serialized record
560 * To avoid database access, you can set this to a user groups record as returned
561 * by Special:Groups with the magic parameter showrecord=1. This will however mean
562 * that you won't be able to edit them at runtime.
564 $wgStaticGroups = false;
566 # Proxy scanner settings
570 * If you enable this, every editor's IP address will be scanned for open HTTP
573 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
574 * ISP and ask for your server to be shut down.
576 * You have been warned.
578 $wgBlockOpenProxies = false;
579 /** Port we want to scan for a proxy */
580 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
581 /** Script used to scan */
582 $wgProxyScriptPath = "$IP/proxy_check.php";
584 $wgProxyMemcExpiry = 86400;
585 /** This should always be customised in LocalSettings.php */
586 $wgSecretKey = false;
587 /** big list of banned IP addresses, in the keys not the values */
588 $wgProxyList = array();
592 /** Number of accounts each IP address may create, 0 to disable.
593 * Requires memcached */
594 $wgAccountCreationThrottle = 0;
596 # Client-side caching:
598 /** Allow client-side caching of pages */
599 $wgCachePages = true;
602 * Set this to current time to invalidate all prior cached pages. Affects both
603 * client- and server-side caching.
605 $wgCacheEpoch = '20030516000000';
608 # Server-side caching:
611 * This will cache static pages for non-logged-in users to reduce
612 * database traffic on public sites.
613 * Must set $wgShowIPinHeader = false
615 $wgUseFileCache = false;
616 /** Directory where the cached page will be saved */
617 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
620 * When using the file cache, we can store the cached HTML gzipped to save disk
621 * space. Pages will then also be served compressed to clients that support it.
622 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
623 * the default LocalSettings.php! If you enable this, remove that setting first.
625 * Requires zlib support enabled in PHP.
629 # Email notification settings
633 * Program to run when the email is actually sent out. You might want to make
634 * your server beep for example. Usermailer.php will make a system() call with
635 * exactly that string as parameter.
637 # $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
638 $wgEmailNotificationSystembeep = '';
640 /** For email notification on page changes */
641 $wgPasswordSender = $wgEmergencyContact;
643 # true: from PageEditor if s/he opted-in
644 # false: Enotif mails appear to come from $wgEmergencyContact
645 $wgEmailNotificationMailsSentFromPageEditor = false;
647 // TODO move UPO to preferences probably ?
648 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
649 # If set to false, the corresponding input form on the user preference page is suppressed
650 # It call this to be a "user-preferences-option (UPO)"
651 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
652 $wgEmailNotificationForWatchlistPages = false; # UPO
653 $wgEmailNotificationForUserTalkPages = false; # UPO
654 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
655 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
656 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
659 /** Show watching users in recent changes, watchlist and page history views */
660 $wgRCShowWatchingUsers = false; # UPO
661 /** Show watching users in Page views */
662 $wgPageShowWatchingUsers = false;
664 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
665 * view for watched pages with new changes */
666 $wgShowUpdatedMarker = true; # UPO
668 $wgCookieExpiration = 2592000;
670 # Squid-related settings
673 /** Enable/disable Squid */
676 /** If you run Squid3 with ESI support, enable this (default:false): */
679 /** Internal server name as known to Squid, if different */
680 # $wgInternalServer = 'http://yourinternal.tld:8000';
681 $wgInternalServer = $wgServer;
684 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
685 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
686 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
689 $wgSquidMaxage = 18000;
692 * A list of proxy servers (ips if possible) to purge on changes don't specify
693 * ports here (80 is default)
695 # $wgSquidServers = array('127.0.0.1');
696 $wgSquidServers = array();
697 $wgSquidServersNoPurge = array();
699 /** Maximum number of titles to purge in any one client operation */
700 $wgMaxSquidPurgeTitles = 400;
702 /** HTCP multicast purging */
704 $wgHTCPMulticastTTL = 1;
705 # $wgHTCPMulticastAddress = "224.0.0.85";
710 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
711 * or ".any.subdomain.net"
713 $wgCookieDomain = '';
715 $wgDisableCookieCheck = false;
717 /** Whether to allow inline image pointing to other websites */
718 $wgAllowExternalImages = true;
720 /** Disable database-intensive features */
721 $wgMiserMode = false;
722 /** Disable all query pages if miser mode is on, not just some */
723 $wgDisableQueryPages = false;
724 /** Generate a watchlist once every hour or so */
725 $wgUseWatchlistCache = false;
726 /** The hour or so mentioned above */
727 $wgWLCacheTimeout = 3600;
730 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
731 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
732 * (ImageMagick) installed and available in the PATH.
733 * Please see math/README for more information.
736 /** Location of the texvc binary */
737 $wgTexvc = './math/texvc';
740 # Profiling / debugging
743 /** Enable for more detailed by-function times in debug log */
744 $wgProfiling = false;
745 /** Only record profiling info for pages that took longer than this */
746 $wgProfileLimit = 0.0;
747 /** Don't put non-profiling info into log file */
748 $wgProfileOnly = false;
749 /** Log sums from profiling into "profiling" table in db. */
750 $wgProfileToDatabase = false;
751 /** Only profile every n requests when profiling is turned on */
752 $wgProfileSampleRate = 1;
753 /** If true, print a raw call tree instead of per-function report */
754 $wgProfileCallTree = false;
756 /** Detects non-matching wfProfileIn/wfProfileOut calls */
757 $wgDebugProfiling = false;
758 /** Output debug message on every wfProfileIn/wfProfileOut */
759 $wgDebugFunctionEntry = 0;
760 /** Lots of debugging output from SquidUpdate.php */
761 $wgDebugSquid = false;
763 $wgDisableCounters = false;
764 $wgDisableTextSearch = false;
766 * If you've disabled search semi-permanently, this also disables updates to the
767 * table. If you ever re-enable, be sure to rebuild the search table.
769 $wgDisableSearchUpdate = false;
770 /** Uploads have to be specially set up to be secure */
771 $wgEnableUploads = false;
773 * Show EXIF data, on by default if available.
774 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
776 $wgShowEXIF = function_exists( 'exif_read_data' );
779 * Set to true to enable the upload _link_ while local uploads are disabled.
780 * Assumes that the special page link will be bounced to another server where
783 $wgRemoteUploads = false;
784 $wgDisableAnonTalk = false;
787 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
788 * fall back to the old behaviour (no merging).
790 $wgDiff3 = '/usr/bin/diff3';
793 * We can also compress text in the old revisions table. If this is set on, old
794 * revisions will be compressed on page save if zlib support is available. Any
795 * compressed revisions will be decompressed on load regardless of this setting
796 * *but will not be readable at all* if zlib support is not available.
798 $wgCompressRevisions = false;
801 * This is the list of preferred extensions for uploading files. Uploading files
802 * with extensions not in this list will trigger a warning.
804 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
806 /** Files with these extensions will never be allowed as uploads. */
807 $wgFileBlacklist = array(
808 # HTML may contain cookie-stealing JavaScript and web bugs
810 # PHP scripts may execute arbitrary code on the server
811 'php', 'phtml', 'php3', 'php4', 'phps',
812 # Other types that may be interpreted by some servers
813 'shtml', 'jhtml', 'pl', 'py', 'cgi',
814 # May contain harmful executables for Windows victims
815 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
817 /** This is a flag to determine whether or not to check file extensions on upload. */
818 $wgCheckFileExtensions = true;
821 * If this is turned off, users may override the warning for files not covered
822 * by $wgFileExtensions.
824 $wgStrictFileExtensions = true;
826 /** Warn if uploaded files are larger than this */
827 $wgUploadSizeWarning = 150 * 1024;
829 /** For compatibility with old installations set to false */
830 $wgPasswordSalt = true;
832 /** Which namespaces should support subpages?
833 * See Language.php for a list of namespaces.
835 $wgNamespacesWithSubpages = array(
842 NS_PROJECT_TALK
=> 1,
846 NS_MEDIAWIKI_TALK
=> 1,
848 NS_TEMPLATE_TALK
=> 1,
852 NS_CATEGORY_TALK
=> 1
855 $wgNamespacesToBeSearchedDefault = array(
862 NS_PROJECT_TALK
=> 0,
866 NS_MEDIAWIKI_TALK
=> 1,
868 NS_TEMPLATE_TALK
=> 1,
872 NS_CATEGORY_TALK
=> 0
875 /** If set, a bold ugly notice will show up at the top of every page. */
883 /** dynamic server side image resizing ("Thumbnails") */
884 $wgUseImageResize = false;
887 * Resizing can be done using PHP's internal image libraries or using
888 * ImageMagick. The later supports more file formats than PHP, which only
889 * supports PNG, GIF, JPG, XBM and WBMP.
891 * Use Image Magick instead of PHP builtin functions.
893 $wgUseImageMagick = false;
894 /** The convert command shipped with ImageMagick */
895 $wgImageMagickConvertCommand = '/usr/bin/convert';
897 # Scalable Vector Graphics (SVG) may be uploaded as images.
898 # Since SVG support is not yet standard in browsers, it is
899 # necessary to rasterize SVGs to PNG as a fallback format.
901 # An external program is required to perform this conversion:
902 $wgSVGConverters = array(
903 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
904 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
905 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
906 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
908 /** Pick one of the above */
909 $wgSVGConverter = 'ImageMagick';
910 /** If not in the executable PATH, specify */
911 $wgSVGConverterPath = '';
913 /** @todo FIXME what does it do here ?? [ashar] */
914 if( !isset( $wgCommandLineMode ) ) {
915 $wgCommandLineMode = false;
920 # Recent changes settings
923 /** Log IP addresses in the recentchanges table */
924 $wgPutIPinRC = false;
927 * Recentchanges items are periodically purged; entries older than this many
929 * For one week : 7 * 24 * 3600
931 $wgRCMaxAge = 7 * 24 * 3600;
935 # Copyright and credits settings
938 /** RDF metadata toggles */
939 $wgEnableDublinCoreRdf = false;
940 $wgEnableCreativeCommonsRdf = false;
942 /** Override for copyright metadata.
943 * TODO: these options need documentation
945 $wgRightsPage = NULL;
947 $wgRightsText = NULL;
948 $wgRightsIcon = NULL;
950 /** Set this to some HTML to override the rights icon with an arbitrary logo */
951 $wgCopyrightIcon = NULL;
953 /** Set this to true if you want detailed copyright information forms on Upload. */
954 $wgUseCopyrightUpload = false;
956 /** Set this to false if you want to disable checking that detailed copyright
957 * information values are not empty. */
958 $wgCheckCopyrightUpload = true;
961 * Set this to the number of authors that you want to be credited below an
962 * article text. Set it to zero to hide the attribution block, and a negative
963 * number (like -1) to show all authors. Note that this will# require 2-3 extra
964 * database hits, which can have a not insignificant impact on performance for
969 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
970 * Otherwise, link to a separate credits page. */
971 $wgShowCreditsIfMax = true;
976 * Set this to false to avoid forcing the first letter of links to capitals.
977 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
978 * appearing with a capital at the beginning of a sentence will *not* go to the
979 * same place as links in the middle of a sentence using a lowercase initial.
981 $wgCapitalLinks = true;
984 * List of interwiki prefixes for wikis we'll accept as sources for
985 * Special:Import (for sysops). Since complete page history# can be imported,
986 * these should be 'trusted'.
988 $wgImportSources = array();
992 /** Text matching this regular expression will be recognised as spam
993 * See http://en.wikipedia.org/wiki/Regular_expression */
994 $wgSpamRegex = false;
995 /** Similarly if this function returns true */
996 $wgFilterCallback = false;
998 /** Go button goes straight to the edit screen if the article doesn't exist. */
1001 /** Allow limited user-specified HTML in wiki pages?
1002 * It will be run through a whitelist for security. Set this to false if you
1003 * want wiki pages to consist only of wiki markup. Note that replacements do not
1004 * yet exist for all HTML constructs.*/
1007 /** Allow raw, unchecked HTML in <html>...</html> sections.
1008 * THIS IS VERY DANGEROUS on a publically editable site, so you can't enable it
1009 * unless you've restricted editing to trusted users only with $wgWhitelistEdit.
1014 * $wgUseTidy: use tidy to make sure HTML output is sane.
1015 * This should only be enabled if $wgUserHtml is true.
1016 * tidy is a free tool that fixes broken HTML.
1017 * See http://www.w3.org/People/Raggett/tidy/
1018 * $wgTidyBin should be set to the path of the binary and
1019 * $wgTidyConf to the path of the configuration file.
1020 * $wgTidyOpts can include any number of parameters.
1022 * $wgTidyInternal controls the use of the PECL extension to use an in-
1023 * process tidy library instead of spawning a separate program.
1024 * Normally you shouldn't need to override the setting except for
1025 * debugging. To install, use 'pear install tidy' and add a line
1026 * 'extension=tidy.so' to php.ini.
1029 $wgTidyBin = 'tidy';
1030 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1032 $wgTidyInternal = function_exists( 'tidy_load_config' );
1034 /** See list of skins and their symbolic names in languages/Language.php */
1035 $wgDefaultSkin = 'monobook';
1038 * Settings added to this array will override the language globals for the user
1039 * preferences used by anonymous visitors and newly created accounts. (See names
1040 * and sample values in languages/Language.php)
1041 * For instance, to disable section editing links:
1042 * $wgDefaultUserOptions ['editsection'] = 0;
1045 $wgDefaultUserOptions = array();
1047 /** Whether or not to allow and use real name fields. Defaults to true. */
1048 $wgAllowRealName = true;
1050 /** Use XML parser? */
1051 $wgUseXMLparser = false ;
1054 $wgSkinExtensionFunctions = array();
1055 $wgExtensionFunctions = array();
1058 * Allow user Javascript page?
1059 * This enables a lot of neat customizations, but may
1060 * increase security risk to users and server load.
1062 $wgAllowUserJs = false;
1065 * Allow user Cascading Style Sheets (CSS)?
1066 * This enables a lot of neat customizations, but may
1067 * increase security risk to users and server load.
1069 $wgAllowUserCss = false;
1071 /** Use the site's Javascript page? */
1072 $wgUseSiteJs = true;
1074 /** Use the site's Cascading Style Sheets (CSS)? */
1075 $wgUseSiteCss = true;
1077 /** Filter for Special:Randompage. Part of a WHERE clause */
1078 $wgExtraRandompageSQL = false;
1080 /** Allow the "info" action, very inefficient at the moment */
1081 $wgAllowPageInfo = false;
1083 /** Maximum indent level of toc. */
1084 $wgMaxTocLevel = 999;
1086 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1087 $wgUseExternalDiffEngine = false;
1089 /** Use RC Patrolling to check for vandalism */
1090 $wgUseRCPatrol = true;
1092 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1093 * eg Recentchanges, Newpages. */
1096 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1097 * A cached version will continue to be served out even if changes
1098 * are made, until this many seconds runs out since the last render. */
1099 $wgFeedCacheTimeout = 60;
1101 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1102 * pages larger than this size. */
1103 $wgFeedDiffCutoff = 32768;
1107 * Additional namespaces. If the namespaces defined in Language.php and
1108 * Namespace.php are insufficient,# you can create new ones here, for example,
1109 * to import Help files in other languages.
1110 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1111 * no longer be accessible. If you rename it, then you can access them through
1112 * the new namespace name.
1114 * Custom namespaces should start at 100 to avoid conflicting with standard
1115 * namespaces, and should always follow the even/odd main/talk pattern.
1117 #$wgExtraNamespaces =
1118 # array(100 => "Hilfe",
1119 # 101 => "Hilfe_Diskussion",
1121 # 103 => "Discussion_Aide"
1123 $wgExtraNamespaces = NULL;
1126 * Limit images on image description pages to a user-selectable limit. In order
1127 * to reduce disk usage, limits can only be selected from a list. This is the
1128 * list of settings the user can choose from:
1130 $wgImageLimits = array (
1136 array(10000,10000) );
1139 * Adjust thumbnails on image pages according to a user setting. In order to
1140 * reduce disk usage, the values can only be selected from a list. This is the
1141 * list of settings the user can choose from:
1143 $wgThumbLimits = array(
1152 /** Navigation links for the user sidebar.
1153 * 'text' is the name of the MediaWiki message that contains the label of this link
1154 * 'href' is the name of the MediaWiki message that contains the link target of this link.
1155 * Link targets starting with http are considered remote links. Ones not starting with
1156 * http are considered as names of local wiki pages.
1158 $wgNavigationLinks = array (
1159 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
1160 array( 'text'=>'portal', 'href'=>'portal-url' ),
1161 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
1162 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
1163 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
1164 array( 'text'=>'help', 'href'=>'helppage' ),
1165 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
1169 * On category pages, show thumbnail gallery for images belonging to that
1170 * category instead of listing them as articles.
1172 $wgCategoryMagicGallery = true;
1175 * Browser Blacklist for unicode non compliant browsers
1176 * Contains a list of regexps : "/regexp/" matching problematic browsers
1178 $wgBrowserBlackList = array(
1179 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1181 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1184 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1185 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1186 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1189 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1190 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1192 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1196 * Fake out the timezone that the server thinks it's in. This will be used for
1197 * date display and not for what's stored in the DB. Leave to null to retain
1198 * your server's OS-based timezone value. This is the same as the timezone.
1200 # $wgLocaltimezone = 'GMT';
1201 # $wgLocaltimezone = 'PST8PDT';
1202 # $wgLocaltimezone = 'Europe/Sweden';
1203 # $wgLocaltimezone = 'CET';
1204 $wgLocaltimezone = null;
1207 * User level management
1208 * The number is the database id of a group you want users to be attached by
1209 * default. A better interface should be coded [av]
1212 $wgLoggedInGroupId = 2;
1213 $wgSysopGroupId = 3;
1214 $wgBureaucratGroupId = 4;
1215 $wgStewardGroupId = 5;
1218 * When translating messages with wfMsg(), it is not always clear what should be
1219 * considered UI messages and what shoud be content messages.
1221 * For example, for regular wikipedia site like en, there should be only one
1222 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1223 * it as content of the site and call wfMsgForContent(), while for rendering the
1224 * text of the link, we call wfMsg(). The code in default behaves this way.
1225 * However, sites like common do offer different versions of 'mainpage' and the
1226 * like for different languages. This array provides a way to override the
1227 * default behavior. For example, to allow language specific mainpage and
1228 * community portal, set
1230 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1232 $wgForceUIMsgAsContentMsg = array();
1236 * Authentication plugin.
1241 * Global list of hooks.
1242 * Add a hook by doing:
1243 * $wgHooks['event_name'][] = $function;
1245 * $wgHooks['event_name'][] = array($function, $data);
1247 * $wgHooks['event_name'][] = array($object, 'method');
1252 * Experimental preview feature to fetch rendered text
1253 * over an XMLHttpRequest from JavaScript instead of
1254 * forcing a submit and reload of the whole page.
1255 * Leave disabled unless you're testing it.
1257 $wgLivePreview = false;
1260 * Disable the internal MySQL-based search, to allow it to be
1261 * implemented by an extension instead.
1263 $wgDisableInternalSearch = false;
1266 * Set this to a URL to forward search requests to some external location.
1267 * If the URL includes '$1', this will be replaced with the URL-encoded
1270 * For example, to forward to Google you'd have something like:
1271 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1272 * '&domains=http://example.com' .
1273 * '&sitesearch=http://example.com' .
1274 * '&ie=utf-8&oe=utf-8';
1276 $wgSearchForwardUrl = null;
1279 * If true, external URL links in wiki text will be given the
1280 * rel="nofollow" attribute as a hint to search engines that
1281 * they should not be followed for ranking purposes as they
1282 * are user-supplied and thus subject to spamming.
1284 $wgNoFollowLinks = true;
1287 * Specifies the minimal length of a user password. If set to
1288 * 0, empty passwords are allowed.
1290 $wgMinimalPasswordLength = 0;
1293 * Activate external editor interface for files and pages
1294 * See http://meta.wikimedia.org/wiki/Help:External_editors
1296 $wgUseExternalEditor = true;
1298 /** Whether or not to sort special pages in Special:Specialpages */
1300 $wgSortSpecialPages = true;
1303 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1305 $wgDisabledActions = array();
1308 * Use http.dnsbl.sorbs.net to check for open proxies
1310 $wgEnableSorbs = false;
1313 * On Special:Unusedimages, consider images "used", if they are put
1314 * into a category. Default (false) is not to count those as used.
1316 $wgCountCategorizedImagesAsUsed = false;
1319 * External stores allow including content
1320 * from non database sources following URL links
1322 * Short names of ExternalStore classes may be specified in an array here:
1323 * $wgExternalStores = array("http","file","custom")...
1325 * CAUTION: Access to database might lead to code execution
1327 $wgExternalStores = false;