f3b5b883b40b610adb39a99ecae88668b07ca9d4
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' ) ) {
19 * MediaWiki version number
20 * @global string $wgVersion
22 $wgVersion = '1.5pre-alpha';
26 * It must be changed in LocalSettings.php
27 * @global string $wgSitename
29 $wgSitename = 'MediaWiki';
32 * Will be same as you set @see $wgSitename
33 * @global mixed $wgMetaNamespace
35 $wgMetaNamespace = FALSE;
40 * It will be automaticly build including https mode
41 * @global string $wgServer
45 if( isset( $_SERVER['SERVER_NAME'] ) ) {
46 $wgServerName = $_SERVER['SERVER_NAME'];
47 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
48 $wgServerName = $_SERVER['HOSTNAME'];
50 # FIXME: Fall back on... something else?
51 $wgServerName = 'localhost';
54 # check if server use https:
55 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
57 $wgServer = $wgProto.'://' . $wgServerName;
58 if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
59 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
65 * The path we should point to.
66 * It might be a virtual path in case with use apache mod_rewrite for example
67 * @global string $wgScriptPath
69 $wgScriptPath = '/wiki';
72 * Whether to support URLs like index.php/Page_title
73 * @global bool $wgUsePathInfo
75 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
79 * Script users will request to get articles
80 * ATTN: Old installations used wiki.phtml and redirect.phtml -
81 * make sure that LocalSettings.php is correctly set!
85 * @global string $wgScript
87 $wgScript = "{$wgScriptPath}/index.php";
89 * @global string $wgRedirectScript
91 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
99 * style path as seen by users
100 * @global string $wgStylePath
102 $wgStylePath = "{$wgScriptPath}/skins";
104 * filesystem stylesheets directory
105 * @global string $wgStyleDirectory
107 $wgStyleDirectory = "{$IP}/skins";
108 $wgStyleSheetPath = &$wgStylePath;
109 $wgStyleSheetDirectory = &$wgStyleDirectory;
110 $wgArticlePath = "{$wgScript}?title=$1";
111 $wgUploadPath = "{$wgScriptPath}/upload";
112 $wgUploadDirectory = "{$IP}/upload";
113 $wgHashedUploadDirectory = true;
114 $wgLogo = "{$wgUploadPath}/wiki.png";
115 $wgMathPath = "{$wgUploadPath}/math";
116 $wgMathDirectory = "{$wgUploadDirectory}/math";
117 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
118 $wgUploadBaseUrl = "";
121 # If you operate multiple wikis, you can define a shared upload
122 # path here. Uploads to this wiki will NOT be put there - they
123 # will be put into $wgUploadDirectory.
125 # If $wgUseSharedUploads is set, the wiki will look in the
126 # shared repository if no file of the given name is found in
127 # the local repository (for [[Image:..]], [[Media:..]] links).
128 # Thumbnails will also be looked for and generated in this
131 $wgUseSharedUploads = false;
132 # Full path on the web server where shared uploads can be found
133 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
134 # Path on the file system where shared uploads can be found
135 $wgSharedUploadDirectory = "/var/www/wiki3/images";
136 # Set this to false especially if you have a set of files that need to be
137 # accessible by all wikis, and you do not want to use the hash (path/a/aa/)
139 $wgHashedSharedUploadDirectory = true;
140 # set true if the repository uses latin1 filenames
141 $wgSharedLatin1=false;
142 # Base URL for a repository wiki. Leave this blank if uploads are just
143 # stored in a shared directory and not meant to be accessible through
144 # a separate wiki. Otherwise the image description pages on the local
145 # wiki will link to the image description page on this wiki.
147 # Please specify the namespace, as in the example below.
148 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
153 * Site admin email address
154 * Default to wikiadmin@SERVER_NAME
155 * @global string $wgEmergencyContact
157 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
160 * Password reminder email address
161 * The address we should use as sender when a user is requesting his password
162 * Default to apache@SERVER_NAME
163 * @global string $wgPasswordSender
165 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
168 * dummy address which should be accepted during mail send action
169 * It might be necessay to adapt the address or to set it equal
170 * to the $wgEmergencyContact address
172 #$wgNoReplyAddress = $wgEmergencyContact;
173 $wgNoReplyAddress = 'reply@not.possible';
176 * Set to true to enable the e-mail basic features:
177 * Password reminders, etc. If sending e-mail on your
178 * server doesn't work, you might want to disable this.
179 * @global bool $wgEnableEmail
181 $wgEnableEmail = true;
184 * Set to true to enable user-to-user e-mail.
185 * This can potentially be abused, as it's hard to track.
186 * @global bool $wgEnableUserEmail
188 $wgEnableUserEmail = true;
192 * For using a direct (authenticated) SMTP server connection.
193 * Default to false or fill an array :
195 * "host" => 'SMTP domain',
196 * "IDHost" => 'domain for MessageID',
198 * "auth" => true/false,
199 * "username" => user,
200 * "password" => password
203 * @global mixed $wgSMTP
211 /** database host name or ip address */
212 $wgDBserver = 'localhost';
213 /** name of the database */
214 $wgDBname = 'wikidb';
216 $wgDBconnection = '';
217 /** Database username */
218 $wgDBuser = 'wikiuser';
220 * "mysql" for working code and "PostgreSQL" for development/broken code
224 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
225 * based search engine
227 $wgSearchType = "MyISAM";
228 /** Table name prefix */
231 * on some databases this allows separate
232 * logical namespace for application data
234 $wgDBschema = 'mediawiki';
239 # Shared database for multiple wikis.
240 # Presently used for storing a user table for single sign-on
241 # The server for this database must be the same as for the main
246 # Database load balancer
247 # This is a two-dimensional array, an array of server info structures
250 # dbname: Default database name
252 # password: DB password
253 # type: "mysql" or "pgsql"
254 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
256 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
257 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
258 # DBO_TRX -- wrap entire request in a transaction
259 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
260 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
262 # Leave at false to use the single-server variables above
263 $wgDBservers = false;
265 # How long to wait for a slave to catch up to the master
266 $wgMasterWaitTimeout = 10;
269 # The sql user shouldn't have too many rights other the database, restrict
270 # it to SELECT only on 'cur' table for example
272 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
273 $wgDBsqluser = 'sqluser';
274 $wgDBsqlpassword = 'sqlpass';
275 $wgDBpassword = 'userpass';
276 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
277 $wgDBerrorLog = false; # File to log MySQL errors to
280 # MySQL 3.x : used to discard words that MySQL will not return any results for
281 # shorter values configure mysql directly
282 # MySQL 4.x : ignore it and configure mySQL
283 # See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
285 $wgDBtransactions = false; # Set to true if using InnoDB tables
286 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
289 $wgBufferSQLResults = true; # use buffered queries by default
291 # Other wikis on this site, can be administered from a single developer account
292 # Array, interwiki prefix => database name
293 $wgLocalDatabases = array();
297 # See docs/memcached.doc
299 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
300 $wgUseMemCached = false;
301 $wgMemCachedServers = array( '127.0.0.1:11000' );
302 $wgMemCachedDebug = false;
303 $wgSessionsInMemcached = false;
304 $wgLinkCacheMemcached = false; # Not fully tested
307 * Turck MMCache shared memory
308 * You can use this for persistent caching where your wiki runs on a single
309 * server. Enabled by default if Turck is installed. Mutually exclusive with
310 * memcached, memcached is used if both are specified.
312 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
314 $wgUseTurckShm = false;
321 * Default to 'en'. Should be one of ./language/Language(.*).php
322 * @global string $wgLanguageCode
324 $wgLanguageCode = 'en';
327 * Filename of a language file generated by dumpMessages.php
328 * @global string|false $wgLanguageFile (default:false)
330 $wgLanguageFile = false;
332 * Treat language links as magic connectors, not inline links
333 * @global bool $wgInterwikiMagic (default:true)
335 $wgInterwikiMagic = true;
336 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
337 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
338 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
339 $wgEditEncoding = '';
341 # Set this to eg 'ISO-8859-1' to perform character set
342 # conversion when loading old revisions not marked with
343 # "utf-8" flag. Use this when converting wiki to UTF-8
344 # without the burdensome mass conversion of old text data.
346 # NOTE! This DOES NOT touch any fields other than old_text.
347 # Titles, comments, user names, etc still must be converted
348 # en masse in the database before continuing as a UTF-8 wiki.
349 $wgLegacyEncoding = false;
351 $wgMimeType = 'text/html';
352 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
353 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
354 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
355 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
356 $wgAmericanDates = false; # Enable for English module to print dates
357 # as eg 'May 12' instead of '12 May'
358 $wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
359 # of Western style (0-9) numerals in interface.
362 # Translation using MediaWiki: namespace
363 # This will increase load times by 25-60% unless memcached is installed
364 # Interface messages will be get from the database.
365 $wgUseDatabaseMessages = true;
366 $wgMsgCacheExpiry = 86400;
367 $wgPartialMessageCache = false;
369 # Whether to enable language variant conversion. Currently only zh
370 # supports this function, to convert between Traditional and Simplified
371 # Chinese. This flag is meant to isolate the (untested) conversion
372 # code, so that if it breaks, only zh will be affected
373 $wgDisableLangConversion = false;
375 # Whether to use zhdaemon to perform Chinese text processing
376 # zhdaemon is under developement, so normally you don't want to
377 # use it unless for testing
378 $wgUseZhdaemon = false;
379 $wgZhdaemonHost="localhost";
380 $wgZhdaemonPort=2004;
382 # Miscellaneous configuration settings
385 $wgLocalInterwiki = 'w';
386 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
388 $wgShowIPinHeader = true; # For non-logged in users
389 $wgMaxNameChars = 32; # Maximum number of bytes in username
391 $wgExtraSubtitle = '';
392 $wgSiteSupportPage = ''; # A page where you users can receive donations
394 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
397 # The debug log file should be not be publicly accessible if it is
398 # used, as it may contain private data.
399 $wgDebugLogFile = '';
404 $wgDebugRedirects = false;
405 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
407 $wgDebugComments = false;
409 $wgLogQueries = false;
410 $wgDebugDumpSql = false;
412 # Whether to disable automatic generation of "we're sorry,
413 # but there has been a database error" pages.
414 $wgIgnoreSQLErrors = false;
416 # Should [[Category:Dog]] on a page associate it with the
417 # category "Dog"? (a link to that category page will be
418 # added to the article, clicking it reveals a list of
419 # all articles in the category)
420 $wgUseCategoryMagic = true;
422 # disable experimental dmoz-like category browsing. Output things like:
423 # Encyclopedia > Music > Style of Music > Jazz
424 $wgUseCategoryBrowser = false;
426 $wgEnablePersistentLC = false; # Obsolete, do not use
427 $wgCompressedPersistentLC = true; # use gzcompressed blobs
428 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
431 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
432 * to speed up output of the same page viewed by another user with the
435 * This can provide a significant speedup for medium to large pages,
436 * so you probably want to keep it on.
438 $wgEnableParserCache = true;
442 # wgHitcounterUpdateFreq sets how often page counters should be
443 # updated, higher values are easier on the database. A value of 1
444 # causes the counters to be updated on every hit, any higher value n
445 # cause them to update *on average* every n hits. Should be set to
446 # either 1 or something largish, eg 1000, for maximum efficiency.
448 $wgHitcounterUpdateFreq = 1;
451 # It's not 100% safe, there could be security hole using that one. Use at your
454 $wgWhitelistEdit = false; # true = user must login to edit.
455 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
456 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
458 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
460 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
461 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
462 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
463 # strtotime format, or "infinite" for an infinite block
464 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
466 # Proxy scanner settings
467 # If you enable this, every editor's IP address will be scanned for open
470 # Don't enable this. Many sysops will report "hostile TCP port scans" to
471 # your ISP and ask for your server to be shut down.
473 # You have been warned.
475 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
476 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
477 $wgProxyScriptPath = "$IP/proxy_check.php";
478 $wgProxyMemcExpiry = 86400;
479 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
480 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
482 # Number of accounts each IP address may create, 0 to disable.
484 $wgAccountCreationThrottle = 0;
487 # Client-side caching:
488 $wgCachePages = true; # Allow client-side caching of pages
490 # Set this to current time to invalidate all prior cached pages.
491 # Affects both client- and server-side caching.
492 $wgCacheEpoch = '20030516000000';
495 # Server-side caching:
496 # This will cache static pages for non-logged-in users
497 # to reduce database traffic on public sites.
498 # Must set $wgShowIPinHeader = false
499 $wgUseFileCache = false;
500 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
502 # When using the file cache, we can store the cached HTML gzipped to save disk
503 # space. Pages will then also be served compressed to clients that support it.
504 # THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
505 # the default LocalSettings.php! If you enable this, remove that setting first.
507 # Requires zlib support enabled in PHP.
510 /* T. Gries Aug.-Nov.2004
512 THESE ARE MY SUGGESTED FIRST TEST global admin options FOR ENOTIF.
513 Attention: the defaults might differ from standard media wiki distributions.
515 However, I suggest to start with these which allow to evaluate almost all new features quickly.
516 user preferences default options SEE AS USUAL /languages/Language.php
519 ########################### CAUTION ################# ATTENTION ###############################################
521 # T. Gries Aug.-Dec. 2004
523 # SECTION FOR DEVELOPERS and SERVER ADMINS
525 # HERE COME TWO OPTIONS, WHICH ALLOW ACOUSTIC SIGNALS on the server beeper WHEN AN EMAIL IS ACTUALLY SENT OUT.
526 # YOU MIGHT WISH TO ENABLE THESE, BUT BE CAREFUL, AS A system() CALL IS PERFORMED using the shown parameters.
527 # I FIND IT VERY USEFUL, but this is a very personal comment. T. Gries
529 # The system speaker beeps when the wiki actually sends out a notification mail (safe default = disabled).
531 # The following string is passed as parameter to a system() call in UserMailer.php
532 # The system() calls call - in the shown example - the beep 1.2.2 program (LINUX) with frequency f [Hz] and length l [msec]
534 # Beep 1.2.2 can be found on http://freshmeat.net/projects/beep/ and I like it.
536 ########################### SAFE #################### SAFE #####################################################
537 $wgEmailNotificationSystembeep = ''; # empty string disables this feature; this appears to be safe
538 ######ENTER#AT#YOUR#OWN#RISK###CAUTION###### ATTENTION ###################################################
539 #$wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &'; # a system() call with exactly this string as parameter is executed when such a mail is sent
540 ########################### CAUTION ################# ATTENTION ###############################################
542 # For email notification on page changes T.Gries/M.Arndt 01.11.2004
543 $wgPasswordSender = $wgEmergencyContact;
544 $wgEmailNotificationMailsSentFromPageEditor = false; # false: Enotif mails appear to come from $wgEmergencyContact
545 # # true: from PageEditor if s/he opted-in
547 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
548 # If set to false, the corresponding input form on the user preference page is suppressed
549 # It call this to be a "user-preferences-option (UPO)"
550 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
551 $wgEmailNotificationForWatchlistPages = false; # UPO
552 $wgEmailNotificationForUserTalkPages = false; # UPO
553 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
554 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
555 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
557 # Show watching users in recent changes, watchlist and page history views
558 $wgRCShowWatchingUsers = false; # UPO
559 # Show watching users in Page views
560 $wgPageShowWatchingUsers = false;
561 # Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages with new changes
562 $wgShowUpdatedMarker = true; # UPO
564 $wgCookieExpiration = 2592000;
566 # Squid-related settings
569 # Enable/disable Squid
572 # If you run Squid3 with ESI support, enable this (default:false):
575 # Internal server name as known to Squid, if different
576 # $wgInternalServer = 'http://yourinternal.tld:8000';
577 $wgInternalServer = $wgServer;
579 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
580 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
581 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
582 $wgSquidMaxage = 18000;
584 # A list of proxy servers (ips if possible) to purge on changes
585 # don't specify ports here (80 is default)
586 # $wgSquidServers = array('127.0.0.1');
587 $wgSquidServersNoPurge = array();
589 # Maximum number of titles to purge in any one client operation
590 $wgMaxSquidPurgeTitles = 400;
594 # Set to set an explicit domain on the login cookies
595 # eg, "justthis.domain.org" or ".any.subdomain.net"
596 $wgCookieDomain = '';
598 $wgDisableCookieCheck = false;
600 # Whether to allow inline image pointing to other websites
601 $wgAllowExternalImages = true;
603 $wgMiserMode = false; # Disable database-intensive features
604 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
605 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
606 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
608 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
609 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
610 # convert (ImageMagick) installed and available in the PATH.
611 # Please see math/README for more information.
613 $wgTexvc = './math/texvc'; # Location of the texvc binary
615 # Profiling / debugging
616 $wgProfiling = false; # Enable for more detailed by-function times in debug log
617 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
618 $wgProfileOnly = false; # Don't put non-profiling info into log file
619 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
620 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
621 $wgProfileCallTree = false; # If true, print a raw call tree instead of per-function report
623 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
624 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
625 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
627 $wgDisableCounters = false;
628 $wgDisableTextSearch = false;
629 $wgDisableSearchUpdate = false; # If you've disabled search semi-permanently, this also disables updates to the table. If you ever re-enable, be sure to rebuild the search table.
630 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
631 $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work.
632 $wgDisableAnonTalk = false;
634 # Path to the GNU diff3 utility. If the file doesn't exist,
635 # edit conflicts will fall back to the old behaviour (no merging).
636 $wgDiff3 = '/usr/bin/diff3';
639 # We can also compress text in the old revisions table. If this is set on,
640 # old revisions will be compressed on page save if zlib support is available.
641 # Any compressed revisions will be decompressed on load regardless of this
642 # setting *but will not be readable at all* if zlib support is not available.
643 $wgCompressRevisions = false;
645 # This is the list of preferred extensions for uploading files. Uploading
646 # files with extensions not in this list will trigger a warning.
647 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
649 # Files with these extensions will never be allowed as uploads.
650 $wgFileBlacklist = array(
651 # HTML may contain cookie-stealing JavaScript and web bugs
653 # PHP scripts may execute arbitrary code on the server
654 'php', 'phtml', 'php3', 'php4', 'phps',
655 # Other types that may be interpreted by some servers
656 'shtml', 'jhtml', 'pl', 'py', 'cgi',
657 # May contain harmful executables for Windows victims
658 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
660 # This is a flag to determine whether or not to check file extensions on
662 $wgCheckFileExtensions = true;
664 # If this is turned off, users may override the warning for files not
665 # covered by $wgFileExtensions.
666 $wgStrictFileExtensions = true;
668 # Warn if uploaded files are larger than this
669 $wgUploadSizeWarning = 150000;
671 $wgPasswordSalt = true; # For compatibility with old installations set to false
673 # Which namespaces should support subpages?
674 # See Language.php for a list of namespaces.
676 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
677 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
679 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
680 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
682 # If set, a bold ugly notice will show up at the top of every page.
685 ## Set $wgUseImageResize to true if you want to enable dynamic
686 ## server side image resizing ("Thumbnails")
688 $wgUseImageResize = false;
690 ## Resizing can be done using PHP's internal image libraries
691 ## or using ImageMagick. The later supports more file formats
692 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
694 ## Set $wgUseImageMagick to true to use Image Magick instead
695 ## of the builtin functions
697 $wgUseImageMagick = false;
698 $wgImageMagickConvertCommand = '/usr/bin/convert';
700 # Scalable Vector Graphics (SVG) may be uploaded as images.
701 # Since SVG support is not yet standard in browsers, it is
702 # necessary to rasterize SVGs to PNG as a fallback format.
704 # An external program is required to perform this conversion:
705 $wgSVGConverters = array(
706 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
707 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
708 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
709 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
711 $wgSVGConverter = 'ImageMagick'; # Pick one of the above
712 $wgSVGConverterPath = ''; # If not in the executable PATH, specify
714 if( !isset( $wgCommandLineMode ) ) {
715 $wgCommandLineMode = false;
718 # Show seconds in Recent Changes
719 $wgRCSeconds = false;
721 # Log IP addresses in the recentchanges table
722 $wgPutIPinRC = false;
724 # Recentchanges items are periodically purged;
725 # entries older than this many seconds will go.
726 $wgRCMaxAge = 7 * 24 * 3600; # our one week cutoff
728 # RDF metadata toggles
729 $wgEnableDublinCoreRdf = false;
730 $wgEnableCreativeCommonsRdf = false;
732 # Override for copyright metadata.
733 # TODO: these options need documentation
734 $wgRightsPage = NULL;
736 $wgRightsText = NULL;
737 $wgRightsIcon = NULL;
739 # Set this to some HTML to override the rights icon with an arbitrary logo
740 $wgCopyrightIcon = NULL;
742 # Set this to true if you want detailed copyright information forms on Upload.
743 $wgUseCopyrightUpload = false;
745 # Set this to false if you want to disable checking that detailed
746 # copyright information values are not empty.
747 $wgCheckCopyrightUpload = true;
750 # Set this to false to avoid forcing the first letter of links
751 # to capitals. WARNING: may break links! This makes links
752 # COMPLETELY case-sensitive. Links appearing with a capital at
753 # the beginning of a sentence will *not* go to the same place
754 # as links in the middle of a sentence using a lowercase initial.
755 $wgCapitalLinks = true;
757 # List of interwiki prefixes for wikis we'll accept as sources
758 # for Special:Import (for sysops). Since complete page history
759 # can be imported, these should be 'trusted'.
760 $wgImportSources = array();
762 # Set this to the number of authors that you want to be credited below an
763 # article text. Set it to zero to hide the attribution block, and a
764 # negative number (like -1) to show all authors. Note that this will
765 # require 2-3 extra database hits, which can have a not insignificant
766 # impact on performance for large wikis.
769 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
770 # Otherwise, link to a separate credits page.
771 $wgShowCreditsIfMax = true;
773 # Text matching this regular expression will be recognised as spam
774 # See http://en.wikipedia.org/wiki/Regular_expression
775 $wgSpamRegex = false;
776 # Similarly if this function returns true
777 $wgFilterCallback = false;
779 # Go button goes straight to the edit screen if the article doesn't exist
782 # Allow limited user-specified HTML in wiki pages?
783 # It will be run through a whitelist for security.
784 # Set this to false if you want wiki pages to consist only of wiki
785 # markup. Note that replacements do not yet exist for all HTML
789 # Allow raw, unchecked HTML in <html>...</html> sections.
790 # THIS IS VERY DANGEROUS on a publically editable site, so
791 # you can't enable it unless you've restricted editing to
792 # trusted users only with $wgWhitelistEdit.
795 # $wgUseTidy: use tidy to make sure HTML output is sane.
796 # This should only be enabled if $wgUserHtml is true.
797 # tidy is a free tool that fixes broken HTML.
798 # See http://www.w3.org/People/Raggett/tidy/
799 # $wgTidyBin should be set to the path of the binary and
800 # $wgTidyConf to the path of the configuration file.
801 # $wgTidyOpts can include any number of parameters.
804 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
807 # See list of skins and their symbolic names in languagel/Language.php
808 $wgDefaultSkin = 'monobook';
810 # Settings added to this array will override the language globals for
811 # the user preferences used by anonymous visitors and newly created
812 # accounts. (See names and sample values in languages/Language.php)
814 # For instance, to disable section editing links:
815 # $wgDefaultUserOptions['editsection'] = 0;
817 $wgDefaultUserOptions = array();
819 # Whether or not to allow real name fields. Defaults to true.
820 # If set to false, the corresponding input forms on the log-in page and on the user preference page is suppressed.
821 $wgAllowRealName = true;
824 $wgUseXMLparser = false ;
827 $wgSkinExtensionFunctions = array();
828 $wgExtensionFunctions = array();
830 # Allow user Javascript page?
831 $wgAllowUserJs = true;
833 # Allow user Cascading Style Sheets (CSS)?
834 $wgAllowUserCss = true;
836 # Use the site's Javascript page?
839 # Use the site's Cascading Style Sheets (CSS)?
840 $wgUseSiteCss = true;
842 # Filter for Special:Randompage. Part of a WHERE clause
843 $wgExtraRandompageSQL = false;
845 # Allow the "info" action, very inefficient at the moment
846 $wgAllowPageInfo = false;
848 # Maximum indent level of toc.
849 $wgMaxTocLevel = 999;
851 # Recognise longitude/latitude coordinates
852 $wgUseGeoMode = false;
854 # Validation for print or other production versions
855 $wgUseValidation = false;
857 # Use external C++ diff engine (module wikidiff from the
858 # extensions package)
859 $wgUseExternalDiffEngine = false;
861 # Use RC Patrolling to check for vandalism
862 $wgUseRCPatrol = true;
864 # Set maximum number of results to return in syndication feeds
865 # (RSS, Atom) for eg Recentchanges, Newpages.
868 # _Minimum_ timeout for cached Recentchanges feed, in seconds.
869 # A cached version will continue to be served out even if changes
870 # are made, until this many seconds runs out since the last render.
871 $wgFeedCacheTimeout = 60;
873 # When generating Recentchanges RSS/Atom feed, diffs will not be
874 # generated for pages larger than this size.
875 $wgFeedDiffCutoff = 32768;
878 # Additional namespaces. If the namespaces defined in Language.php and Namespace.php are insufficient,
879 # you can create new ones here, for example, to import Help files in other languages.
880 # PLEASE NOTE: Once you delete a namespace, the pages in that namespace will no longer be accessible.
881 # If you rename it, then you can access them through the new namespace name.
883 # Custom namespaces should start at 100 and stop at 255 (hard limit set by database)
884 #$wgExtraNamespaces =
885 # array(100 => "Hilfe",
886 # 101 => "Hilfe_Diskussion",
888 # 103 => "Discussion_Aide"
890 $wgExtraNamespaces = NULL;
892 # Enable SOAP interface. Off by default
893 # SOAP is a protocoll for remote procedure calls (RPC) using http as middleware.
894 # This interface can be used by bots or special clients to receive articles from
896 # Most bots use the normal HTTP interface and don't use SOAP.
897 # If unsure, set to false.
898 $wgEnableSOAP = false;
900 # Limit images on image description pages to a user-selectable limit. In order to
901 # reduce disk usage, limits can only be selected from a list. This is the list of
902 # settings the user can choose from:
903 $wgImageLimits = array (
909 array(10000,10000) );
912 /** Navigation links for the user sidebar.
913 * 'text' is the name of the MediaWiki message that contains the label of this link
914 * 'href' is the name of the MediaWiki message that contains the link target of this link.
915 * Link targets starting with http are considered remote links. Ones not starting with
916 * http are considered as names of local wiki pages.
918 $wgNavigationLinks = array (
919 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
920 array( 'text'=>'portal', 'href'=>'portal-url' ),
921 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
922 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
923 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
924 array( 'text'=>'help', 'href'=>'helppage' ),
925 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
928 # On category pages, show thumbnail gallery for images belonging to that category
929 # instead of listing them as articles.
930 $wgCategoryMagicGallery = true;
932 # Browser Blacklist for unicode non compliant browsers
933 # Contains a list of regexps : "/regexp/" matching problematic browsers
934 $wgBrowserBlackList = array(
935 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
936 // FIXME: Add some accurate, true things here
939 # Fake out the timezone that the server thinks it's in. This will be used
940 # for date display and not for what's stored in the DB.
941 # Leave to null to retain your server's OS-based timezone value
942 # This is the same as the timezone
943 # $wgLocaltimezone = 'GMT';
944 # $wgLocaltimezone = 'PST8PDT';
945 # $wgLocaltimezone = 'Europe/Sweden';
946 # $wgLocaltimezone = 'CET';
947 $wgLocaltimezone = null;
949 # User level management
950 # The number is the database id of a group you want users to be attached by
951 # default. A better interface should be coded [av]
953 $wgLoggedInGroupId = 2;
955 $wgBureaucratGroupId = 4;
958 When translating messages with wfMsg(), it is not always clear what should
959 be considered UI messages and what shoud be content messages.
961 For example, for regular wikipedia site like en, there should be only one
962 'mainpage', therefore when getting the link of 'mainpage', we should
963 treate it as content of the site and call wfMsgForContent(), while for
964 rendering the text of the link, we call wfMsg(). The code in default
965 behaves this way. However, sites like common do offer different versions
966 of 'mainpage' and the like for different languages. This array provides a
967 way to override the default behavior. For example, to allow language specific
968 mainpage and community portal, set
970 $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
973 $wgForceUIMsgAsContentMsg = array();
977 * Authentication plugin.
982 * Global list of hooks.
983 * Add a hook by doing:
984 * $wgHooks['event_name'][] = $function;
986 * $wgHooks['event_name'][] = array($function, $data);
988 * $wgHooks['event_name'][] = array($object, 'method');
994 * Experimental preview feature to fetch rendered text
995 * over an XMLHttpRequest from JavaScript instead of
996 * forcing a submit and reload of the whole page.
997 * Leave disabled unless you're testing it.
999 $wgLivePreview = false;
1002 * Disable the internal MySQL-based search, to allow it to be
1003 * implemented by an extension instead.
1005 $wgDisableInternalSearch = false;
1008 * Set this to a URL to forward search requests to some external location.
1009 * If the URL includes '$1', this will be replaced with the URL-encoded
1012 * For example, to forward to Google you'd have something like:
1013 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1014 * '&domains=http://example.com' .
1015 * '&sitesearch=http://example.com' .
1016 * '&ie=utf-8&oe=utf-8';
1018 $wgSearchForwardUrl = null;