b8101d5fa2eaa41a8d73a94dc20ca87000b550c2
3 * DO NOT EDIT THIS FILE!
5 * To customize your installation, edit "LocalSettings.php".
7 * Note that since all these string interpolations are expanded
8 * before LocalSettings is included, if you localize something
9 * like $wgScriptPath, you must also localize everything that
15 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
16 if( defined( 'MEDIAWIKI' ) ) {
18 /** MediaWiki version number */
19 $wgVersion = '1.5pre-alpha';
21 /** Name of the site. It must be changed in LocalSettings.php */
22 $wgSitename = 'MediaWiki';
24 /** Will be same as you set @see $wgSitename */
25 $wgMetaNamespace = FALSE;
27 /** URL of the server. It will be automaticly build including https mode */
30 if( isset( $_SERVER['SERVER_NAME'] ) ) {
31 $wgServerName = $_SERVER['SERVER_NAME'];
32 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
33 $wgServerName = $_SERVER['HOSTNAME'];
34 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
35 $wgServerName = $_SERVER['HTTP_HOST'];
36 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
37 $wgServerName = $_SERVER['SERVER_ADDR'];
39 $wgServerName = 'localhost';
42 # check if server use https:
43 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
45 $wgServer = $wgProto.'://' . $wgServerName;
46 if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
47 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
53 * The path we should point to.
54 * It might be a virtual path in case with use apache mod_rewrite for example
56 $wgScriptPath = '/wiki';
59 * Whether to support URLs like index.php/Page_title
60 * @global bool $wgUsePathInfo
62 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
66 * Script users will request to get articles
67 * ATTN: Old installations used wiki.phtml and redirect.phtml -
68 * make sure that LocalSettings.php is correctly set!
72 * @global string $wgScript
74 $wgScript = "{$wgScriptPath}/index.php";
76 * @global string $wgRedirectScript
78 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
86 * style path as seen by users
87 * @global string $wgStylePath
89 $wgStylePath = "{$wgScriptPath}/skins";
91 * filesystem stylesheets directory
92 * @global string $wgStyleDirectory
94 $wgStyleDirectory = "{$IP}/skins";
95 $wgStyleSheetPath = &$wgStylePath;
96 $wgStyleSheetDirectory = &$wgStyleDirectory;
97 $wgArticlePath = "{$wgScript}?title=$1";
98 $wgUploadPath = "{$wgScriptPath}/upload";
99 $wgUploadDirectory = "{$IP}/upload";
100 $wgHashedUploadDirectory = true;
101 $wgLogo = "{$wgUploadPath}/wiki.png";
102 $wgMathPath = "{$wgUploadPath}/math";
103 $wgMathDirectory = "{$wgUploadDirectory}/math";
104 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
105 $wgUploadBaseUrl = "";
109 * Produce hashed HTML article paths. Used internally, do not set.
111 $wgMakeDumpLinks = false;
114 * To set 'pretty' URL paths for actions other than
115 * plain page views, add to this array. For instance:
116 * 'edit' => "$wgScriptPath/edit/$1"
118 * There must be an appropriate script or rewrite rule
119 * in place to handle these URLs.
121 $wgActionPaths = array();
124 * If you operate multiple wikis, you can define a shared upload path here.
125 * Uploads to this wiki will NOT be put there - they will be put into
126 * $wgUploadDirectory.
127 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
128 * no file of the given name is found in the local repository (for [[Image:..]],
129 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
132 $wgUseSharedUploads = false;
133 /** Full path on the web server where shared uploads can be found */
134 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
135 /** Path on the file system where shared uploads can be found */
136 $wgSharedUploadDirectory = "/var/www/wiki3/images";
137 /** Path on the file system where shared uploads can be found */
138 $wgSharedUploadDBname = "commons";
141 * Set the following to false especially if you have a set of files that need to
142 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
145 $wgHashedSharedUploadDirectory = true;
147 /** set true if the repository uses latin1 filenames */
148 $wgSharedLatin1=false;
151 * Base URL for a repository wiki. Leave this blank if uploads are just stored
152 * in a shared directory and not meant to be accessible through a separate wiki.
153 * Otherwise the image description pages on the local wiki will link to the
154 * image description page on this wiki.
156 * Please specify the namespace, as in the example below.
158 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
166 * Site admin email address
167 * Default to wikiadmin@SERVER_NAME
168 * @global string $wgEmergencyContact
170 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
173 * Password reminder email address
174 * The address we should use as sender when a user is requesting his password
175 * Default to apache@SERVER_NAME
176 * @global string $wgPasswordSender
178 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
181 * dummy address which should be accepted during mail send action
182 * It might be necessay to adapt the address or to set it equal
183 * to the $wgEmergencyContact address
185 #$wgNoReplyAddress = $wgEmergencyContact;
186 $wgNoReplyAddress = 'reply@not.possible';
189 * Set to true to enable the e-mail basic features:
190 * Password reminders, etc. If sending e-mail on your
191 * server doesn't work, you might want to disable this.
192 * @global bool $wgEnableEmail
194 $wgEnableEmail = true;
197 * Set to true to enable user-to-user e-mail.
198 * This can potentially be abused, as it's hard to track.
199 * @global bool $wgEnableUserEmail
201 $wgEnableUserEmail = true;
205 * For using a direct (authenticated) SMTP server connection.
206 * Default to false or fill an array :
208 * "host" => 'SMTP domain',
209 * "IDHost" => 'domain for MessageID',
211 * "auth" => true/false,
212 * "username" => user,
213 * "password" => password
216 * @global mixed $wgSMTP
224 /** database host name or ip address */
225 $wgDBserver = 'localhost';
226 /** name of the database */
227 $wgDBname = 'wikidb';
229 $wgDBconnection = '';
230 /** Database username */
231 $wgDBuser = 'wikiuser';
233 * "mysql" for working code and "PostgreSQL" for development/broken code
237 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
238 * based search engine
240 $wgSearchType = "MyISAM";
241 /** Table name prefix */
244 * on some databases this allows separate
245 * logical namespace for application data
247 $wgDBschema = 'mediawiki';
253 * Shared database for multiple wikis. Presently used for storing a user table
254 * for single sign-on. The server for this database must be the same as for the
260 # Database load balancer
261 # This is a two-dimensional array, an array of server info structures
264 # dbname: Default database name
266 # password: DB password
267 # type: "mysql" or "pgsql"
268 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
270 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
271 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
272 # DBO_TRX -- wrap entire request in a transaction
273 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
274 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
276 # Leave at false to use the single-server variables above
277 $wgDBservers = false;
279 /** How long to wait for a slave to catch up to the master */
280 $wgMasterWaitTimeout = 10;
282 /** File to log MySQL errors to */
283 $wgDBerrorLog = false;
287 * MySQL 3.x : used to discard words that MySQL will not return any results for
288 * shorter values configure mysql directly.
289 * MySQL 4.x : ignore it and configure mySQL
290 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
293 /** Set to true if using InnoDB tables */
294 $wgDBtransactions = false;
295 /** Set to true to use enhanced fulltext search */
300 * Other wikis on this site, can be administered from a single developer
302 * Array, interwiki prefix => database name
304 $wgLocalDatabases = array();
308 # See docs/memcached.doc
310 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
311 $wgUseMemCached = false;
312 $wgMemCachedServers = array( '127.0.0.1:11000' );
313 $wgMemCachedDebug = false;
314 $wgSessionsInMemcached = false;
315 $wgLinkCacheMemcached = false; # Not fully tested
318 * Turck MMCache shared memory
319 * You can use this for persistent caching where your wiki runs on a single
320 * server. Enabled by default if Turck is installed. Mutually exclusive with
321 * memcached and eAccelerator, the preference order priorities being memcached first,
322 * Turck MMCache second, and eAccelerator third.
324 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
326 $wgUseTurckShm = false;
329 * eAccelerator shared memory
330 * You can use this for persistent caching where your wiki runs on a single
331 * server. Enabled by default if eAccelerator is installed. Mutually exclusive with
332 * memcached and Turck MMCache, the preference order being memcached first,
333 * Turck MMCache second, and eAccelerator third.
335 * Most of the code to support this is directly copied from the Turck code.
337 * @global bool $wgUseEAccelShm Enable or disabled eAccelerator
339 $wgUseEAccelShm = false;
344 /** Site language code, should be one of ./language/Language(.*).php */
345 $wgLanguageCode = 'en';
347 /** Filename of a language file generated by dumpMessages.php */
348 $wgLanguageFile = false;
350 /** Treat language links as magic connectors, not inline links */
351 $wgInterwikiMagic = true;
353 /** We speak UTF-8 all the time now, unless some oddities happen */
354 $wgInputEncoding = 'UTF-8';
355 $wgOutputEncoding = 'UTF-8';
356 $wgEditEncoding = '';
358 # Set this to eg 'ISO-8859-1' to perform character set
359 # conversion when loading old revisions not marked with
360 # "utf-8" flag. Use this when converting wiki to UTF-8
361 # without the burdensome mass conversion of old text data.
363 # NOTE! This DOES NOT touch any fields other than old_text.
364 # Titles, comments, user names, etc still must be converted
365 # en masse in the database before continuing as a UTF-8 wiki.
366 $wgLegacyEncoding = false;
368 $wgMimeType = 'text/html';
369 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
370 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
372 /** Enable to allow rewriting dates in page text.
373 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
374 $wgUseDynamicDates = false;
375 /** Enable for English module to print dates as eg 'May 12' instead of '12 May' */
376 $wgAmericanDates = false;
378 * For Hindi and Arabic use local numerals instead of Western style (0-9)
379 * numerals in interface.
381 $wgTranslateNumerals = true;
384 # Translation using MediaWiki: namespace
385 # This will increase load times by 25-60% unless memcached is installed
386 # Interface messages will be get from the database.
387 $wgUseDatabaseMessages = true;
388 $wgMsgCacheExpiry = 86400;
389 $wgPartialMessageCache = false;
391 # Whether to enable language variant conversion. Currently only zh
392 # supports this function, to convert between Traditional and Simplified
393 # Chinese. This flag is meant to isolate the (untested) conversion
394 # code, so that if it breaks, only zh will be affected
395 $wgDisableLangConversion = false;
397 # Use article validation feature; turned off by default
398 $wgUseValidation = false;
400 # Whether to use zhdaemon to perform Chinese text processing
401 # zhdaemon is under developement, so normally you don't want to
402 # use it unless for testing
403 $wgUseZhdaemon = false;
404 $wgZhdaemonHost="localhost";
405 $wgZhdaemonPort=2004;
407 # Miscellaneous configuration settings
410 $wgLocalInterwiki = 'w';
411 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
414 * If local interwikis are set up which allow redirects,
415 * set this regexp to restrict URLs which will be displayed
416 * as 'redirected from' links.
418 * It might look something like this:
419 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
421 * Leave at false to avoid displaying any incoming redirect markers.
422 * This does not affect intra-wiki redirects, which don't change
425 $wgRedirectSources = false;
428 $wgShowIPinHeader = true; # For non-logged in users
429 $wgMaxNameChars = 32; # Maximum number of bytes in username
431 $wgExtraSubtitle = '';
432 $wgSiteSupportPage = ''; # A page where you users can receive donations
434 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
437 * The debug log file should be not be publicly accessible if it is used, as it
438 * may contain private data. */
439 $wgDebugLogFile = '';
444 $wgDebugRedirects = false;
445 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
447 $wgDebugComments = false;
449 $wgLogQueries = false;
450 $wgDebugDumpSql = false;
453 * Whether to show "we're sorry, but there has been a database error" pages.
454 * Displaying errors aids in debugging, but may display information useful
457 $wgShowSQLErrors = false;
459 # Should [[Category:Dog]] on a page associate it with the
460 # category "Dog"? (a link to that category page will be
461 # added to the article, clicking it reveals a list of
462 # all articles in the category)
463 $wgUseCategoryMagic = true;
466 * disable experimental dmoz-like category browsing. Output things like:
467 * Encyclopedia > Music > Style of Music > Jazz
469 $wgUseCategoryBrowser = false;
471 $wgEnablePersistentLC = false; # Obsolete, do not use
472 $wgCompressedPersistentLC = true; # use gzcompressed blobs
473 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
476 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
477 * to speed up output of the same page viewed by another user with the
480 * This can provide a significant speedup for medium to large pages,
481 * so you probably want to keep it on.
483 $wgEnableParserCache = true;
486 * Under which condition should a page in the main namespace be counted
487 * as a valid article? If $wgUseCommaCount is set to true, it will be
488 * counted if it contains at least one comma. If it is set to false
489 * (default), it will only be counted if it contains at least one [[wiki
490 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
492 * Retroactively changing this variable will not affect
493 * the existing count (cf. maintenance/recount.sql).
495 $wgUseCommaCount = false;
500 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
501 * values are easier on the database. A value of 1 causes the counters to be
502 * updated on every hit, any higher value n cause them to update *on average*
503 * every n hits. Should be set to either 1 or something largish, eg 1000, for
504 * maximum efficiency.
506 $wgHitcounterUpdateFreq = 1;
508 # User rights settings
510 # It's not 100% safe, there could be security hole using that one. Use at your
513 $wgWhitelistEdit = false; # true = user must login to edit.
514 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
515 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
517 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
519 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
520 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
522 /** Comma-separated list of options to show on the IP block form.
523 * Use strtotime() format, or "infinite" for an infinite block
525 $wgBlockExpiryOptions = "2 hours,1 day,3 days,1 week,2 weeks,1 month,3 months,6 months,1 year,infinite";
527 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
529 # Proxy scanner settings
533 * If you enable this, every editor's IP address will be scanned for open HTTP
536 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
537 * ISP and ask for your server to be shut down.
539 * You have been warned.
541 $wgBlockOpenProxies = false;
542 /** Port we want to scan for a proxy */
543 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
544 /** Script used to scan */
545 $wgProxyScriptPath = "$IP/proxy_check.php";
547 $wgProxyMemcExpiry = 86400;
548 /** This should always be customised in LocalSettings.php */
549 $wgSecretKey = false;
550 /** big list of banned IP addresses, in the keys not the values */
551 $wgProxyList = array();
555 /** Number of accounts each IP address may create, 0 to disable.
556 * Requires memcached */
557 $wgAccountCreationThrottle = 0;
559 # Client-side caching:
561 /** Allow client-side caching of pages */
562 $wgCachePages = true;
565 * Set this to current time to invalidate all prior cached pages. Affects both
566 * client- and server-side caching.
568 $wgCacheEpoch = '20030516000000';
571 # Server-side caching:
574 * This will cache static pages for non-logged-in users to reduce
575 * database traffic on public sites.
576 * Must set $wgShowIPinHeader = false
578 $wgUseFileCache = false;
579 /** Directory where the cached page will be saved */
580 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
583 * When using the file cache, we can store the cached HTML gzipped to save disk
584 * space. Pages will then also be served compressed to clients that support it.
585 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
586 * the default LocalSettings.php! If you enable this, remove that setting first.
588 * Requires zlib support enabled in PHP.
592 # Email notification settings
596 * Program to run when the email is actually sent out. You might want to make
597 * your server beep for example. Usermailer.php will make a system() call with
598 * exactly that string as parameter.
600 # $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
601 $wgEmailNotificationSystembeep = '';
603 /** For email notification on page changes */
604 $wgPasswordSender = $wgEmergencyContact;
606 # true: from PageEditor if s/he opted-in
607 # false: Enotif mails appear to come from $wgEmergencyContact
608 $wgEmailNotificationMailsSentFromPageEditor = false;
610 // TODO move UPO to preferences probably ?
611 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
612 # If set to false, the corresponding input form on the user preference page is suppressed
613 # It call this to be a "user-preferences-option (UPO)"
614 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
615 $wgEmailNotificationForWatchlistPages = false; # UPO
616 $wgEmailNotificationForUserTalkPages = false; # UPO
617 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
618 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
619 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
622 /** Show watching users in recent changes, watchlist and page history views */
623 $wgRCShowWatchingUsers = false; # UPO
624 /** Show watching users in Page views */
625 $wgPageShowWatchingUsers = false;
627 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
628 * view for watched pages with new changes */
629 $wgShowUpdatedMarker = true; # UPO
631 $wgCookieExpiration = 2592000;
633 # Squid-related settings
636 /** Enable/disable Squid */
639 /** If you run Squid3 with ESI support, enable this (default:false): */
642 /** Internal server name as known to Squid, if different */
643 # $wgInternalServer = 'http://yourinternal.tld:8000';
644 $wgInternalServer = $wgServer;
647 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
648 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
649 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
652 $wgSquidMaxage = 18000;
655 * A list of proxy servers (ips if possible) to purge on changes don't specify
656 * ports here (80 is default)
658 # $wgSquidServers = array('127.0.0.1');
659 $wgSquidServers = array();
660 $wgSquidServersNoPurge = array();
662 /** Maximum number of titles to purge in any one client operation */
663 $wgMaxSquidPurgeTitles = 400;
669 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
670 * or ".any.subdomain.net"
672 $wgCookieDomain = '';
674 $wgDisableCookieCheck = false;
676 /** Whether to allow inline image pointing to other websites */
677 $wgAllowExternalImages = true;
679 /** Disable database-intensive features */
680 $wgMiserMode = false;
681 /** Disable all query pages if miser mode is on, not just some */
682 $wgDisableQueryPages = false;
683 /** Generate a watchlist once every hour or so */
684 $wgUseWatchlistCache = false;
685 /** The hour or so mentioned above */
686 $wgWLCacheTimeout = 3600;
689 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
690 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
691 * (ImageMagick) installed and available in the PATH.
692 * Please see math/README for more information.
695 /** Location of the texvc binary */
696 $wgTexvc = './math/texvc';
699 # Profiling / debugging
702 /** Enable for more detailed by-function times in debug log */
703 $wgProfiling = false;
704 /** Only record profiling info for pages that took longer than this */
705 $wgProfileLimit = 0.0;
706 /** Don't put non-profiling info into log file */
707 $wgProfileOnly = false;
708 /** Log sums from profiling into "profiling" table in db. */
709 $wgProfileToDatabase = false;
710 /** Only profile every n requests when profiling is turned on */
711 $wgProfileSampleRate = 1;
712 /** If true, print a raw call tree instead of per-function report */
713 $wgProfileCallTree = false;
715 /** Detects non-matching wfProfileIn/wfProfileOut calls */
716 $wgDebugProfiling = false;
717 /** Output debug message on every wfProfileIn/wfProfileOut */
718 $wgDebugFunctionEntry = 0;
719 /** Lots of debugging output from SquidUpdate.php */
720 $wgDebugSquid = false;
722 $wgDisableCounters = false;
723 $wgDisableTextSearch = false;
725 * If you've disabled search semi-permanently, this also disables updates to the
726 * table. If you ever re-enable, be sure to rebuild the search table.
728 $wgDisableSearchUpdate = false;
729 /** Uploads have to be specially set up to be secure */
730 $wgDisableUploads = true;
732 * Set to true to enable the upload _link_ while local uploads are disabled.
733 * Assumes that the special page link will be bounced to another server where
736 $wgRemoteUploads = false;
737 $wgDisableAnonTalk = false;
740 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
741 * fall back to the old behaviour (no merging).
743 $wgDiff3 = '/usr/bin/diff3';
746 * We can also compress text in the old revisions table. If this is set on, old
747 * revisions will be compressed on page save if zlib support is available. Any
748 * compressed revisions will be decompressed on load regardless of this setting
749 * *but will not be readable at all* if zlib support is not available.
751 $wgCompressRevisions = false;
754 * This is the list of preferred extensions for uploading files. Uploading files
755 * with extensions not in this list will trigger a warning.
757 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
759 /** Files with these extensions will never be allowed as uploads. */
760 $wgFileBlacklist = array(
761 # HTML may contain cookie-stealing JavaScript and web bugs
763 # PHP scripts may execute arbitrary code on the server
764 'php', 'phtml', 'php3', 'php4', 'phps',
765 # Other types that may be interpreted by some servers
766 'shtml', 'jhtml', 'pl', 'py', 'cgi',
767 # May contain harmful executables for Windows victims
768 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
770 /** This is a flag to determine whether or not to check file extensions on upload. */
771 $wgCheckFileExtensions = true;
774 * If this is turned off, users may override the warning for files not covered
775 * by $wgFileExtensions.
777 $wgStrictFileExtensions = true;
779 /** Warn if uploaded files are larger than this */
780 $wgUploadSizeWarning = 150000;
782 /** For compatibility with old installations set to false */
783 $wgPasswordSalt = true;
785 /** Which namespaces should support subpages?
786 * See Language.php for a list of namespaces.
788 $wgNamespacesWithSubpages = array(
795 NS_PROJECT_TALK
=> 1,
799 NS_MEDIAWIKI_TALK
=> 1,
801 NS_TEMPLATE_TALK
=> 1,
805 NS_CATEGORY_TALK
=> 1
808 $wgNamespacesToBeSearchedDefault = array( NS_SPECIAL
=> 0, 0 => 1, 1 => 0,
809 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
811 /** If set, a bold ugly notice will show up at the top of every page. */
819 /** dynamic server side image resizing ("Thumbnails") */
820 $wgUseImageResize = false;
823 * Resizing can be done using PHP's internal image libraries or using
824 * ImageMagick. The later supports more file formats than PHP, which only
825 * supports PNG, GIF, JPG, XBM and WBMP.
827 * Use Image Magick instead of PHP builtin functions.
829 $wgUseImageMagick = false;
830 /** The convert command shipped with ImageMagick */
831 $wgImageMagickConvertCommand = '/usr/bin/convert';
833 # Scalable Vector Graphics (SVG) may be uploaded as images.
834 # Since SVG support is not yet standard in browsers, it is
835 # necessary to rasterize SVGs to PNG as a fallback format.
837 # An external program is required to perform this conversion:
838 $wgSVGConverters = array(
839 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
840 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
841 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
842 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
844 /** Pick one of the above */
845 $wgSVGConverter = 'ImageMagick';
846 /** If not in the executable PATH, specify */
847 $wgSVGConverterPath = '';
849 /** @todo FIXME what does it do here ?? [ashar] */
850 if( !isset( $wgCommandLineMode ) ) {
851 $wgCommandLineMode = false;
856 # Recent changes settings
859 /** Show seconds in Recent Changes */
860 $wgRCSeconds = false;
862 /** Log IP addresses in the recentchanges table */
863 $wgPutIPinRC = false;
866 * Recentchanges items are periodically purged; entries older than this many
868 * For one week : 7 * 24 * 3600
870 $wgRCMaxAge = 7 * 24 * 3600;
874 # Copyright and credits settings
877 /** RDF metadata toggles */
878 $wgEnableDublinCoreRdf = false;
879 $wgEnableCreativeCommonsRdf = false;
881 /** Override for copyright metadata.
882 * TODO: these options need documentation
884 $wgRightsPage = NULL;
886 $wgRightsText = NULL;
887 $wgRightsIcon = NULL;
889 /** Set this to some HTML to override the rights icon with an arbitrary logo */
890 $wgCopyrightIcon = NULL;
892 /** Set this to true if you want detailed copyright information forms on Upload. */
893 $wgUseCopyrightUpload = false;
895 /** Set this to false if you want to disable checking that detailed copyright
896 * information values are not empty. */
897 $wgCheckCopyrightUpload = true;
900 * Set this to the number of authors that you want to be credited below an
901 * article text. Set it to zero to hide the attribution block, and a negative
902 * number (like -1) to show all authors. Note that this will# require 2-3 extra
903 * database hits, which can have a not insignificant impact on performance for
908 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
909 * Otherwise, link to a separate credits page. */
910 $wgShowCreditsIfMax = true;
915 * Set this to false to avoid forcing the first letter of links to capitals.
916 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
917 * appearing with a capital at the beginning of a sentence will *not* go to the
918 * same place as links in the middle of a sentence using a lowercase initial.
920 $wgCapitalLinks = true;
923 * List of interwiki prefixes for wikis we'll accept as sources for
924 * Special:Import (for sysops). Since complete page history# can be imported,
925 * these should be 'trusted'.
927 $wgImportSources = array();
931 /** Text matching this regular expression will be recognised as spam
932 * See http://en.wikipedia.org/wiki/Regular_expression */
933 $wgSpamRegex = false;
934 /** Similarly if this function returns true */
935 $wgFilterCallback = false;
937 /** Go button goes straight to the edit screen if the article doesn't exist. */
940 /** Allow limited user-specified HTML in wiki pages?
941 * It will be run through a whitelist for security. Set this to false if you
942 * want wiki pages to consist only of wiki markup. Note that replacements do not
943 * yet exist for all HTML constructs.*/
946 /** Allow raw, unchecked HTML in <html>...</html> sections.
947 * THIS IS VERY DANGEROUS on a publically editable site, so you can't enable it
948 * unless you've restricted editing to trusted users only with $wgWhitelistEdit.
953 * $wgUseTidy: use tidy to make sure HTML output is sane.
954 * This should only be enabled if $wgUserHtml is true.
955 * tidy is a free tool that fixes broken HTML.
956 * See http://www.w3.org/People/Raggett/tidy/
957 * $wgTidyBin should be set to the path of the binary and
958 * $wgTidyConf to the path of the configuration file.
959 * $wgTidyOpts can include any number of parameters.
963 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
966 /** See list of skins and their symbolic names in languagel/Language.php */
967 $wgDefaultSkin = 'monobook';
970 * Settings added to this array will override the language globals for the user
971 * preferences used by anonymous visitors and newly created accounts. (See names
972 * and sample values in languages/Language.php)
973 * For instance, to disable section editing links:
974 * $wgDefaultUserOptions ['editsection'] = 0;
977 $wgDefaultUserOptions = array();
979 /** Whether or not to allow and use real name fields. Defaults to true. */
980 $wgAllowRealName = true;
982 /** Use XML parser? */
983 $wgUseXMLparser = false ;
986 $wgSkinExtensionFunctions = array();
987 $wgExtensionFunctions = array();
990 * Allow user Javascript page?
991 * This enables a lot of neat customizations, but may
992 * increase security risk to users and server load.
994 $wgAllowUserJs = false;
997 * Allow user Cascading Style Sheets (CSS)?
998 * This enables a lot of neat customizations, but may
999 * increase security risk to users and server load.
1001 $wgAllowUserCss = false;
1003 /** Use the site's Javascript page? */
1004 $wgUseSiteJs = true;
1006 /** Use the site's Cascading Style Sheets (CSS)? */
1007 $wgUseSiteCss = true;
1009 /** Filter for Special:Randompage. Part of a WHERE clause */
1010 $wgExtraRandompageSQL = false;
1012 /** Allow the "info" action, very inefficient at the moment */
1013 $wgAllowPageInfo = false;
1015 /** Maximum indent level of toc. */
1016 $wgMaxTocLevel = 999;
1018 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1019 $wgUseExternalDiffEngine = false;
1021 /** Use RC Patrolling to check for vandalism */
1022 $wgUseRCPatrol = true;
1024 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1025 * eg Recentchanges, Newpages. */
1028 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1029 * A cached version will continue to be served out even if changes
1030 * are made, until this many seconds runs out since the last render. */
1031 $wgFeedCacheTimeout = 60;
1033 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1034 * pages larger than this size. */
1035 $wgFeedDiffCutoff = 32768;
1039 * Additional namespaces. If the namespaces defined in Language.php and
1040 * Namespace.php are insufficient,# you can create new ones here, for example,
1041 * to import Help files in other languages.
1042 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1043 * no longer be accessible. If you rename it, then you can access them through
1044 * the new namespace name.
1046 * Custom namespaces should start at 100 and stop at 255 (hard limit set by
1049 #$wgExtraNamespaces =
1050 # array(100 => "Hilfe",
1051 # 101 => "Hilfe_Diskussion",
1053 # 103 => "Discussion_Aide"
1055 $wgExtraNamespaces = NULL;
1058 * Enable SOAP interface. Off by default
1059 * SOAP is a protocoll for remote procedure calls (RPC) using http as
1060 * middleware. This interface can be used by bots or special clients to receive
1061 * articles from a wiki.
1062 * Most bots use the normal HTTP interface and don't use SOAP.
1063 * If unsure, set to false.
1065 $wgEnableSOAP = false;
1068 * Limit images on image description pages to a user-selectable limit. In order
1069 * to reduce disk usage, limits can only be selected from a list. This is the
1070 * list of settings the user can choose from:
1072 $wgImageLimits = array (
1078 array(10000,10000) );
1081 /** Navigation links for the user sidebar.
1082 * 'text' is the name of the MediaWiki message that contains the label of this link
1083 * 'href' is the name of the MediaWiki message that contains the link target of this link.
1084 * Link targets starting with http are considered remote links. Ones not starting with
1085 * http are considered as names of local wiki pages.
1087 $wgNavigationLinks = array (
1088 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
1089 array( 'text'=>'portal', 'href'=>'portal-url' ),
1090 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
1091 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
1092 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
1093 array( 'text'=>'help', 'href'=>'helppage' ),
1094 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
1098 * On category pages, show thumbnail gallery for images belonging to that
1099 * category instead of listing them as articles.
1101 $wgCategoryMagicGallery = true;
1104 * Browser Blacklist for unicode non compliant browsers
1105 * Contains a list of regexps : "/regexp/" matching problematic browsers
1107 $wgBrowserBlackList = array(
1108 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
1109 // FIXME: Add some accurate, true things here
1113 * Fake out the timezone that the server thinks it's in. This will be used for
1114 * date display and not for what's stored in the DB. Leave to null to retain
1115 * your server's OS-based timezone value. This is the same as the timezone.
1117 # $wgLocaltimezone = 'GMT';
1118 # $wgLocaltimezone = 'PST8PDT';
1119 # $wgLocaltimezone = 'Europe/Sweden';
1120 # $wgLocaltimezone = 'CET';
1121 $wgLocaltimezone = null;
1124 * User level management
1125 * The number is the database id of a group you want users to be attached by
1126 * default. A better interface should be coded [av]
1129 $wgLoggedInGroupId = 2;
1130 $wgSysopGroupId = 3;
1131 $wgBureaucratGroupId = 4;
1134 * When translating messages with wfMsg(), it is not always clear what should be
1135 * considered UI messages and what shoud be content messages.
1137 * For example, for regular wikipedia site like en, there should be only one
1138 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1139 * it as content of the site and call wfMsgForContent(), while for rendering the
1140 * text of the link, we call wfMsg(). The code in default behaves this way.
1141 * However, sites like common do offer different versions of 'mainpage' and the
1142 * like for different languages. This array provides a way to override the
1143 * default behavior. For example, to allow language specific mainpage and
1144 * community portal, set
1146 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1148 $wgForceUIMsgAsContentMsg = array();
1152 * Authentication plugin.
1157 * Global list of hooks.
1158 * Add a hook by doing:
1159 * $wgHooks['event_name'][] = $function;
1161 * $wgHooks['event_name'][] = array($function, $data);
1163 * $wgHooks['event_name'][] = array($object, 'method');
1168 * Experimental preview feature to fetch rendered text
1169 * over an XMLHttpRequest from JavaScript instead of
1170 * forcing a submit and reload of the whole page.
1171 * Leave disabled unless you're testing it.
1173 $wgLivePreview = false;
1176 * Disable the internal MySQL-based search, to allow it to be
1177 * implemented by an extension instead.
1179 $wgDisableInternalSearch = false;
1182 * Set this to a URL to forward search requests to some external location.
1183 * If the URL includes '$1', this will be replaced with the URL-encoded
1186 * For example, to forward to Google you'd have something like:
1187 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1188 * '&domains=http://example.com' .
1189 * '&sitesearch=http://example.com' .
1190 * '&ie=utf-8&oe=utf-8';
1192 $wgSearchForwardUrl = null;
1195 * If true, external URL links in wiki text will be given the
1196 * rel="nofollow" attribute as a hint to search engines that
1197 * they should not be followed for ranking purposes as they
1198 * are user-supplied and thus subject to spamming.
1200 $wgNoFollowLinks = true;
1203 * Specifies the minimal length of a user password. If set to
1204 * 0, empty passwords are allowed.
1206 $wgMinimalPasswordLength = 0;
1209 * Activate external editor interface for files and pages
1210 * See http://meta.wikimedia.org/wiki/Help:External_editors
1212 $wgUseExternalEditor = true;
1214 /** Whether or not to sort special pages in Special:Specialpages */
1216 $wgSortSpecialPages = true;
1219 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1221 $wgDisabledActions = array();
1224 * Use http.dnsbl.sorbs.net to check for open proxies
1226 $wgEnableSorbs = true;