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
12 * Documentation is in the source and on:
13 * http://meta.wikimedia.org/wiki/Help:Configuration_settings_index
18 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
19 if( !defined( 'MEDIAWIKI' ) ) {
20 die( "This file is part of MediaWiki and is not a valid entry point\n" );
24 * Create a site configuration object
25 * Not used for much in a default install
27 require_once( 'includes/SiteConfiguration.php' );
28 $wgConf = new SiteConfiguration
;
30 /** MediaWiki version number */
31 $wgVersion = '1.6alpha';
33 /** Name of the site. It must be changed in LocalSettings.php */
34 $wgSitename = 'MediaWiki';
36 /** Will be same as you set @see $wgSitename */
37 $wgMetaNamespace = FALSE;
40 /** URL of the server. It will be automaticly build including https mode */
43 if( isset( $_SERVER['SERVER_NAME'] ) ) {
44 $wgServerName = $_SERVER['SERVER_NAME'];
45 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
46 $wgServerName = $_SERVER['HOSTNAME'];
47 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
48 $wgServerName = $_SERVER['HTTP_HOST'];
49 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
50 $wgServerName = $_SERVER['SERVER_ADDR'];
52 $wgServerName = 'localhost';
55 # check if server use https:
56 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
58 $wgServer = $wgProto.'://' . $wgServerName;
59 # If the port is a non-standard one, add it to the URL
60 if( isset( $_SERVER['SERVER_PORT'] )
61 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
62 ||
( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
64 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
70 * The path we should point to.
71 * It might be a virtual path in case with use apache mod_rewrite for example
73 $wgScriptPath = '/wiki';
76 * Whether to support URLs like index.php/Page_title
77 * @global bool $wgUsePathInfo
79 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
83 * Script users will request to get articles
84 * ATTN: Old installations used wiki.phtml and redirect.phtml -
85 * make sure that LocalSettings.php is correctly set!
89 * @global string $wgScript
91 $wgScript = "{$wgScriptPath}/index.php";
93 * @global string $wgRedirectScript
95 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
103 * style path as seen by users
104 * @global string $wgStylePath
106 $wgStylePath = "{$wgScriptPath}/skins";
108 * filesystem stylesheets directory
109 * @global string $wgStyleDirectory
111 $wgStyleDirectory = "{$IP}/skins";
112 $wgStyleSheetPath = &$wgStylePath;
113 $wgArticlePath = "{$wgScript}?title=$1";
114 $wgUploadPath = "{$wgScriptPath}/upload";
115 $wgUploadDirectory = "{$IP}/upload";
116 $wgHashedUploadDirectory = true;
117 $wgLogo = "{$wgUploadPath}/wiki.png";
118 $wgMathPath = "{$wgUploadPath}/math";
119 $wgMathDirectory = "{$wgUploadDirectory}/math";
120 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
121 $wgUploadBaseUrl = "";
125 * The external URL protocols (regexp)
127 $wgUrlProtocols = 'http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:';
129 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
130 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
131 * @global string $wgAntivirus
135 /** Configuration for different virus scanners. This an associative array of associative arrays:
136 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
137 * valid values for $wgAntivirus are the keys defined in this array.
139 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
141 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
142 * file to scan. If not present, the filename will be appended to the command. Note that this must be
143 * overwritten if the scanner is not in the system path; in that case, plase set
144 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
146 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
147 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
148 * the file if $wgAntivirusRequired is not set.
149 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
150 * which is probably imune to virusses. This causes the file to pass.
151 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
152 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
153 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
155 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
156 * output. The relevant part should be matched as group one (\1).
157 * If not defined or the pattern does not match, the full message is shown to the user.
159 * @global array $wgAntivirusSetup
161 $wgAntivirusSetup= array(
165 'command' => "clamscan --no-summary ",
168 "0"=> AV_NO_VIRUS
, #no virus
169 "1"=> AV_VIRUS_FOUND
, #virus found
170 "52"=> AV_SCAN_ABORTED
, #unsupported file format (probably imune)
171 "*"=> AV_SCAN_FAILED
, #else scan failed
174 'messagepattern'=> '/.*?:(.*)/sim',
179 'command' => "f-prot ",
182 "0"=> AV_NO_VIRUS
, #no virus
183 "3"=> AV_VIRUS_FOUND
, #virus found
184 "6"=> AV_VIRUS_FOUND
, #virus found
185 "*"=> AV_SCAN_FAILED
, #else scan failed
188 'messagepattern'=> '/.*?Infection:(.*)$/m',
193 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
194 * @global boolean $wgAntivirusRequired
196 $wgAntivirusRequired= true;
198 /** Determines if the mime type of uploaded files should be checked
199 * @global boolean $wgVerifyMimeType
201 $wgVerifyMimeType= true;
203 /** Sets the mime type definition file to use by MimeMagic.php.
204 * @global string $wgMimeTypeFile
206 #$wgMimeTypeFile= "/etc/mime.types";
207 $wgMimeTypeFile= "includes/mime.types";
208 #$wgMimeTypeFile= NULL; #use build in defaults only.
210 /** Sets the mime type info file to use by MimeMagic.php.
211 * @global string $wgMimeInfoFile
213 $wgMimeInfoFile= "includes/mime.info";
214 #$wgMimeInfoFile= NULL; #use build in defaults only.
216 /** Switch for loading the FileInfo extension by PECL at runtime.
217 * This should be used only if fileinfo is installed as a shared object / dynamic libary
218 * @global string $wgLoadFileinfoExtension
220 $wgLoadFileinfoExtension= false;
222 /** Sets an external mime detector program. The command must print only the mime type to standard output.
223 * the name of the file to process will be appended to the command given here.
224 * If not set or NULL, mime_content_type will be used if available.
226 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
227 #$wgMimeDetectorCommand= "file -bi" #use external mime detector (linux)
229 /** Switch for trivial mime detection. Used by thumb.php to disable all fance things,
230 * because only a few types of images are needed and file extensions can be trusted.
232 $wgTrivialMimeDetection= false;
235 * Produce hashed HTML article paths. Used internally, do not set.
237 $wgMakeDumpLinks = false;
240 * To set 'pretty' URL paths for actions other than
241 * plain page views, add to this array. For instance:
242 * 'edit' => "$wgScriptPath/edit/$1"
244 * There must be an appropriate script or rewrite rule
245 * in place to handle these URLs.
247 $wgActionPaths = array();
250 * If you operate multiple wikis, you can define a shared upload path here.
251 * Uploads to this wiki will NOT be put there - they will be put into
252 * $wgUploadDirectory.
253 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
254 * no file of the given name is found in the local repository (for [[Image:..]],
255 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
258 $wgUseSharedUploads = false;
259 /** Full path on the web server where shared uploads can be found */
260 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
261 /** Fetch commons image description pages and display them on the local wiki? */
262 $wgFetchCommonsDescriptions = false;
263 /** Path on the file system where shared uploads can be found. */
264 $wgSharedUploadDirectory = "/var/www/wiki3/images";
265 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
266 $wgSharedUploadDBname = false;
267 /** Optional table prefix used in database. */
268 $wgSharedUploadDBprefix = '';
269 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
270 $wgCacheSharedUploads = true;
273 * Point the upload navigation link to an external URL
274 * Useful if you want to use a shared repository by default
275 * without disabling local uploads
276 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
278 $wgUploadNavigationUrl = false;
281 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
282 * generating them on render and outputting a static URL. This is necessary if some of your
283 * apache servers don't have read/write access to the thumbnail path.
286 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
288 $wgThumbnailScriptPath = false;
289 $wgSharedThumbnailScriptPath = false;
292 * Set the following to false especially if you have a set of files that need to
293 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
296 $wgHashedSharedUploadDirectory = true;
299 * Base URL for a repository wiki. Leave this blank if uploads are just stored
300 * in a shared directory and not meant to be accessible through a separate wiki.
301 * Otherwise the image description pages on the local wiki will link to the
302 * image description page on this wiki.
304 * Please specify the namespace, as in the example below.
306 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
314 * Site admin email address
315 * Default to wikiadmin@SERVER_NAME
316 * @global string $wgEmergencyContact
318 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
321 * Password reminder email address
322 * The address we should use as sender when a user is requesting his password
323 * Default to apache@SERVER_NAME
324 * @global string $wgPasswordSender
326 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
329 * dummy address which should be accepted during mail send action
330 * It might be necessay to adapt the address or to set it equal
331 * to the $wgEmergencyContact address
333 #$wgNoReplyAddress = $wgEmergencyContact;
334 $wgNoReplyAddress = 'reply@not.possible';
337 * Set to true to enable the e-mail basic features:
338 * Password reminders, etc. If sending e-mail on your
339 * server doesn't work, you might want to disable this.
340 * @global bool $wgEnableEmail
342 $wgEnableEmail = true;
345 * Set to true to enable user-to-user e-mail.
346 * This can potentially be abused, as it's hard to track.
347 * @global bool $wgEnableUserEmail
349 $wgEnableUserEmail = true;
353 * For using a direct (authenticated) SMTP server connection.
354 * Default to false or fill an array :
356 * "host" => 'SMTP domain',
357 * "IDHost" => 'domain for MessageID',
359 * "auth" => true/false,
360 * "username" => user,
361 * "password" => password
364 * @global mixed $wgSMTP
372 /** database host name or ip address */
373 $wgDBserver = 'localhost';
374 /** name of the database */
375 $wgDBname = 'wikidb';
377 $wgDBconnection = '';
378 /** Database username */
379 $wgDBuser = 'wikiuser';
381 * "mysql" for working code and "PostgreSQL" for development/broken code
385 * Leave as null to select the default search engine for the
386 * selected database type (eg SearchMySQL4), or set to a class
387 * name to override to a custom search engine.
389 $wgSearchType = null;
390 /** Table name prefix */
393 * on some databases this allows separate
394 * logical namespace for application data
396 $wgDBschema = 'mediawiki';
402 * Shared database for multiple wikis. Presently used for storing a user table
403 * for single sign-on. The server for this database must be the same as for the
409 # Database load balancer
410 # This is a two-dimensional array, an array of server info structures
413 # dbname: Default database name
415 # password: DB password
416 # type: "mysql" or "pgsql"
417 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
418 # groupLoads: array of load ratios, the key is the query group name. A query may belong
419 # to several groups, the most specific group defined here is used.
422 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
423 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
424 # DBO_TRX -- wrap entire request in a transaction
425 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
426 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
428 # Leave at false to use the single-server variables above
429 $wgDBservers = false;
431 /** How long to wait for a slave to catch up to the master */
432 $wgMasterWaitTimeout = 10;
434 /** File to log MySQL errors to */
435 $wgDBerrorLog = false;
437 /** When to give an error message */
438 $wgDBClusterTimeout = 10;
442 * MySQL 3.x : used to discard words that MySQL will not return any results for
443 * shorter values configure mysql directly.
444 * MySQL 4.x : ignore it and configure mySQL
445 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
448 /** Set to true if using InnoDB tables */
449 $wgDBtransactions = false;
450 /** Set to true for compatibility with extensions that might be checking.
451 * MySQL 3.23.x is no longer supported. */
455 * Other wikis on this site, can be administered from a single developer
457 * Array, interwiki prefix => database name
459 $wgLocalDatabases = array();
462 * Object cache settings
463 * See Defines.php for types
465 $wgMainCacheType = CACHE_NONE
;
466 $wgMessageCacheType = CACHE_ANYTHING
;
467 $wgParserCacheType = CACHE_ANYTHING
;
469 $wgSessionsInMemcached = false;
470 $wgLinkCacheMemcached = false; # Not fully tested
473 * Memcached-specific settings
474 * See docs/memcached.txt
476 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
477 $wgMemCachedServers = array( '127.0.0.1:11000' );
478 $wgMemCachedDebug = false;
484 /** Site language code, should be one of ./languages/Language(.*).php */
485 $wgLanguageCode = 'en';
487 /** Treat language links as magic connectors, not inline links */
488 $wgInterwikiMagic = true;
490 /** Hide interlanguage links from the sidebar */
491 $wgHideInterlanguageLinks = false;
494 /** We speak UTF-8 all the time now, unless some oddities happen */
495 $wgInputEncoding = 'UTF-8';
496 $wgOutputEncoding = 'UTF-8';
497 $wgEditEncoding = '';
499 # Set this to eg 'ISO-8859-1' to perform character set
500 # conversion when loading old revisions not marked with
501 # "utf-8" flag. Use this when converting wiki to UTF-8
502 # without the burdensome mass conversion of old text data.
504 # NOTE! This DOES NOT touch any fields other than old_text.
505 # Titles, comments, user names, etc still must be converted
506 # en masse in the database before continuing as a UTF-8 wiki.
507 $wgLegacyEncoding = false;
510 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
511 * create stub reference rows in the text table instead of copying
512 * the full text of all current entries from 'cur' to 'text'.
514 * This will speed up the conversion step for large sites, but
515 * requires that the cur table be kept around for those revisions
516 * to remain viewable.
518 * maintenance/migrateCurStubs.php can be used to complete the
519 * migration in the background once the wiki is back online.
521 * This option affects the updaters *only*. Any present cur stub
522 * revisions will be readable at runtime regardless of this setting.
524 $wgLegacySchemaConversion = false;
526 $wgMimeType = 'text/html';
527 $wgJsMimeType = 'text/javascript';
528 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
529 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
531 /** Enable to allow rewriting dates in page text.
532 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
533 $wgUseDynamicDates = false;
534 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
535 * the interface is set to English
537 $wgAmericanDates = false;
539 * For Hindi and Arabic use local numerals instead of Western style (0-9)
540 * numerals in interface.
542 $wgTranslateNumerals = true;
545 # Translation using MediaWiki: namespace
546 # This will increase load times by 25-60% unless memcached is installed
547 # Interface messages will be loaded from the database.
548 $wgUseDatabaseMessages = true;
549 $wgMsgCacheExpiry = 86400;
551 # Whether to enable language variant conversion.
552 $wgDisableLangConversion = false;
554 # Use article validation feature; turned off by default
555 $wgUseValidation = false;
556 $wgValidationForAnons = true ;
558 # Whether to use zhdaemon to perform Chinese text processing
559 # zhdaemon is under developement, so normally you don't want to
560 # use it unless for testing
561 $wgUseZhdaemon = false;
562 $wgZhdaemonHost="localhost";
563 $wgZhdaemonPort=2004;
565 /** Normally you can ignore this and it will be something
566 like $wgMetaNamespace . "_talk". In some languages, you
567 may want to set this manually for grammatical reasons.
568 It is currently only respected by those languages
569 where it might be relevant and where no automatic
570 grammar converter exists.
572 $wgMetaNamespaceTalk = false;
574 # Miscellaneous configuration settings
577 $wgLocalInterwiki = 'w';
578 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
581 * If local interwikis are set up which allow redirects,
582 * set this regexp to restrict URLs which will be displayed
583 * as 'redirected from' links.
585 * It might look something like this:
586 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
588 * Leave at false to avoid displaying any incoming redirect markers.
589 * This does not affect intra-wiki redirects, which don't change
592 $wgRedirectSources = false;
595 $wgShowIPinHeader = true; # For non-logged in users
596 $wgMaxNameChars = 255; # Maximum number of bytes in username
598 $wgExtraSubtitle = '';
599 $wgSiteSupportPage = ''; # A page where you users can receive donations
601 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
604 * The debug log file should be not be publicly accessible if it is used, as it
605 * may contain private data. */
606 $wgDebugLogFile = '';
611 $wgDebugRedirects = false;
612 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
614 $wgDebugComments = false;
616 $wgLogQueries = false;
617 $wgDebugDumpSql = false;
620 * Set to an array of log group keys to filenames.
621 * If set, wfDebugLog() output for that group will go to that file instead
622 * of the regular $wgDebugLogFile. Useful for enabling selective logging
625 $wgDebugLogGroups = array();
628 * Whether to show "we're sorry, but there has been a database error" pages.
629 * Displaying errors aids in debugging, but may display information useful
632 $wgShowSQLErrors = false;
634 # Should [[Category:Dog]] on a page associate it with the
635 # category "Dog"? (a link to that category page will be
636 # added to the article, clicking it reveals a list of
637 # all articles in the category)
638 $wgUseCategoryMagic = true;
641 * disable experimental dmoz-like category browsing. Output things like:
642 * Encyclopedia > Music > Style of Music > Jazz
644 $wgUseCategoryBrowser = false;
647 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
648 * to speed up output of the same page viewed by another user with the
651 * This can provide a significant speedup for medium to large pages,
652 * so you probably want to keep it on.
654 $wgEnableParserCache = true;
657 * Under which condition should a page in the main namespace be counted
658 * as a valid article? If $wgUseCommaCount is set to true, it will be
659 * counted if it contains at least one comma. If it is set to false
660 * (default), it will only be counted if it contains at least one [[wiki
661 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
663 * Retroactively changing this variable will not affect
664 * the existing count (cf. maintenance/recount.sql).
666 $wgUseCommaCount = false;
671 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
672 * values are easier on the database. A value of 1 causes the counters to be
673 * updated on every hit, any higher value n cause them to update *on average*
674 * every n hits. Should be set to either 1 or something largish, eg 1000, for
675 * maximum efficiency.
677 $wgHitcounterUpdateFreq = 1;
679 # User rights settings
681 # It's not 100% safe, there could be security hole using that one. Use at your
684 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
686 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
688 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
689 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
691 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
692 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
695 * Permission keys given to users in each group.
696 * All users are implicitly in the '*' group including anonymous visitors;
697 * logged-in users are all implicitly in the 'user' group. These will be
698 * combined with the permissions of all groups that a given user is listed
699 * in in the user_groups table.
701 * This replaces wgWhitelistAccount and wgWhitelistEdit
703 $wgGroupPermissions = array();
705 $wgGroupPermissions['*' ]['createaccount'] = true;
706 $wgGroupPermissions['*' ]['read'] = true;
707 $wgGroupPermissions['*' ]['edit'] = true;
709 $wgGroupPermissions['user' ]['move'] = true;
710 $wgGroupPermissions['user' ]['read'] = true;
711 $wgGroupPermissions['user' ]['edit'] = true;
712 $wgGroupPermissions['user' ]['upload'] = true;
714 $wgGroupPermissions['bot' ]['bot'] = true;
716 $wgGroupPermissions['sysop']['block'] = true;
717 $wgGroupPermissions['sysop']['createaccount'] = true;
718 $wgGroupPermissions['sysop']['delete'] = true;
719 $wgGroupPermissions['sysop']['editinterface'] = true;
720 $wgGroupPermissions['sysop']['import'] = true;
721 $wgGroupPermissions['sysop']['importupload'] = true;
722 $wgGroupPermissions['sysop']['move'] = true;
723 $wgGroupPermissions['sysop']['patrol'] = true;
724 $wgGroupPermissions['sysop']['protect'] = true;
725 $wgGroupPermissions['sysop']['rollback'] = true;
726 $wgGroupPermissions['sysop']['upload'] = true;
728 $wgGroupPermissions['bureaucrat']['userrights'] = true;
729 // Used by the Special:Renameuser extension
730 $wgGroupPermissions['bureaucrat']['renameuser'] = true;
733 * The developer group is deprecated, but can be activated if need be
734 * to use the 'lockdb' and 'unlockdb' special pages. Those require
735 * that a lock file be defined and creatable/removable by the web
738 # $wgGroupPermissions['developer']['siteadmin'] = true;
742 # Proxy scanner settings
746 * If you enable this, every editor's IP address will be scanned for open HTTP
749 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
750 * ISP and ask for your server to be shut down.
752 * You have been warned.
754 $wgBlockOpenProxies = false;
755 /** Port we want to scan for a proxy */
756 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
757 /** Script used to scan */
758 $wgProxyScriptPath = "$IP/proxy_check.php";
760 $wgProxyMemcExpiry = 86400;
761 /** This should always be customised in LocalSettings.php */
762 $wgSecretKey = false;
763 /** big list of banned IP addresses, in the keys not the values */
764 $wgProxyList = array();
768 /** Number of accounts each IP address may create, 0 to disable.
769 * Requires memcached */
770 $wgAccountCreationThrottle = 0;
772 # Client-side caching:
774 /** Allow client-side caching of pages */
775 $wgCachePages = true;
778 * Set this to current time to invalidate all prior cached pages. Affects both
779 * client- and server-side caching.
781 $wgCacheEpoch = '20030516000000';
784 # Server-side caching:
787 * This will cache static pages for non-logged-in users to reduce
788 * database traffic on public sites.
789 * Must set $wgShowIPinHeader = false
791 $wgUseFileCache = false;
792 /** Directory where the cached page will be saved */
793 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
796 * When using the file cache, we can store the cached HTML gzipped to save disk
797 * space. Pages will then also be served compressed to clients that support it.
798 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
799 * the default LocalSettings.php! If you enable this, remove that setting first.
801 * Requires zlib support enabled in PHP.
805 # Email notification settings
808 /** For email notification on page changes */
809 $wgPasswordSender = $wgEmergencyContact;
811 # true: from page editor if s/he opted-in
812 # false: Enotif mails appear to come from $wgEmergencyContact
813 $wgEnotifFromEditor = false;
815 // TODO move UPO to preferences probably ?
816 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
817 # If set to false, the corresponding input form on the user preference page is suppressed
818 # It call this to be a "user-preferences-option (UPO)"
819 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
820 $wgEnotifWatchlist = false; # UPO
821 $wgEnotifUserTalk = false; # UPO
822 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
823 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
824 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
827 /** Show watching users in recent changes, watchlist and page history views */
828 $wgRCShowWatchingUsers = false; # UPO
829 /** Show watching users in Page views */
830 $wgPageShowWatchingUsers = false;
832 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
833 * view for watched pages with new changes */
834 $wgShowUpdatedMarker = true;
836 $wgCookieExpiration = 2592000;
838 /** Clock skew or the one-second resolution of time() can occasionally cause cache
839 * problems when the user requests two pages within a short period of time. This
840 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
843 $wgClockSkewFudge = 5;
845 # Squid-related settings
848 /** Enable/disable Squid */
851 /** If you run Squid3 with ESI support, enable this (default:false): */
854 /** Internal server name as known to Squid, if different */
855 # $wgInternalServer = 'http://yourinternal.tld:8000';
856 $wgInternalServer = $wgServer;
859 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
860 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
861 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
864 $wgSquidMaxage = 18000;
867 * A list of proxy servers (ips if possible) to purge on changes don't specify
868 * ports here (80 is default)
870 # $wgSquidServers = array('127.0.0.1');
871 $wgSquidServers = array();
872 $wgSquidServersNoPurge = array();
874 /** Maximum number of titles to purge in any one client operation */
875 $wgMaxSquidPurgeTitles = 400;
877 /** HTCP multicast purging */
879 $wgHTCPMulticastTTL = 1;
880 # $wgHTCPMulticastAddress = "224.0.0.85";
885 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
886 * or ".any.subdomain.net"
888 $wgCookieDomain = '';
890 $wgDisableCookieCheck = false;
892 /** Whether to allow inline image pointing to other websites */
893 $wgAllowExternalImages = true;
895 /** Disable database-intensive features */
896 $wgMiserMode = false;
897 /** Disable all query pages if miser mode is on, not just some */
898 $wgDisableQueryPages = false;
899 /** Generate a watchlist once every hour or so */
900 $wgUseWatchlistCache = false;
901 /** The hour or so mentioned above */
902 $wgWLCacheTimeout = 3600;
905 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
906 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
907 * (ImageMagick) installed and available in the PATH.
908 * Please see math/README for more information.
911 /** Location of the texvc binary */
912 $wgTexvc = './math/texvc';
915 # Profiling / debugging
918 /** Enable for more detailed by-function times in debug log */
919 $wgProfiling = false;
920 /** Only record profiling info for pages that took longer than this */
921 $wgProfileLimit = 0.0;
922 /** Don't put non-profiling info into log file */
923 $wgProfileOnly = false;
924 /** Log sums from profiling into "profiling" table in db. */
925 $wgProfileToDatabase = false;
926 /** Only profile every n requests when profiling is turned on */
927 $wgProfileSampleRate = 1;
928 /** If true, print a raw call tree instead of per-function report */
929 $wgProfileCallTree = false;
931 /** Detects non-matching wfProfileIn/wfProfileOut calls */
932 $wgDebugProfiling = false;
933 /** Output debug message on every wfProfileIn/wfProfileOut */
934 $wgDebugFunctionEntry = 0;
935 /** Lots of debugging output from SquidUpdate.php */
936 $wgDebugSquid = false;
938 $wgDisableCounters = false;
939 $wgDisableTextSearch = false;
941 * If you've disabled search semi-permanently, this also disables updates to the
942 * table. If you ever re-enable, be sure to rebuild the search table.
944 $wgDisableSearchUpdate = false;
945 /** Uploads have to be specially set up to be secure */
946 $wgEnableUploads = false;
948 * Show EXIF data, on by default if available.
949 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
951 $wgShowEXIF = function_exists( 'exif_read_data' );
954 * Set to true to enable the upload _link_ while local uploads are disabled.
955 * Assumes that the special page link will be bounced to another server where
958 $wgRemoteUploads = false;
959 $wgDisableAnonTalk = false;
961 * Do DELETE/INSERT for link updates instead of incremental
963 $wgUseDumbLinkUpdate = false;
966 * Anti-lock flags - bitfield
968 * Preload links during link update for save
969 * ALF_PRELOAD_EXISTENCE
970 * Preload cur_id during replaceLinkHolders
972 * Don't use locking reads when updating the link table. This is
973 * necessary for wikis with a high edit rate for performance
974 * reasons, but may cause link table inconsistency
976 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
979 $wgAntiLockFlags = 0;
982 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
983 * fall back to the old behaviour (no merging).
985 $wgDiff3 = '/usr/bin/diff3';
988 * We can also compress text in the old revisions table. If this is set on, old
989 * revisions will be compressed on page save if zlib support is available. Any
990 * compressed revisions will be decompressed on load regardless of this setting
991 * *but will not be readable at all* if zlib support is not available.
993 $wgCompressRevisions = false;
996 * This is the list of preferred extensions for uploading files. Uploading files
997 * with extensions not in this list will trigger a warning.
999 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1001 /** Files with these extensions will never be allowed as uploads. */
1002 $wgFileBlacklist = array(
1003 # HTML may contain cookie-stealing JavaScript and web bugs
1004 'html', 'htm', 'js', 'jsb',
1005 # PHP scripts may execute arbitrary code on the server
1006 'php', 'phtml', 'php3', 'php4', 'phps',
1007 # Other types that may be interpreted by some servers
1008 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1009 # May contain harmful executables for Windows victims
1010 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1012 /** Files with these mime types will never be allowed as uploads
1013 * if $wgVerifyMimeType is enabled.
1015 $wgMimeTypeBlacklist= array(
1016 # HTML may contain cookie-stealing JavaScript and web bugs
1017 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1018 # PHP scripts may execute arbitrary code on the server
1019 'application/x-php', 'text/x-php',
1020 # Other types that may be interpreted by some servers
1021 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh'
1024 /** This is a flag to determine whether or not to check file extensions on upload. */
1025 $wgCheckFileExtensions = true;
1028 * If this is turned off, users may override the warning for files not covered
1029 * by $wgFileExtensions.
1031 $wgStrictFileExtensions = true;
1033 /** Warn if uploaded files are larger than this */
1034 $wgUploadSizeWarning = 150 * 1024;
1036 /** For compatibility with old installations set to false */
1037 $wgPasswordSalt = true;
1039 /** Which namespaces should support subpages?
1040 * See Language.php for a list of namespaces.
1042 $wgNamespacesWithSubpages = array(
1045 NS_USER_TALK
=> true,
1046 NS_PROJECT_TALK
=> true,
1047 NS_IMAGE_TALK
=> true,
1048 NS_MEDIAWIKI_TALK
=> true,
1049 NS_TEMPLATE_TALK
=> true,
1050 NS_HELP_TALK
=> true,
1051 NS_CATEGORY_TALK
=> true
1054 $wgNamespacesToBeSearchedDefault = array(
1058 /** If set, a bold ugly notice will show up at the top of every page. */
1066 /** dynamic server side image resizing ("Thumbnails") */
1067 $wgUseImageResize = false;
1070 * Resizing can be done using PHP's internal image libraries or using
1071 * ImageMagick. The later supports more file formats than PHP, which only
1072 * supports PNG, GIF, JPG, XBM and WBMP.
1074 * Use Image Magick instead of PHP builtin functions.
1076 $wgUseImageMagick = false;
1077 /** The convert command shipped with ImageMagick */
1078 $wgImageMagickConvertCommand = '/usr/bin/convert';
1080 # Scalable Vector Graphics (SVG) may be uploaded as images.
1081 # Since SVG support is not yet standard in browsers, it is
1082 # necessary to rasterize SVGs to PNG as a fallback format.
1084 # An external program is required to perform this conversion:
1085 $wgSVGConverters = array(
1086 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1087 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1088 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1089 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1091 /** Pick one of the above */
1092 $wgSVGConverter = 'ImageMagick';
1093 /** If not in the executable PATH, specify */
1094 $wgSVGConverterPath = '';
1096 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1097 if( !isset( $wgCommandLineMode ) ) {
1098 $wgCommandLineMode = false;
1103 # Recent changes settings
1106 /** Log IP addresses in the recentchanges table */
1107 $wgPutIPinRC = false;
1110 * Recentchanges items are periodically purged; entries older than this many
1112 * For one week : 7 * 24 * 3600
1114 $wgRCMaxAge = 7 * 24 * 3600;
1117 # Send RC updates via UDP
1118 $wgRC2UDPAddress = false;
1119 $wgRC2UDPPort = false;
1120 $wgRC2UDPPrefix = '';
1123 # Copyright and credits settings
1126 /** RDF metadata toggles */
1127 $wgEnableDublinCoreRdf = false;
1128 $wgEnableCreativeCommonsRdf = false;
1130 /** Override for copyright metadata.
1131 * TODO: these options need documentation
1133 $wgRightsPage = NULL;
1134 $wgRightsUrl = NULL;
1135 $wgRightsText = NULL;
1136 $wgRightsIcon = NULL;
1138 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1139 $wgCopyrightIcon = NULL;
1141 /** Set this to true if you want detailed copyright information forms on Upload. */
1142 $wgUseCopyrightUpload = false;
1144 /** Set this to false if you want to disable checking that detailed copyright
1145 * information values are not empty. */
1146 $wgCheckCopyrightUpload = true;
1149 * Set this to the number of authors that you want to be credited below an
1150 * article text. Set it to zero to hide the attribution block, and a negative
1151 * number (like -1) to show all authors. Note that this will require 2-3 extra
1152 * database hits, which can have a not insignificant impact on performance for
1157 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1158 * Otherwise, link to a separate credits page. */
1159 $wgShowCreditsIfMax = true;
1164 * Set this to false to avoid forcing the first letter of links to capitals.
1165 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1166 * appearing with a capital at the beginning of a sentence will *not* go to the
1167 * same place as links in the middle of a sentence using a lowercase initial.
1169 $wgCapitalLinks = true;
1172 * List of interwiki prefixes for wikis we'll accept as sources for
1173 * Special:Import (for sysops). Since complete page history can be imported,
1174 * these should be 'trusted'.
1176 * If a user has the 'import' permission but not the 'importupload' permission,
1177 * they will only be able to run imports through this transwiki interface.
1179 $wgImportSources = array();
1183 /** Text matching this regular expression will be recognised as spam
1184 * See http://en.wikipedia.org/wiki/Regular_expression */
1185 $wgSpamRegex = false;
1186 /** Similarly if this function returns true */
1187 $wgFilterCallback = false;
1189 /** Go button goes straight to the edit screen if the article doesn't exist. */
1190 $wgGoToEdit = false;
1192 /** Allow limited user-specified HTML in wiki pages?
1193 * It will be run through a whitelist for security. Set this to false if you
1194 * want wiki pages to consist only of wiki markup. Note that replacements do not
1195 * yet exist for all HTML constructs.*/
1198 /** Allow raw, unchecked HTML in <html>...</html> sections.
1199 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1200 * TO RESTRICT EDITING to only those that you trust
1205 * $wgUseTidy: use tidy to make sure HTML output is sane.
1206 * This should only be enabled if $wgUserHtml is true.
1207 * tidy is a free tool that fixes broken HTML.
1208 * See http://www.w3.org/People/Raggett/tidy/
1209 * $wgTidyBin should be set to the path of the binary and
1210 * $wgTidyConf to the path of the configuration file.
1211 * $wgTidyOpts can include any number of parameters.
1213 * $wgTidyInternal controls the use of the PECL extension to use an in-
1214 * process tidy library instead of spawning a separate program.
1215 * Normally you shouldn't need to override the setting except for
1216 * debugging. To install, use 'pear install tidy' and add a line
1217 * 'extension=tidy.so' to php.ini.
1220 $wgTidyBin = 'tidy';
1221 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1223 $wgTidyInternal = function_exists( 'tidy_load_config' );
1225 /** See list of skins and their symbolic names in languages/Language.php */
1226 $wgDefaultSkin = 'monobook';
1229 * Settings added to this array will override the language globals for the user
1230 * preferences used by anonymous visitors and newly created accounts. (See names
1231 * and sample values in languages/Language.php)
1232 * For instance, to disable section editing links:
1233 * $wgDefaultUserOptions ['editsection'] = 0;
1236 $wgDefaultUserOptions = array();
1238 /** Whether or not to allow and use real name fields. Defaults to true. */
1239 $wgAllowRealName = true;
1241 /** Use XML parser? */
1242 $wgUseXMLparser = false ;
1245 $wgSkinExtensionFunctions = array();
1246 $wgExtensionFunctions = array();
1248 * An array of extension types and inside that their names, versions, authors
1249 * and urls, note that the version and url key can be omitted.
1252 * $wgExtensionCredits[$type][] = array(
1253 * 'name' => 'Example extension',
1255 * 'author' => 'Foo Barstein',
1256 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1260 * Where $type is 'specialpage', 'parserhook', or 'other'.
1262 $wgExtensionCredits = array();
1265 * Allow user Javascript page?
1266 * This enables a lot of neat customizations, but may
1267 * increase security risk to users and server load.
1269 $wgAllowUserJs = false;
1272 * Allow user Cascading Style Sheets (CSS)?
1273 * This enables a lot of neat customizations, but may
1274 * increase security risk to users and server load.
1276 $wgAllowUserCss = false;
1278 /** Use the site's Javascript page? */
1279 $wgUseSiteJs = true;
1281 /** Use the site's Cascading Style Sheets (CSS)? */
1282 $wgUseSiteCss = true;
1284 /** Filter for Special:Randompage. Part of a WHERE clause */
1285 $wgExtraRandompageSQL = false;
1287 /** Allow the "info" action, very inefficient at the moment */
1288 $wgAllowPageInfo = false;
1290 /** Maximum indent level of toc. */
1291 $wgMaxTocLevel = 999;
1293 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1294 $wgUseExternalDiffEngine = false;
1296 /** Use RC Patrolling to check for vandalism */
1297 $wgUseRCPatrol = true;
1299 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1300 * eg Recentchanges, Newpages. */
1303 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1304 * A cached version will continue to be served out even if changes
1305 * are made, until this many seconds runs out since the last render. */
1306 $wgFeedCacheTimeout = 60;
1308 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1309 * pages larger than this size. */
1310 $wgFeedDiffCutoff = 32768;
1314 * Additional namespaces. If the namespaces defined in Language.php and
1315 * Namespace.php are insufficient, you can create new ones here, for example,
1316 * to import Help files in other languages.
1317 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1318 * no longer be accessible. If you rename it, then you can access them through
1319 * the new namespace name.
1321 * Custom namespaces should start at 100 to avoid conflicting with standard
1322 * namespaces, and should always follow the even/odd main/talk pattern.
1324 #$wgExtraNamespaces =
1325 # array(100 => "Hilfe",
1326 # 101 => "Hilfe_Diskussion",
1328 # 103 => "Discussion_Aide"
1330 $wgExtraNamespaces = NULL;
1333 * Limit images on image description pages to a user-selectable limit. In order
1334 * to reduce disk usage, limits can only be selected from a list. This is the
1335 * list of settings the user can choose from:
1337 $wgImageLimits = array (
1343 array(10000,10000) );
1346 * Adjust thumbnails on image pages according to a user setting. In order to
1347 * reduce disk usage, the values can only be selected from a list. This is the
1348 * list of settings the user can choose from:
1350 $wgThumbLimits = array(
1360 * On category pages, show thumbnail gallery for images belonging to that
1361 * category instead of listing them as articles.
1363 $wgCategoryMagicGallery = true;
1366 * Browser Blacklist for unicode non compliant browsers
1367 * Contains a list of regexps : "/regexp/" matching problematic browsers
1369 $wgBrowserBlackList = array(
1370 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1372 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1375 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1376 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1377 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1380 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1381 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1383 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1387 * Fake out the timezone that the server thinks it's in. This will be used for
1388 * date display and not for what's stored in the DB. Leave to null to retain
1389 * your server's OS-based timezone value. This is the same as the timezone.
1391 * This variable is currently used ONLY for signature formatting, not for
1394 # $wgLocaltimezone = 'GMT';
1395 # $wgLocaltimezone = 'PST8PDT';
1396 # $wgLocaltimezone = 'Europe/Sweden';
1397 # $wgLocaltimezone = 'CET';
1398 $wgLocaltimezone = null;
1401 * Set an offset from UTC in hours to use for the default timezone setting
1402 * for anonymous users and new user accounts.
1404 * This setting is used for most date/time displays in the software, and is
1405 * overrideable in user preferences. It is *not* used for signature timestamps.
1407 * You can set it to match the configured server timezone like this:
1408 * $wgLocalTZoffset = date("Z") / 3600;
1410 * If your server is not configured for the timezone you want, you can set
1411 * this in conjunction with the signature timezone and override the TZ
1412 * environment variable like so:
1413 * $wgLocaltimezone="Europe/Berlin";
1414 * putenv("TZ=$wgLocaltimezone");
1415 * $wgLocalTZoffset = date("Z") / 3600;
1417 * Leave at NULL to show times in universal time (UTC/GMT).
1419 $wgLocalTZoffset = null;
1423 * When translating messages with wfMsg(), it is not always clear what should be
1424 * considered UI messages and what shoud be content messages.
1426 * For example, for regular wikipedia site like en, there should be only one
1427 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1428 * it as content of the site and call wfMsgForContent(), while for rendering the
1429 * text of the link, we call wfMsg(). The code in default behaves this way.
1430 * However, sites like common do offer different versions of 'mainpage' and the
1431 * like for different languages. This array provides a way to override the
1432 * default behavior. For example, to allow language specific mainpage and
1433 * community portal, set
1435 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1437 $wgForceUIMsgAsContentMsg = array();
1441 * Authentication plugin.
1446 * Global list of hooks.
1447 * Add a hook by doing:
1448 * $wgHooks['event_name'][] = $function;
1450 * $wgHooks['event_name'][] = array($function, $data);
1452 * $wgHooks['event_name'][] = array($object, 'method');
1457 * Experimental preview feature to fetch rendered text
1458 * over an XMLHttpRequest from JavaScript instead of
1459 * forcing a submit and reload of the whole page.
1460 * Leave disabled unless you're testing it.
1462 $wgLivePreview = false;
1465 * Disable the internal MySQL-based search, to allow it to be
1466 * implemented by an extension instead.
1468 $wgDisableInternalSearch = false;
1471 * Set this to a URL to forward search requests to some external location.
1472 * If the URL includes '$1', this will be replaced with the URL-encoded
1475 * For example, to forward to Google you'd have something like:
1476 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1477 * '&domains=http://example.com' .
1478 * '&sitesearch=http://example.com' .
1479 * '&ie=utf-8&oe=utf-8';
1481 $wgSearchForwardUrl = null;
1484 * If true, external URL links in wiki text will be given the
1485 * rel="nofollow" attribute as a hint to search engines that
1486 * they should not be followed for ranking purposes as they
1487 * are user-supplied and thus subject to spamming.
1489 $wgNoFollowLinks = true;
1492 * Specifies the minimal length of a user password. If set to
1493 * 0, empty passwords are allowed.
1495 $wgMinimalPasswordLength = 0;
1498 * Activate external editor interface for files and pages
1499 * See http://meta.wikimedia.org/wiki/Help:External_editors
1501 $wgUseExternalEditor = true;
1503 /** Whether or not to sort special pages in Special:Specialpages */
1505 $wgSortSpecialPages = true;
1508 * Specify the name of a skin that should not be presented in the
1509 * list of available skins.
1510 * Use for blacklisting a skin which you do not want to remove
1511 * from the .../skins/ directory
1514 $wgSkipSkins = array(); # More of the same
1517 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1519 $wgDisabledActions = array();
1522 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1524 $wgDisableHardRedirects = false;
1527 * Use http.dnsbl.sorbs.net to check for open proxies
1529 $wgEnableSorbs = false;
1532 * Use opm.blitzed.org to check for open proxies.
1533 * Not yet actually used.
1535 $wgEnableOpm = false;
1538 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1541 $wgProxyWhitelist = array();
1544 * Simple rate limiter options to brake edit floods.
1545 * Maximum number actions allowed in the given number of seconds;
1546 * after that the violating client receives HTTP 500 error pages
1547 * until the period elapses.
1549 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
1551 * This option set is experimental and likely to change.
1552 * Requires memcached.
1554 $wgRateLimits = array(
1556 'anon' => null, // for any and all anonymous edits (aggregate)
1557 'user' => null, // for each logged-in user
1558 'newbie' => null, // for each recent account; overrides 'user'
1559 'ip' => null, // for each anon and recent account
1560 'subnet' => null, // ... with final octet removed
1571 * Set to a filename to log rate limiter hits.
1573 $wgRateLimitLog = null;
1576 * On Special:Unusedimages, consider images "used", if they are put
1577 * into a category. Default (false) is not to count those as used.
1579 $wgCountCategorizedImagesAsUsed = false;
1582 * External stores allow including content
1583 * from non database sources following URL links
1585 * Short names of ExternalStore classes may be specified in an array here:
1586 * $wgExternalStores = array("http","file","custom")...
1588 * CAUTION: Access to database might lead to code execution
1590 $wgExternalStores = false;
1593 * An array of external mysql servers, e.g.
1594 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1596 $wgExternalServers = array();
1599 * list of trusted media-types and mime types.
1600 * Use the MEDIATYPE_xxx constants to represent media types.
1601 * This list is used by Image::isSafeFile
1603 * Types not listed here will have a warning about unsafe content
1604 * displayed on the images description page. It would also be possible
1605 * to use this for further restrictions, like disabling direct
1606 * [[media:...]] links for non-trusted formats.
1608 $wgTrustedMediaFormats= array(
1609 MEDIATYPE_BITMAP
, //all bitmap formats
1610 MEDIATYPE_AUDIO
, //all audio formats
1611 MEDIATYPE_VIDEO
, //all plain video formats
1612 "image/svg", //svg (only needed if inline rendering of svg is not supported)
1613 "application/pdf", //PDF files
1614 #"application/x-shockwafe-flash", //flash/shockwave movie
1618 * Allow special page inclusions such as {{Special:Allpages}}
1620 $wgAllowSpecialInclusion = true;
1623 * Timeout for HTTP requests done via CURL
1628 * Proxy to use for CURL requests.
1630 $wgHTTPProxy = false;
1633 * Enable interwiki transcluding. Only when iw_trans=1.
1635 $wgEnableScaryTranscluding = false;
1638 * Support blog-style "trackbacks" for articles. See
1639 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
1641 $wgUseTrackbacks = false;
1644 * Enable filtering of robots in Special:Watchlist
1647 $wgFilterRobotsWL = false;