7 * To customize your installation, edit "LocalSettings.php". If you make
8 * changes here, they will be lost on next upgrade of MediaWiki!
10 * Note that since all these string interpolations are expanded
11 * before LocalSettings is included, if you localize something
12 * like $wgScriptPath, you must also localize everything that
15 * Documentation is in the source and on:
16 * http://www.mediawiki.org/wiki/Help:Configuration_settings
21 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
22 if( !defined( 'MEDIAWIKI' ) ) {
23 echo "This file is part of MediaWiki and is not a valid entry point\n";
28 * Create a site configuration object
29 * Not used for much in a default install
31 require_once( 'includes/SiteConfiguration.php' );
32 $wgConf = new SiteConfiguration
;
34 /** MediaWiki version number */
35 $wgVersion = '1.8alpha';
37 /** Name of the site. It must be changed in LocalSettings.php */
38 $wgSitename = 'MediaWiki';
41 * Name of the project namespace. If left set to false, $wgSitename will be
44 $wgMetaNamespace = false;
47 * Name of the project talk namespace. If left set to false, a name derived
48 * from the name of the project namespace will be used.
50 $wgMetaNamespaceTalk = false;
53 /** URL of the server. It will be automatically built including https mode */
56 if( isset( $_SERVER['SERVER_NAME'] ) ) {
57 $wgServerName = $_SERVER['SERVER_NAME'];
58 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
59 $wgServerName = $_SERVER['HOSTNAME'];
60 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
61 $wgServerName = $_SERVER['HTTP_HOST'];
62 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
63 $wgServerName = $_SERVER['SERVER_ADDR'];
65 $wgServerName = 'localhost';
68 # check if server use https:
69 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
71 $wgServer = $wgProto.'://' . $wgServerName;
72 # If the port is a non-standard one, add it to the URL
73 if( isset( $_SERVER['SERVER_PORT'] )
74 && !strpos( $wgServerName, ':' )
75 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
76 ||
( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
78 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
83 * The path we should point to.
84 * It might be a virtual path in case with use apache mod_rewrite for example
86 $wgScriptPath = '/wiki';
89 * Whether to support URLs like index.php/Page_title
90 * @global bool $wgUsePathInfo
92 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
96 * Script users will request to get articles
97 * ATTN: Old installations used wiki.phtml and redirect.phtml -
98 * make sure that LocalSettings.php is correctly set!
102 * @global string $wgScript
104 $wgScript = "{$wgScriptPath}/index.php";
106 * @global string $wgRedirectScript
108 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
116 * style path as seen by users
117 * @global string $wgStylePath
119 $wgStylePath = "{$wgScriptPath}/skins";
121 * filesystem stylesheets directory
122 * @global string $wgStyleDirectory
124 $wgStyleDirectory = "{$IP}/skins";
125 $wgStyleSheetPath = &$wgStylePath;
126 $wgArticlePath = "{$wgScript}?title=$1";
127 $wgUploadPath = "{$wgScriptPath}/images";
128 $wgUploadDirectory = "{$IP}/images";
129 $wgHashedUploadDirectory = true;
130 $wgLogo = "{$wgUploadPath}/wiki.png";
131 $wgFavicon = '/favicon.ico';
132 $wgMathPath = "{$wgUploadPath}/math";
133 $wgMathDirectory = "{$wgUploadDirectory}/math";
134 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
135 $wgUploadBaseUrl = "";
140 * By default deleted files are simply discarded; to save them and
141 * make it possible to undelete images, create a directory which
142 * is writable to the web server but is not exposed to the internet.
144 * Set $wgSaveDeletedFiles to true and set up the save path in
145 * $wgFileStore['deleted']['directory'].
147 $wgSaveDeletedFiles = false;
150 * New file storage paths; currently used only for deleted files.
153 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
156 $wgFileStore = array();
157 $wgFileStore['deleted']['directory'] = null; // Don't forget to set this.
158 $wgFileStore['deleted']['url'] = null; // Private
159 $wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split
162 * Allowed title characters -- regex character class
163 * Don't change this unless you know what you're doing
165 * Problematic punctuation:
166 * []{}|# Are needed for link syntax, never enable these
167 * % Enabled by default, minor problems with path to query rewrite rules, see below
168 * + Doesn't work with path to query rewrite rules, corrupted by apache
169 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
171 * All three of these punctuation problems can be avoided by using an alias, instead of a
172 * rewrite rule of either variety.
174 * The problem with % is that when using a path to query rewrite rule, URLs are
175 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
176 * %253F, for example, becomes "?". Our code does not double-escape to compensate
177 * for this, indeed double escaping would break if the double-escaped title was
178 * passed in the query string rather than the path. This is a minor security issue
179 * because articles can be created such that they are hard to view or edit.
181 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
182 * this breaks interlanguage links
184 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF";
188 * The external URL protocols
190 $wgUrlProtocols = array(
196 'telnet://', // Well if we're going to support the above.. -ævar
197 'nntp://', // @bug 3808 RFC 1738
203 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
204 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
205 * @global string $wgAntivirus
209 /** Configuration for different virus scanners. This an associative array of associative arrays:
210 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
211 * valid values for $wgAntivirus are the keys defined in this array.
213 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
215 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
216 * file to scan. If not present, the filename will be appended to the command. Note that this must be
217 * overwritten if the scanner is not in the system path; in that case, plase set
218 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
220 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
221 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
222 * the file if $wgAntivirusRequired is not set.
223 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
224 * which is probably imune to virusses. This causes the file to pass.
225 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
226 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
227 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
229 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
230 * output. The relevant part should be matched as group one (\1).
231 * If not defined or the pattern does not match, the full message is shown to the user.
233 * @global array $wgAntivirusSetup
235 $wgAntivirusSetup= array(
239 'command' => "clamscan --no-summary ",
242 "0"=> AV_NO_VIRUS
, #no virus
243 "1"=> AV_VIRUS_FOUND
, #virus found
244 "52"=> AV_SCAN_ABORTED
, #unsupported file format (probably imune)
245 "*"=> AV_SCAN_FAILED
, #else scan failed
248 'messagepattern'=> '/.*?:(.*)/sim',
253 'command' => "f-prot ",
256 "0"=> AV_NO_VIRUS
, #no virus
257 "3"=> AV_VIRUS_FOUND
, #virus found
258 "6"=> AV_VIRUS_FOUND
, #virus found
259 "*"=> AV_SCAN_FAILED
, #else scan failed
262 'messagepattern'=> '/.*?Infection:(.*)$/m',
267 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
268 * @global boolean $wgAntivirusRequired
270 $wgAntivirusRequired= true;
272 /** Determines if the mime type of uploaded files should be checked
273 * @global boolean $wgVerifyMimeType
275 $wgVerifyMimeType= true;
277 /** Sets the mime type definition file to use by MimeMagic.php.
278 * @global string $wgMimeTypeFile
280 #$wgMimeTypeFile= "/etc/mime.types";
281 $wgMimeTypeFile= "includes/mime.types";
282 #$wgMimeTypeFile= NULL; #use built-in defaults only.
284 /** Sets the mime type info file to use by MimeMagic.php.
285 * @global string $wgMimeInfoFile
287 $wgMimeInfoFile= "includes/mime.info";
288 #$wgMimeInfoFile= NULL; #use built-in defaults only.
290 /** Switch for loading the FileInfo extension by PECL at runtime.
291 * This should be used only if fileinfo is installed as a shared object / dynamic libary
292 * @global string $wgLoadFileinfoExtension
294 $wgLoadFileinfoExtension= false;
296 /** Sets an external mime detector program. The command must print only the mime type to standard output.
297 * the name of the file to process will be appended to the command given here.
298 * If not set or NULL, mime_content_type will be used if available.
300 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
301 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
303 /** Switch for trivial mime detection. Used by thumb.php to disable all fance things,
304 * because only a few types of images are needed and file extensions can be trusted.
306 $wgTrivialMimeDetection= false;
309 * To set 'pretty' URL paths for actions other than
310 * plain page views, add to this array. For instance:
311 * 'edit' => "$wgScriptPath/edit/$1"
313 * There must be an appropriate script or rewrite rule
314 * in place to handle these URLs.
316 $wgActionPaths = array();
319 * If you operate multiple wikis, you can define a shared upload path here.
320 * Uploads to this wiki will NOT be put there - they will be put into
321 * $wgUploadDirectory.
322 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
323 * no file of the given name is found in the local repository (for [[Image:..]],
324 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
327 $wgUseSharedUploads = false;
328 /** Full path on the web server where shared uploads can be found */
329 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
330 /** Fetch commons image description pages and display them on the local wiki? */
331 $wgFetchCommonsDescriptions = false;
332 /** Path on the file system where shared uploads can be found. */
333 $wgSharedUploadDirectory = "/var/www/wiki3/images";
334 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
335 $wgSharedUploadDBname = false;
336 /** Optional table prefix used in database. */
337 $wgSharedUploadDBprefix = '';
338 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
339 $wgCacheSharedUploads = true;
340 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
341 $wgAllowCopyUploads = false;
342 /** Max size for uploads, in bytes */
343 $wgMaxUploadSize = 1024*1024*100; # 100MB
346 * Point the upload navigation link to an external URL
347 * Useful if you want to use a shared repository by default
348 * without disabling local uploads (use $wgEnableUploads = false for that)
349 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
351 $wgUploadNavigationUrl = false;
354 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
355 * generating them on render and outputting a static URL. This is necessary if some of your
356 * apache servers don't have read/write access to the thumbnail path.
359 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
361 $wgThumbnailScriptPath = false;
362 $wgSharedThumbnailScriptPath = false;
365 * Set the following to false especially if you have a set of files that need to
366 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
369 $wgHashedSharedUploadDirectory = true;
372 * Base URL for a repository wiki. Leave this blank if uploads are just stored
373 * in a shared directory and not meant to be accessible through a separate wiki.
374 * Otherwise the image description pages on the local wiki will link to the
375 * image description page on this wiki.
377 * Please specify the namespace, as in the example below.
379 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
387 * Site admin email address
388 * Default to wikiadmin@SERVER_NAME
389 * @global string $wgEmergencyContact
391 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
394 * Password reminder email address
395 * The address we should use as sender when a user is requesting his password
396 * Default to apache@SERVER_NAME
397 * @global string $wgPasswordSender
399 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
402 * dummy address which should be accepted during mail send action
403 * It might be necessay to adapt the address or to set it equal
404 * to the $wgEmergencyContact address
406 #$wgNoReplyAddress = $wgEmergencyContact;
407 $wgNoReplyAddress = 'reply@not.possible';
410 * Set to true to enable the e-mail basic features:
411 * Password reminders, etc. If sending e-mail on your
412 * server doesn't work, you might want to disable this.
413 * @global bool $wgEnableEmail
415 $wgEnableEmail = true;
418 * Set to true to enable user-to-user e-mail.
419 * This can potentially be abused, as it's hard to track.
420 * @global bool $wgEnableUserEmail
422 $wgEnableUserEmail = true;
426 * For using a direct (authenticated) SMTP server connection.
427 * Default to false or fill an array :
429 * "host" => 'SMTP domain',
430 * "IDHost" => 'domain for MessageID',
432 * "auth" => true/false,
433 * "username" => user,
434 * "password" => password
437 * @global mixed $wgSMTP
445 /** database host name or ip address */
446 $wgDBserver = 'localhost';
447 /** database port number */
449 /** name of the database */
450 $wgDBname = 'wikidb';
452 $wgDBconnection = '';
453 /** Database username */
454 $wgDBuser = 'wikiuser';
456 * "mysql" for working code and "PostgreSQL" for development/broken code
460 * Leave as null to select the default search engine for the
461 * selected database type (eg SearchMySQL4), or set to a class
462 * name to override to a custom search engine.
464 $wgSearchType = null;
465 /** Table name prefix */
469 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
470 $wgCheckDBSchema = true;
474 * Shared database for multiple wikis. Presently used for storing a user table
475 * for single sign-on. The server for this database must be the same as for the
481 # Database load balancer
482 # This is a two-dimensional array, an array of server info structures
485 # dbname: Default database name
487 # password: DB password
488 # type: "mysql" or "pgsql"
489 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
490 # groupLoads: array of load ratios, the key is the query group name. A query may belong
491 # to several groups, the most specific group defined here is used.
494 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
495 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
496 # DBO_TRX -- wrap entire request in a transaction
497 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
498 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
500 # max lag: (optional) Maximum replication lag before a slave will taken out of rotation
501 # max threads: (optional) Maximum number of running threads
503 # These and any other user-defined properties will be assigned to the mLBInfo member
504 # variable of the Database object.
506 # Leave at false to use the single-server variables above
507 $wgDBservers = false;
509 /** How long to wait for a slave to catch up to the master */
510 $wgMasterWaitTimeout = 10;
512 /** File to log database errors to */
513 $wgDBerrorLog = false;
515 /** When to give an error message */
516 $wgDBClusterTimeout = 10;
520 * MySQL 3.x : used to discard words that MySQL will not return any results for
521 * shorter values configure mysql directly.
522 * MySQL 4.x : ignore it and configure mySQL
523 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
526 /** Set to true if using InnoDB tables */
527 $wgDBtransactions = false;
528 /** Set to true for compatibility with extensions that might be checking.
529 * MySQL 3.23.x is no longer supported. */
533 * Set to true to engage MySQL 4.1/5.0 charset-related features;
534 * for now will just cause sending of 'SET NAMES=utf8' on connect.
536 * WARNING: THIS IS EXPERIMENTAL!
538 * May break if you're not using the table defs from mysql5/tables.sql.
539 * May break if you're upgrading an existing wiki if set differently.
540 * Broken symptoms likely to include incorrect behavior with page titles,
541 * usernames, comments etc containing non-ASCII characters.
542 * Might also cause failures on the object cache and other things.
544 * Even correct usage may cause failures with Unicode supplementary
545 * characters (those not in the Basic Multilingual Plane) unless MySQL
546 * has enhanced their Unicode support.
551 * Other wikis on this site, can be administered from a single developer
553 * Array numeric key => database name
555 $wgLocalDatabases = array();
558 * Object cache settings
559 * See Defines.php for types
561 $wgMainCacheType = CACHE_NONE
;
562 $wgMessageCacheType = CACHE_ANYTHING
;
563 $wgParserCacheType = CACHE_ANYTHING
;
565 $wgParserCacheExpireTime = 86400;
567 $wgSessionsInMemcached = false;
568 $wgLinkCacheMemcached = false; # Not fully tested
571 * Memcached-specific settings
572 * See docs/memcached.txt
574 $wgUseMemCached = false;
575 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
576 $wgMemCachedServers = array( '127.0.0.1:11000' );
577 $wgMemCachedDebug = false;
578 $wgMemCachedPersistent = false;
581 * Directory for local copy of message cache, for use in addition to memcached
583 $wgLocalMessageCache = false;
585 * Defines format of local cache
586 * true - Serialized object
587 * false - PHP source file (Warning - security risk)
589 $wgLocalMessageCacheSerialized = true;
592 * Directory for compiled constant message array databases
593 * WARNING: turning anything on will just break things, aaaaaah!!!!
595 $wgCachedMessageArrays = false;
599 /** Site language code, should be one of ./languages/Language(.*).php */
600 $wgLanguageCode = 'en';
603 * Some languages need different word forms, usually for different cases.
604 * Used in Language::convertGrammar().
606 $wgGrammarForms = array();
607 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
609 /** Treat language links as magic connectors, not inline links */
610 $wgInterwikiMagic = true;
612 /** Hide interlanguage links from the sidebar */
613 $wgHideInterlanguageLinks = false;
616 /** We speak UTF-8 all the time now, unless some oddities happen */
617 $wgInputEncoding = 'UTF-8';
618 $wgOutputEncoding = 'UTF-8';
619 $wgEditEncoding = '';
621 # Set this to eg 'ISO-8859-1' to perform character set
622 # conversion when loading old revisions not marked with
623 # "utf-8" flag. Use this when converting wiki to UTF-8
624 # without the burdensome mass conversion of old text data.
626 # NOTE! This DOES NOT touch any fields other than old_text.
627 # Titles, comments, user names, etc still must be converted
628 # en masse in the database before continuing as a UTF-8 wiki.
629 $wgLegacyEncoding = false;
632 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
633 * create stub reference rows in the text table instead of copying
634 * the full text of all current entries from 'cur' to 'text'.
636 * This will speed up the conversion step for large sites, but
637 * requires that the cur table be kept around for those revisions
638 * to remain viewable.
640 * maintenance/migrateCurStubs.php can be used to complete the
641 * migration in the background once the wiki is back online.
643 * This option affects the updaters *only*. Any present cur stub
644 * revisions will be readable at runtime regardless of this setting.
646 $wgLegacySchemaConversion = false;
648 $wgMimeType = 'text/html';
649 $wgJsMimeType = 'text/javascript';
650 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
651 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
653 /** Enable to allow rewriting dates in page text.
654 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
655 $wgUseDynamicDates = false;
656 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
657 * the interface is set to English
659 $wgAmericanDates = false;
661 * For Hindi and Arabic use local numerals instead of Western style (0-9)
662 * numerals in interface.
664 $wgTranslateNumerals = true;
667 # Translation using MediaWiki: namespace
668 # This will increase load times by 25-60% unless memcached is installed
669 # Interface messages will be loaded from the database.
670 $wgUseDatabaseMessages = true;
671 $wgMsgCacheExpiry = 86400;
673 # Whether to enable language variant conversion.
674 $wgDisableLangConversion = false;
677 * Show a bar of language selection links in the user login and user
678 * registration forms; edit the "loginlanguagelinks" message to
681 $wgLoginLanguageSelector = false;
683 # Whether to use zhdaemon to perform Chinese text processing
684 # zhdaemon is under developement, so normally you don't want to
685 # use it unless for testing
686 $wgUseZhdaemon = false;
687 $wgZhdaemonHost="localhost";
688 $wgZhdaemonPort=2004;
690 /** Normally you can ignore this and it will be something
691 like $wgMetaNamespace . "_talk". In some languages, you
692 may want to set this manually for grammatical reasons.
693 It is currently only respected by those languages
694 where it might be relevant and where no automatic
695 grammar converter exists.
697 $wgMetaNamespaceTalk = false;
699 # Miscellaneous configuration settings
702 $wgLocalInterwiki = 'w';
703 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
705 /** Interwiki caching settings.
706 $wgInterwikiCache specifies path to constant database file
707 This cdb database is generated by dumpInterwiki from maintenance
708 and has such key formats:
709 dbname:key - a simple key (e.g. enwiki:meta)
710 _sitename:key - site-scope key (e.g. wiktionary:meta)
711 __global:key - global-scope key (e.g. __global:meta)
712 __sites:dbname - site mapping (e.g. __sites:enwiki)
713 Sites mapping just specifies site name, other keys provide
714 "local url" data layout.
715 $wgInterwikiScopes specify number of domains to check for messages:
716 1 - Just wiki(db)-level
717 2 - wiki and global levels
719 $wgInterwikiFallbackSite - if unable to resolve from cache
721 $wgInterwikiCache = false;
722 $wgInterwikiScopes = 3;
723 $wgInterwikiFallbackSite = 'wiki';
726 * If local interwikis are set up which allow redirects,
727 * set this regexp to restrict URLs which will be displayed
728 * as 'redirected from' links.
730 * It might look something like this:
731 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
733 * Leave at false to avoid displaying any incoming redirect markers.
734 * This does not affect intra-wiki redirects, which don't change
737 $wgRedirectSources = false;
740 $wgShowIPinHeader = true; # For non-logged in users
741 $wgMaxNameChars = 255; # Maximum number of bytes in username
742 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
744 $wgExtraSubtitle = '';
745 $wgSiteSupportPage = ''; # A page where you users can receive donations
747 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
750 * The debug log file should be not be publicly accessible if it is used, as it
751 * may contain private data. */
752 $wgDebugLogFile = '';
757 $wgDebugRedirects = false;
758 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
760 $wgDebugComments = false;
762 $wgLogQueries = false;
765 * Write SQL queries to the debug log
767 $wgDebugDumpSql = false;
770 * Set to an array of log group keys to filenames.
771 * If set, wfDebugLog() output for that group will go to that file instead
772 * of the regular $wgDebugLogFile. Useful for enabling selective logging
775 $wgDebugLogGroups = array();
778 * Whether to show "we're sorry, but there has been a database error" pages.
779 * Displaying errors aids in debugging, but may display information useful
782 $wgShowSQLErrors = false;
785 * If true, some error messages will be colorized when running scripts on the
786 * command line; this can aid picking important things out when debugging.
787 * Ignored when running on Windows or when output is redirected to a file.
789 $wgColorErrors = true;
792 * disable experimental dmoz-like category browsing. Output things like:
793 * Encyclopedia > Music > Style of Music > Jazz
795 $wgUseCategoryBrowser = false;
798 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
799 * to speed up output of the same page viewed by another user with the
802 * This can provide a significant speedup for medium to large pages,
803 * so you probably want to keep it on.
805 $wgEnableParserCache = true;
808 * If on, the sidebar navigation links are cached for users with the
809 * current language set. This can save a touch of load on a busy site
810 * by shaving off extra message lookups.
812 * However it is also fragile: changing the site configuration, or
813 * having a variable $wgArticlePath, can produce broken links that
814 * don't update as expected.
816 $wgEnableSidebarCache = false;
819 * Under which condition should a page in the main namespace be counted
820 * as a valid article? If $wgUseCommaCount is set to true, it will be
821 * counted if it contains at least one comma. If it is set to false
822 * (default), it will only be counted if it contains at least one [[wiki
823 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
825 * Retroactively changing this variable will not affect
826 * the existing count (cf. maintenance/recount.sql).
828 $wgUseCommaCount = false;
833 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
834 * values are easier on the database. A value of 1 causes the counters to be
835 * updated on every hit, any higher value n cause them to update *on average*
836 * every n hits. Should be set to either 1 or something largish, eg 1000, for
837 * maximum efficiency.
839 $wgHitcounterUpdateFreq = 1;
841 # Basic user rights and block settings
842 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
843 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
844 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
845 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
847 # Pages anonymous user may see as an array, e.g.:
848 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
849 # NOTE: This will only work if $wgGroupPermissions['*']['read']
850 # is false -- see below. Otherwise, ALL pages are accessible,
851 # regardless of this setting.
852 # Also note that this will only protect _pages in the wiki_.
853 # Uploaded files will remain readable. Make your upload
854 # directory name unguessable, or use .htaccess to protect it.
855 $wgWhitelistRead = false;
858 * Should editors be required to have a validated e-mail
859 * address before being allowed to edit?
861 $wgEmailConfirmToEdit=false;
864 * Permission keys given to users in each group.
865 * All users are implicitly in the '*' group including anonymous visitors;
866 * logged-in users are all implicitly in the 'user' group. These will be
867 * combined with the permissions of all groups that a given user is listed
868 * in in the user_groups table.
870 * Functionality to make pages inaccessible has not been extensively tested
871 * for security. Use at your own risk!
873 * This replaces wgWhitelistAccount and wgWhitelistEdit
875 $wgGroupPermissions = array();
877 // Implicit group for all visitors
878 $wgGroupPermissions['*' ]['createaccount'] = true;
879 $wgGroupPermissions['*' ]['read'] = true;
880 $wgGroupPermissions['*' ]['edit'] = true;
881 $wgGroupPermissions['*' ]['createpage'] = true;
882 $wgGroupPermissions['*' ]['createtalk'] = true;
884 // Implicit group for all logged-in accounts
885 $wgGroupPermissions['user' ]['move'] = true;
886 $wgGroupPermissions['user' ]['read'] = true;
887 $wgGroupPermissions['user' ]['edit'] = true;
888 $wgGroupPermissions['user' ]['createpage'] = true;
889 $wgGroupPermissions['user' ]['createtalk'] = true;
890 $wgGroupPermissions['user' ]['upload'] = true;
891 $wgGroupPermissions['user' ]['reupload'] = true;
892 $wgGroupPermissions['user' ]['reupload-shared'] = true;
893 $wgGroupPermissions['user' ]['minoredit'] = true;
895 // Implicit group for accounts that pass $wgAutoConfirmAge
896 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
898 // Implicit group for accounts with confirmed email addresses
899 // This has little use when email address confirmation is off
900 $wgGroupPermissions['emailconfirmed']['emailconfirmed'] = true;
902 // Users with bot privilege can have their edits hidden
903 // from various log pages by default
904 $wgGroupPermissions['bot' ]['bot'] = true;
905 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
907 // Most extra permission abilities go to this group
908 $wgGroupPermissions['sysop']['block'] = true;
909 $wgGroupPermissions['sysop']['createaccount'] = true;
910 $wgGroupPermissions['sysop']['delete'] = true;
911 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
912 $wgGroupPermissions['sysop']['editinterface'] = true;
913 $wgGroupPermissions['sysop']['import'] = true;
914 $wgGroupPermissions['sysop']['importupload'] = true;
915 $wgGroupPermissions['sysop']['move'] = true;
916 $wgGroupPermissions['sysop']['patrol'] = true;
917 $wgGroupPermissions['sysop']['protect'] = true;
918 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
919 $wgGroupPermissions['sysop']['rollback'] = true;
920 $wgGroupPermissions['sysop']['trackback'] = true;
921 $wgGroupPermissions['sysop']['upload'] = true;
922 $wgGroupPermissions['sysop']['reupload'] = true;
923 $wgGroupPermissions['sysop']['reupload-shared'] = true;
924 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
925 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
927 // Permission to change users' group assignments
928 $wgGroupPermissions['bureaucrat']['userrights'] = true;
930 // Experimental permissions, not ready for production use
931 //$wgGroupPermissions['sysop']['deleterevision'] = true;
932 //$wgGroupPermissions['bureaucrat']['hiderevision'] = true;
935 * The developer group is deprecated, but can be activated if need be
936 * to use the 'lockdb' and 'unlockdb' special pages. Those require
937 * that a lock file be defined and creatable/removable by the web
940 # $wgGroupPermissions['developer']['siteadmin'] = true;
943 * Set of available actions that can be restricted via Special:Protect
944 * You probably shouldn't change this.
945 * Translated trough restriction-* messages.
947 $wgRestrictionTypes = array( 'edit', 'move' );
950 * Set of permission keys that can be selected via Special:Protect.
951 * 'autoconfirm' allows all registerd users if $wgAutoConfirmAge is 0.
953 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
957 * Number of seconds an account is required to age before
958 * it's given the implicit 'autoconfirm' group membership.
959 * This can be used to limit privileges of new accounts.
961 * Accounts created by earlier versions of the software
962 * may not have a recorded creation date, and will always
963 * be considered to pass the age test.
965 * When left at 0, all registered accounts will pass.
967 $wgAutoConfirmAge = 0;
968 //$wgAutoConfirmAge = 600; // ten minutes
969 //$wgAutoConfirmAge = 3600*24; // one day
973 # Proxy scanner settings
977 * If you enable this, every editor's IP address will be scanned for open HTTP
980 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
981 * ISP and ask for your server to be shut down.
983 * You have been warned.
985 $wgBlockOpenProxies = false;
986 /** Port we want to scan for a proxy */
987 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
988 /** Script used to scan */
989 $wgProxyScriptPath = "$IP/proxy_check.php";
991 $wgProxyMemcExpiry = 86400;
992 /** This should always be customised in LocalSettings.php */
993 $wgSecretKey = false;
994 /** big list of banned IP addresses, in the keys not the values */
995 $wgProxyList = array();
999 /** Number of accounts each IP address may create, 0 to disable.
1000 * Requires memcached */
1001 $wgAccountCreationThrottle = 0;
1003 # Client-side caching:
1005 /** Allow client-side caching of pages */
1006 $wgCachePages = true;
1009 * Set this to current time to invalidate all prior cached pages. Affects both
1010 * client- and server-side caching.
1011 * You can get the current date on your server by using the command:
1012 * date +%Y%m%d%H%M%S
1014 $wgCacheEpoch = '20030516000000';
1017 # Server-side caching:
1020 * This will cache static pages for non-logged-in users to reduce
1021 * database traffic on public sites.
1022 * Must set $wgShowIPinHeader = false
1024 $wgUseFileCache = false;
1025 /** Directory where the cached page will be saved */
1026 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
1029 * When using the file cache, we can store the cached HTML gzipped to save disk
1030 * space. Pages will then also be served compressed to clients that support it.
1031 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1032 * the default LocalSettings.php! If you enable this, remove that setting first.
1034 * Requires zlib support enabled in PHP.
1038 # Email notification settings
1041 /** For email notification on page changes */
1042 $wgPasswordSender = $wgEmergencyContact;
1044 # true: from page editor if s/he opted-in
1045 # false: Enotif mails appear to come from $wgEmergencyContact
1046 $wgEnotifFromEditor = false;
1048 // TODO move UPO to preferences probably ?
1049 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1050 # If set to false, the corresponding input form on the user preference page is suppressed
1051 # It call this to be a "user-preferences-option (UPO)"
1052 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1053 $wgEnotifWatchlist = false; # UPO
1054 $wgEnotifUserTalk = false; # UPO
1055 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1056 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1057 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1060 /** Show watching users in recent changes, watchlist and page history views */
1061 $wgRCShowWatchingUsers = false; # UPO
1062 /** Show watching users in Page views */
1063 $wgPageShowWatchingUsers = false;
1065 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1066 * view for watched pages with new changes */
1067 $wgShowUpdatedMarker = true;
1069 $wgCookieExpiration = 2592000;
1071 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1072 * problems when the user requests two pages within a short period of time. This
1073 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1076 $wgClockSkewFudge = 5;
1078 # Squid-related settings
1081 /** Enable/disable Squid */
1082 $wgUseSquid = false;
1084 /** If you run Squid3 with ESI support, enable this (default:false): */
1087 /** Internal server name as known to Squid, if different */
1088 # $wgInternalServer = 'http://yourinternal.tld:8000';
1089 $wgInternalServer = $wgServer;
1092 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1093 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1094 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1097 $wgSquidMaxage = 18000;
1100 * A list of proxy servers (ips if possible) to purge on changes don't specify
1101 * ports here (80 is default)
1103 # $wgSquidServers = array('127.0.0.1');
1104 $wgSquidServers = array();
1105 $wgSquidServersNoPurge = array();
1107 /** Maximum number of titles to purge in any one client operation */
1108 $wgMaxSquidPurgeTitles = 400;
1110 /** HTCP multicast purging */
1112 $wgHTCPMulticastTTL = 1;
1113 # $wgHTCPMulticastAddress = "224.0.0.85";
1118 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1119 * or ".any.subdomain.net"
1121 $wgCookieDomain = '';
1122 $wgCookiePath = '/';
1123 $wgCookieSecure = ($wgProto == 'https');
1124 $wgDisableCookieCheck = false;
1126 /** Override to customise the session name */
1127 $wgSessionName = false;
1129 /** Whether to allow inline image pointing to other websites */
1130 $wgAllowExternalImages = false;
1132 /** If the above is false, you can specify an exception here. Image URLs
1133 * that start with this string are then rendered, while all others are not.
1134 * You can use this to set up a trusted, simple repository of images.
1137 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1139 $wgAllowExternalImagesFrom = '';
1141 /** Disable database-intensive features */
1142 $wgMiserMode = false;
1143 /** Disable all query pages if miser mode is on, not just some */
1144 $wgDisableQueryPages = false;
1145 /** Generate a watchlist once every hour or so */
1146 $wgUseWatchlistCache = false;
1147 /** The hour or so mentioned above */
1148 $wgWLCacheTimeout = 3600;
1149 /** Number of links to a page required before it is deemed "wanted" */
1150 $wgWantedPagesThreshold = 1;
1151 /** Enable slow parser functions */
1152 $wgAllowSlowParserFunctions = false;
1155 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1156 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1157 * (ImageMagick) installed and available in the PATH.
1158 * Please see math/README for more information.
1161 /** Location of the texvc binary */
1162 $wgTexvc = './math/texvc';
1165 # Profiling / debugging
1167 # You have to create a 'profiling' table in your database before using
1168 # profiling see maintenance/archives/patch-profiling.sql .
1170 # To enable profiling, edit StartProfiler.php
1172 /** Only record profiling info for pages that took longer than this */
1173 $wgProfileLimit = 0.0;
1174 /** Don't put non-profiling info into log file */
1175 $wgProfileOnly = false;
1176 /** Log sums from profiling into "profiling" table in db. */
1177 $wgProfileToDatabase = false;
1178 /** If true, print a raw call tree instead of per-function report */
1179 $wgProfileCallTree = false;
1180 /** Should application server host be put into profiling table */
1181 $wgProfilePerHost = false;
1183 /** Settings for UDP profiler */
1184 $wgUDPProfilerHost = '127.0.0.1';
1185 $wgUDPProfilerPort = '3811';
1187 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1188 $wgDebugProfiling = false;
1189 /** Output debug message on every wfProfileIn/wfProfileOut */
1190 $wgDebugFunctionEntry = 0;
1191 /** Lots of debugging output from SquidUpdate.php */
1192 $wgDebugSquid = false;
1194 $wgDisableCounters = false;
1195 $wgDisableTextSearch = false;
1196 $wgDisableSearchContext = false;
1198 * If you've disabled search semi-permanently, this also disables updates to the
1199 * table. If you ever re-enable, be sure to rebuild the search table.
1201 $wgDisableSearchUpdate = false;
1202 /** Uploads have to be specially set up to be secure */
1203 $wgEnableUploads = false;
1205 * Show EXIF data, on by default if available.
1206 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1208 $wgShowEXIF = function_exists( 'exif_read_data' );
1211 * Set to true to enable the upload _link_ while local uploads are disabled.
1212 * Assumes that the special page link will be bounced to another server where
1215 $wgRemoteUploads = false;
1216 $wgDisableAnonTalk = false;
1218 * Do DELETE/INSERT for link updates instead of incremental
1220 $wgUseDumbLinkUpdate = false;
1223 * Anti-lock flags - bitfield
1225 * Preload links during link update for save
1226 * ALF_PRELOAD_EXISTENCE
1227 * Preload cur_id during replaceLinkHolders
1229 * Don't use locking reads when updating the link table. This is
1230 * necessary for wikis with a high edit rate for performance
1231 * reasons, but may cause link table inconsistency
1233 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1236 $wgAntiLockFlags = 0;
1239 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1240 * fall back to the old behaviour (no merging).
1242 $wgDiff3 = '/usr/bin/diff3';
1245 * We can also compress text in the old revisions table. If this is set on, old
1246 * revisions will be compressed on page save if zlib support is available. Any
1247 * compressed revisions will be decompressed on load regardless of this setting
1248 * *but will not be readable at all* if zlib support is not available.
1250 $wgCompressRevisions = false;
1253 * This is the list of preferred extensions for uploading files. Uploading files
1254 * with extensions not in this list will trigger a warning.
1256 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1258 /** Files with these extensions will never be allowed as uploads. */
1259 $wgFileBlacklist = array(
1260 # HTML may contain cookie-stealing JavaScript and web bugs
1261 'html', 'htm', 'js', 'jsb',
1262 # PHP scripts may execute arbitrary code on the server
1263 'php', 'phtml', 'php3', 'php4', 'phps',
1264 # Other types that may be interpreted by some servers
1265 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1266 # May contain harmful executables for Windows victims
1267 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1269 /** Files with these mime types will never be allowed as uploads
1270 * if $wgVerifyMimeType is enabled.
1272 $wgMimeTypeBlacklist= array(
1273 # HTML may contain cookie-stealing JavaScript and web bugs
1274 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1275 # PHP scripts may execute arbitrary code on the server
1276 'application/x-php', 'text/x-php',
1277 # Other types that may be interpreted by some servers
1278 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1279 # Windows metafile, client-side vulnerability on some systems
1280 'application/x-msmetafile'
1283 /** This is a flag to determine whether or not to check file extensions on upload. */
1284 $wgCheckFileExtensions = true;
1287 * If this is turned off, users may override the warning for files not covered
1288 * by $wgFileExtensions.
1290 $wgStrictFileExtensions = true;
1292 /** Warn if uploaded files are larger than this (in bytes)*/
1293 $wgUploadSizeWarning = 150 * 1024;
1295 /** For compatibility with old installations set to false */
1296 $wgPasswordSalt = true;
1298 /** Which namespaces should support subpages?
1299 * See Language.php for a list of namespaces.
1301 $wgNamespacesWithSubpages = array(
1304 NS_USER_TALK
=> true,
1305 NS_PROJECT_TALK
=> true,
1306 NS_IMAGE_TALK
=> true,
1307 NS_MEDIAWIKI_TALK
=> true,
1308 NS_TEMPLATE_TALK
=> true,
1309 NS_HELP_TALK
=> true,
1310 NS_CATEGORY_TALK
=> true
1313 $wgNamespacesToBeSearchedDefault = array(
1317 /** If set, a bold ugly notice will show up at the top of every page. */
1325 /** dynamic server side image resizing ("Thumbnails") */
1326 $wgUseImageResize = false;
1329 * Resizing can be done using PHP's internal image libraries or using
1330 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1331 * These support more file formats than PHP, which only supports PNG,
1332 * GIF, JPG, XBM and WBMP.
1334 * Use Image Magick instead of PHP builtin functions.
1336 $wgUseImageMagick = false;
1337 /** The convert command shipped with ImageMagick */
1338 $wgImageMagickConvertCommand = '/usr/bin/convert';
1341 * Use another resizing converter, e.g. GraphicMagick
1342 * %s will be replaced with the source path, %d with the destination
1343 * %w and %h will be replaced with the width and height
1345 * An example is provided for GraphicMagick
1346 * Leave as false to skip this
1348 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1349 $wgCustomConvertCommand = false;
1351 # Scalable Vector Graphics (SVG) may be uploaded as images.
1352 # Since SVG support is not yet standard in browsers, it is
1353 # necessary to rasterize SVGs to PNG as a fallback format.
1355 # An external program is required to perform this conversion:
1356 $wgSVGConverters = array(
1357 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1358 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1359 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1360 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1361 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1363 /** Pick one of the above */
1364 $wgSVGConverter = 'ImageMagick';
1365 /** If not in the executable PATH, specify */
1366 $wgSVGConverterPath = '';
1367 /** Don't scale a SVG larger than this */
1368 $wgSVGMaxSize = 1024;
1370 * Don't thumbnail an image if it will use too much working memory
1371 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1372 * 12.5 million pixels or 3500x3500
1374 $wgMaxImageArea = 1.25e7
;
1376 * If rendered thumbnail files are older than this timestamp, they
1377 * will be rerendered on demand as if the file didn't already exist.
1378 * Update if there is some need to force thumbs and SVG rasterizations
1379 * to rerender, such as fixes to rendering bugs.
1381 $wgThumbnailEpoch = '20030516000000';
1384 * If set, inline scaled images will still produce <img> tags ready for
1385 * output instead of showing an error message.
1387 * This may be useful if errors are transitory, especially if the site
1388 * is configured to automatically render thumbnails on request.
1390 * On the other hand, it may obscure error conditions from debugging.
1391 * Enable the debug log or the 'thumbnail' log group to make sure errors
1392 * are logged to a file for review.
1394 $wgIgnoreImageErrors = false;
1397 * Allow thumbnail rendering on page view. If this is false, a valid
1398 * thumbnail URL is still output, but no file will be created at
1399 * the target location. This may save some time if you have a
1400 * thumb.php or 404 handler set up which is faster than the regular
1403 $wgGenerateThumbnailOnParse = true;
1405 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1406 if( !isset( $wgCommandLineMode ) ) {
1407 $wgCommandLineMode = false;
1412 # Recent changes settings
1415 /** Log IP addresses in the recentchanges table */
1416 $wgPutIPinRC = true;
1419 * Recentchanges items are periodically purged; entries older than this many
1421 * For one week : 7 * 24 * 3600
1423 $wgRCMaxAge = 7 * 24 * 3600;
1426 # Send RC updates via UDP
1427 $wgRC2UDPAddress = false;
1428 $wgRC2UDPPort = false;
1429 $wgRC2UDPPrefix = '';
1432 # Copyright and credits settings
1435 /** RDF metadata toggles */
1436 $wgEnableDublinCoreRdf = false;
1437 $wgEnableCreativeCommonsRdf = false;
1439 /** Override for copyright metadata.
1440 * TODO: these options need documentation
1442 $wgRightsPage = NULL;
1443 $wgRightsUrl = NULL;
1444 $wgRightsText = NULL;
1445 $wgRightsIcon = NULL;
1447 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1448 $wgCopyrightIcon = NULL;
1450 /** Set this to true if you want detailed copyright information forms on Upload. */
1451 $wgUseCopyrightUpload = false;
1453 /** Set this to false if you want to disable checking that detailed copyright
1454 * information values are not empty. */
1455 $wgCheckCopyrightUpload = true;
1458 * Set this to the number of authors that you want to be credited below an
1459 * article text. Set it to zero to hide the attribution block, and a negative
1460 * number (like -1) to show all authors. Note that this will require 2-3 extra
1461 * database hits, which can have a not insignificant impact on performance for
1466 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1467 * Otherwise, link to a separate credits page. */
1468 $wgShowCreditsIfMax = true;
1473 * Set this to false to avoid forcing the first letter of links to capitals.
1474 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1475 * appearing with a capital at the beginning of a sentence will *not* go to the
1476 * same place as links in the middle of a sentence using a lowercase initial.
1478 $wgCapitalLinks = true;
1481 * List of interwiki prefixes for wikis we'll accept as sources for
1482 * Special:Import (for sysops). Since complete page history can be imported,
1483 * these should be 'trusted'.
1485 * If a user has the 'import' permission but not the 'importupload' permission,
1486 * they will only be able to run imports through this transwiki interface.
1488 $wgImportSources = array();
1491 * Optional default target namespace for interwiki imports.
1492 * Can use this to create an incoming "transwiki"-style queue.
1493 * Set to numeric key, not the name.
1495 * Users may override this in the Special:Import dialog.
1497 $wgImportTargetNamespace = null;
1500 * If set to false, disables the full-history option on Special:Export.
1501 * This is currently poorly optimized for long edit histories, so is
1502 * disabled on Wikimedia's sites.
1504 $wgExportAllowHistory = true;
1507 * If set nonzero, Special:Export requests for history of pages with
1508 * more revisions than this will be rejected. On some big sites things
1509 * could get bogged down by very very long pages.
1511 $wgExportMaxHistory = 0;
1513 $wgExportAllowListContributors = false ;
1516 /** Text matching this regular expression will be recognised as spam
1517 * See http://en.wikipedia.org/wiki/Regular_expression */
1518 $wgSpamRegex = false;
1519 /** Similarly if this function returns true */
1520 $wgFilterCallback = false;
1522 /** Go button goes straight to the edit screen if the article doesn't exist. */
1523 $wgGoToEdit = false;
1525 /** Allow limited user-specified HTML in wiki pages?
1526 * It will be run through a whitelist for security. Set this to false if you
1527 * want wiki pages to consist only of wiki markup. Note that replacements do not
1528 * yet exist for all HTML constructs.*/
1531 /** Allow raw, unchecked HTML in <html>...</html> sections.
1532 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1533 * TO RESTRICT EDITING to only those that you trust
1538 * $wgUseTidy: use tidy to make sure HTML output is sane.
1539 * This should only be enabled if $wgUserHtml is true.
1540 * tidy is a free tool that fixes broken HTML.
1541 * See http://www.w3.org/People/Raggett/tidy/
1542 * $wgTidyBin should be set to the path of the binary and
1543 * $wgTidyConf to the path of the configuration file.
1544 * $wgTidyOpts can include any number of parameters.
1546 * $wgTidyInternal controls the use of the PECL extension to use an in-
1547 * process tidy library instead of spawning a separate program.
1548 * Normally you shouldn't need to override the setting except for
1549 * debugging. To install, use 'pear install tidy' and add a line
1550 * 'extension=tidy.so' to php.ini.
1553 $wgAlwaysUseTidy = false;
1554 $wgTidyBin = 'tidy';
1555 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1557 $wgTidyInternal = function_exists( 'tidy_load_config' );
1559 /** See list of skins and their symbolic names in languages/Language.php */
1560 $wgDefaultSkin = 'monobook';
1562 /** Whether or not to allow and use real name fields. Defaults to true. */
1563 $wgAllowRealName = true;
1565 /*****************************************************************************
1570 * A list of callback functions which are called once MediaWiki is fully initialised
1572 $wgExtensionFunctions = array();
1575 * Extension functions for initialisation of skins. This is called somewhat earlier
1576 * than $wgExtensionFunctions.
1578 $wgSkinExtensionFunctions = array();
1581 * List of valid skin names.
1582 * The key should be the name in all lower case, the value should be a display name.
1583 * The default skins will be added later, by Skin::getSkinNames(). Use
1584 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
1586 $wgValidSkinNames = array();
1589 * Special page list.
1590 * See the top of SpecialPage.php for documentation.
1592 $wgSpecialPages = array();
1595 * Array mapping class names to filenames, for autoloading.
1597 $wgAutoloadClasses = array();
1600 * An array of extension types and inside that their names, versions, authors
1601 * and urls, note that the version and url key can be omitted.
1604 * $wgExtensionCredits[$type][] = array(
1605 * 'name' => 'Example extension',
1607 * 'author' => 'Foo Barstein',
1608 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1612 * Where $type is 'specialpage', 'parserhook', or 'other'.
1614 $wgExtensionCredits = array();
1617 ******************************************************************************/
1620 * Allow user Javascript page?
1621 * This enables a lot of neat customizations, but may
1622 * increase security risk to users and server load.
1624 $wgAllowUserJs = false;
1627 * Allow user Cascading Style Sheets (CSS)?
1628 * This enables a lot of neat customizations, but may
1629 * increase security risk to users and server load.
1631 $wgAllowUserCss = false;
1633 /** Use the site's Javascript page? */
1634 $wgUseSiteJs = true;
1636 /** Use the site's Cascading Style Sheets (CSS)? */
1637 $wgUseSiteCss = true;
1639 /** Filter for Special:Randompage. Part of a WHERE clause */
1640 $wgExtraRandompageSQL = false;
1642 /** Allow the "info" action, very inefficient at the moment */
1643 $wgAllowPageInfo = false;
1645 /** Maximum indent level of toc. */
1646 $wgMaxTocLevel = 999;
1648 /** Name of the external diff engine to use */
1649 $wgExternalDiffEngine = false;
1651 /** Use RC Patrolling to check for vandalism */
1652 $wgUseRCPatrol = true;
1654 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1655 * eg Recentchanges, Newpages. */
1658 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1659 * A cached version will continue to be served out even if changes
1660 * are made, until this many seconds runs out since the last render.
1662 * If set to 0, feed caching is disabled. Use this for debugging only;
1663 * feed generation can be pretty slow with diffs.
1665 $wgFeedCacheTimeout = 60;
1667 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1668 * pages larger than this size. */
1669 $wgFeedDiffCutoff = 32768;
1673 * Additional namespaces. If the namespaces defined in Language.php and
1674 * Namespace.php are insufficient, you can create new ones here, for example,
1675 * to import Help files in other languages.
1676 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1677 * no longer be accessible. If you rename it, then you can access them through
1678 * the new namespace name.
1680 * Custom namespaces should start at 100 to avoid conflicting with standard
1681 * namespaces, and should always follow the even/odd main/talk pattern.
1683 #$wgExtraNamespaces =
1684 # array(100 => "Hilfe",
1685 # 101 => "Hilfe_Diskussion",
1687 # 103 => "Discussion_Aide"
1689 $wgExtraNamespaces = NULL;
1692 * Limit images on image description pages to a user-selectable limit. In order
1693 * to reduce disk usage, limits can only be selected from a list. This is the
1694 * list of settings the user can choose from:
1696 $wgImageLimits = array (
1702 array(10000,10000) );
1705 * Adjust thumbnails on image pages according to a user setting. In order to
1706 * reduce disk usage, the values can only be selected from a list. This is the
1707 * list of settings the user can choose from:
1709 $wgThumbLimits = array(
1719 * On category pages, show thumbnail gallery for images belonging to that
1720 * category instead of listing them as articles.
1722 $wgCategoryMagicGallery = true;
1725 * Paging limit for categories
1727 $wgCategoryPagingLimit = 200;
1730 * Browser Blacklist for unicode non compliant browsers
1731 * Contains a list of regexps : "/regexp/" matching problematic browsers
1733 $wgBrowserBlackList = array(
1735 * Netscape 2-4 detection
1736 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
1737 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
1738 * with a negative assertion. The [UIN] identifier specifies the level of security
1739 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
1740 * The language string is unreliable, it is missing on NS4 Mac.
1742 * Reference: http://www.psychedelix.com/agents/index.shtml
1744 '/^Mozilla\/2\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1745 '/^Mozilla\/3\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1746 '/^Mozilla\/4\.[^ ]+ .*?\((?!compatible).*; [UIN]/',
1749 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1752 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1753 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1754 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1757 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1758 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1760 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/'
1764 * Fake out the timezone that the server thinks it's in. This will be used for
1765 * date display and not for what's stored in the DB. Leave to null to retain
1766 * your server's OS-based timezone value. This is the same as the timezone.
1768 * This variable is currently used ONLY for signature formatting, not for
1771 # $wgLocaltimezone = 'GMT';
1772 # $wgLocaltimezone = 'PST8PDT';
1773 # $wgLocaltimezone = 'Europe/Sweden';
1774 # $wgLocaltimezone = 'CET';
1775 $wgLocaltimezone = null;
1778 * Set an offset from UTC in minutes to use for the default timezone setting
1779 * for anonymous users and new user accounts.
1781 * This setting is used for most date/time displays in the software, and is
1782 * overrideable in user preferences. It is *not* used for signature timestamps.
1784 * You can set it to match the configured server timezone like this:
1785 * $wgLocalTZoffset = date("Z") / 60;
1787 * If your server is not configured for the timezone you want, you can set
1788 * this in conjunction with the signature timezone and override the TZ
1789 * environment variable like so:
1790 * $wgLocaltimezone="Europe/Berlin";
1791 * putenv("TZ=$wgLocaltimezone");
1792 * $wgLocalTZoffset = date("Z") / 60;
1794 * Leave at NULL to show times in universal time (UTC/GMT).
1796 $wgLocalTZoffset = null;
1800 * When translating messages with wfMsg(), it is not always clear what should be
1801 * considered UI messages and what shoud be content messages.
1803 * For example, for regular wikipedia site like en, there should be only one
1804 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1805 * it as content of the site and call wfMsgForContent(), while for rendering the
1806 * text of the link, we call wfMsg(). The code in default behaves this way.
1807 * However, sites like common do offer different versions of 'mainpage' and the
1808 * like for different languages. This array provides a way to override the
1809 * default behavior. For example, to allow language specific mainpage and
1810 * community portal, set
1812 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1814 $wgForceUIMsgAsContentMsg = array();
1818 * Authentication plugin.
1823 * Global list of hooks.
1824 * Add a hook by doing:
1825 * $wgHooks['event_name'][] = $function;
1827 * $wgHooks['event_name'][] = array($function, $data);
1829 * $wgHooks['event_name'][] = array($object, 'method');
1834 * The logging system has two levels: an event type, which describes the
1835 * general category and can be viewed as a named subset of all logs; and
1836 * an action, which is a specific kind of event that can exist in that
1839 $wgLogTypes = array( '',
1849 * Lists the message key string for each log type. The localized messages
1850 * will be listed in the user interface.
1852 * Extensions with custom log types may add to this array.
1854 $wgLogNames = array(
1856 'block' => 'blocklogpage',
1857 'protect' => 'protectlogpage',
1858 'rights' => 'rightslog',
1859 'delete' => 'dellogpage',
1860 'upload' => 'uploadlogpage',
1861 'move' => 'movelogpage',
1862 'import' => 'importlogpage' );
1865 * Lists the message key string for descriptive text to be shown at the
1866 * top of each log type.
1868 * Extensions with custom log types may add to this array.
1870 $wgLogHeaders = array(
1871 '' => 'alllogstext',
1872 'block' => 'blocklogtext',
1873 'protect' => 'protectlogtext',
1874 'rights' => 'rightslogtext',
1875 'delete' => 'dellogpagetext',
1876 'upload' => 'uploadlogpagetext',
1877 'move' => 'movelogpagetext',
1878 'import' => 'importlogpagetext', );
1881 * Lists the message key string for formatting individual events of each
1882 * type and action when listed in the logs.
1884 * Extensions with custom log types may add to this array.
1886 $wgLogActions = array(
1887 'block/block' => 'blocklogentry',
1888 'block/unblock' => 'unblocklogentry',
1889 'protect/protect' => 'protectedarticle',
1890 'protect/unprotect' => 'unprotectedarticle',
1891 'rights/rights' => 'rightslogentry',
1892 'delete/delete' => 'deletedarticle',
1893 'delete/restore' => 'undeletedarticle',
1894 'delete/revision' => 'revdelete-logentry',
1895 'upload/upload' => 'uploadedimage',
1896 'upload/revert' => 'uploadedimage',
1897 'move/move' => '1movedto2',
1898 'move/move_redir' => '1movedto2_redir',
1899 'import/upload' => 'import-logentry-upload',
1900 'import/interwiki' => 'import-logentry-interwiki' );
1903 * Experimental preview feature to fetch rendered text
1904 * over an XMLHttpRequest from JavaScript instead of
1905 * forcing a submit and reload of the whole page.
1906 * Leave disabled unless you're testing it.
1908 $wgLivePreview = false;
1911 * Disable the internal MySQL-based search, to allow it to be
1912 * implemented by an extension instead.
1914 $wgDisableInternalSearch = false;
1917 * Set this to a URL to forward search requests to some external location.
1918 * If the URL includes '$1', this will be replaced with the URL-encoded
1921 * For example, to forward to Google you'd have something like:
1922 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1923 * '&domains=http://example.com' .
1924 * '&sitesearch=http://example.com' .
1925 * '&ie=utf-8&oe=utf-8';
1927 $wgSearchForwardUrl = null;
1930 * If true, external URL links in wiki text will be given the
1931 * rel="nofollow" attribute as a hint to search engines that
1932 * they should not be followed for ranking purposes as they
1933 * are user-supplied and thus subject to spamming.
1935 $wgNoFollowLinks = true;
1938 * Namespaces in which $wgNoFollowLinks doesn't apply.
1939 * See Language.php for a list of namespaces.
1941 $wgNoFollowNsExceptions = array();
1944 * Robot policies for namespaces
1945 * e.g. $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
1947 $wgNamespaceRobotPolicies = array();
1950 * Specifies the minimal length of a user password. If set to
1951 * 0, empty passwords are allowed.
1953 $wgMinimalPasswordLength = 0;
1956 * Activate external editor interface for files and pages
1957 * See http://meta.wikimedia.org/wiki/Help:External_editors
1959 $wgUseExternalEditor = true;
1961 /** Whether or not to sort special pages in Special:Specialpages */
1963 $wgSortSpecialPages = true;
1966 * Specify the name of a skin that should not be presented in the
1967 * list of available skins.
1968 * Use for blacklisting a skin which you do not want to remove
1969 * from the .../skins/ directory
1972 $wgSkipSkins = array(); # More of the same
1975 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1977 $wgDisabledActions = array();
1980 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1982 $wgDisableHardRedirects = false;
1985 * Use http.dnsbl.sorbs.net to check for open proxies
1987 $wgEnableSorbs = false;
1990 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1993 $wgProxyWhitelist = array();
1996 * Simple rate limiter options to brake edit floods.
1997 * Maximum number actions allowed in the given number of seconds;
1998 * after that the violating client receives HTTP 500 error pages
1999 * until the period elapses.
2001 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2003 * This option set is experimental and likely to change.
2004 * Requires memcached.
2006 $wgRateLimits = array(
2008 'anon' => null, // for any and all anonymous edits (aggregate)
2009 'user' => null, // for each logged-in user
2010 'newbie' => null, // for each recent account; overrides 'user'
2011 'ip' => null, // for each anon and recent account
2012 'subnet' => null, // ... with final octet removed
2020 'mailpassword' => array(
2026 * Set to a filename to log rate limiter hits.
2028 $wgRateLimitLog = null;
2031 * Array of groups which should never trigger the rate limiter
2033 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2036 * On Special:Unusedimages, consider images "used", if they are put
2037 * into a category. Default (false) is not to count those as used.
2039 $wgCountCategorizedImagesAsUsed = false;
2042 * External stores allow including content
2043 * from non database sources following URL links
2045 * Short names of ExternalStore classes may be specified in an array here:
2046 * $wgExternalStores = array("http","file","custom")...
2048 * CAUTION: Access to database might lead to code execution
2050 $wgExternalStores = false;
2053 * An array of external mysql servers, e.g.
2054 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2056 $wgExternalServers = array();
2059 * The place to put new revisions, false to put them in the local text table.
2060 * Part of a URL, e.g. DB://cluster1
2062 * Can be an array instead of a single string, to enable data distribution. Keys
2063 * must be consecutive integers, starting at zero. Example:
2065 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2068 $wgDefaultExternalStore = false;
2071 * list of trusted media-types and mime types.
2072 * Use the MEDIATYPE_xxx constants to represent media types.
2073 * This list is used by Image::isSafeFile
2075 * Types not listed here will have a warning about unsafe content
2076 * displayed on the images description page. It would also be possible
2077 * to use this for further restrictions, like disabling direct
2078 * [[media:...]] links for non-trusted formats.
2080 $wgTrustedMediaFormats= array(
2081 MEDIATYPE_BITMAP
, //all bitmap formats
2082 MEDIATYPE_AUDIO
, //all audio formats
2083 MEDIATYPE_VIDEO
, //all plain video formats
2084 "image/svg", //svg (only needed if inline rendering of svg is not supported)
2085 "application/pdf", //PDF files
2086 #"application/x-shockwafe-flash", //flash/shockwave movie
2090 * Allow special page inclusions such as {{Special:Allpages}}
2092 $wgAllowSpecialInclusion = true;
2095 * Timeout for HTTP requests done via CURL
2100 * Proxy to use for CURL requests.
2102 $wgHTTPProxy = false;
2105 * Enable interwiki transcluding. Only when iw_trans=1.
2107 $wgEnableScaryTranscluding = false;
2109 * Expiry time for interwiki transclusion
2111 $wgTranscludeCacheExpiry = 3600;
2114 * Support blog-style "trackbacks" for articles. See
2115 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2117 $wgUseTrackbacks = false;
2120 * Enable filtering of categories in Recentchanges
2122 $wgAllowCategorizedRecentChanges = false ;
2125 * Number of jobs to perform per request. May be less than one in which case
2126 * jobs are performed probabalistically. If this is zero, jobs will not be done
2127 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2128 * be run periodically.
2133 * Number of rows to update per job
2135 $wgUpdateRowsPerJob = 500;
2138 * Number of rows to update per query
2140 $wgUpdateRowsPerQuery = 10;
2143 * Enable AJAX framework
2148 * Enable auto suggestion for the search bar
2149 * Requires $wgUseAjax to be true too.
2150 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2152 $wgAjaxSearch = false;
2155 * List of Ajax-callable functions.
2156 * Extensions acting as Ajax callbacks must register here
2158 $wgAjaxExportList = array( );
2161 * Allow DISPLAYTITLE to change title display
2163 $wgAllowDisplayTitle = false ;
2166 * Array of usernames which may not be registered or logged in from
2167 * Maintenance scripts can still use these
2169 $wgReservedUsernames = array( 'MediaWiki default', 'Conversion script' );
2172 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
2173 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
2174 * crap files as images. When this directive is on, <title> will be allowed in files with
2175 * an "image/svg" MIME type. You should leave this disabled if your web server is misconfigured
2176 * and doesn't send appropriate MIME types for SVG images.
2178 $wgAllowTitlesInSVG = false;
2181 * Array of namespaces which can be deemed to contain valid "content", as far
2182 * as the site statistics are concerned. Useful if additional namespaces also
2183 * contain "content" which should be considered when generating a count of the
2184 * number of articles in the wiki.
2186 $wgContentNamespaces = array( NS_MAIN
);
2189 * Maximum amount of virtual memory available to shell processes under linux, in KB.
2191 $wgMaxShellMemory = 102400;
2195 * Path of the djvutoxml executable
2196 * Enable this and $wgDjvuRenderer to enable djvu rendering
2198 # $wgDjvuToXML = 'djvutoxml';
2201 * Path of the ddjvu DJVU renderer
2202 * Enable this and $wgDjvuToXML to enable djvu rendering
2204 # $wgDjvuRenderer = 'ddjvu';
2207 * Path of the DJVU post processor
2208 * May include command line options
2209 * Default: ppmtojpeg, since ddjvu generates ppm output
2211 $wgDjvuPostProcessor = 'ppmtojpeg';