1a13e824443e729f1f76fd0d7773e4b2f0bfdd84
2 # 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
16 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
17 if( defined( 'MEDIAWIKI' ) ) {
20 * MediaWiki version number
21 * @global string $wgVersion
23 $wgVersion = '1.4-prealpha';
27 * It must be changed in LocalSettings.php
28 * @global string $wgSiteName
30 $wgSitename = 'MediaWiki';
33 * Will be same as you set $wgSitename
34 * @global mixed $wgMetaNamespace
36 $wgMetaNamespace = FALSE;
41 * It will be automaticly build including https mode
42 * @global string $wgServer
44 # check if server use https:
45 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
47 if ( @$wgCommandLineMode ) {
48 $wgServer = $wgProto.'://localhost';
50 $wgServer = $wgProto.'://' . $_SERVER['SERVER_NAME'];
51 if( $_SERVER['SERVER_PORT'] != 80 ) $wgServer .= ":" . $_SERVER['SERVER_PORT'];
57 * The path we should point to.
58 * It might be a virtual path in case with use apache mod_rewrite for example
59 * @global string $wgScriptPath
61 $wgScriptPath = '/wiki';
64 * Whether to support URLs like index.php/Page_title
65 * @global bool $wgUsePathInfo
67 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
71 * Script users will request to get articles
72 * ATTN: Old installations used wiki.phtml and redirect.phtml -
73 * make sure that LocalSettings.php is correctly set!
77 * @global string $wgScript
79 $wgScript = "{$wgScriptPath}/index.php";
81 * @global string $wgRedirectScript
83 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
91 * style path as seen by users
92 * @global string $wgStylePath
94 $wgStylePath = "{$wgScriptPath}/style";
96 * filesystem stylesheets directory
97 * @global string $wgStyleDirectory
99 $wgStyleDirectory = "{$IP}/style";
100 $wgStyleSheetPath = &$wgStylePath;
101 $wgStyleSheetDirectory = &$wgStyleDirectory;
102 $wgArticlePath = "{$wgScript}?title=$1";
103 $wgUploadPath = "{$wgScriptPath}/upload";
104 $wgUploadDirectory = "{$IP}/upload";
105 $wgLogo = "{$wgUploadPath}/wiki.png";
106 $wgMathPath = "{$wgUploadPath}/math";
107 $wgMathDirectory = "{$wgUploadDirectory}/math";
108 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
115 * Site admin email address
116 * Default to wikiadmin@SERVER_NAME
117 * @global string $wgEmergencyContact
119 $wgEmergencyContact = 'wikiadmin@' . getenv( 'SERVER_NAME' );
121 * Password reminder email address
122 * The address we should use as sender when a user is requesting his password
123 * Default to apache@SERVER_NAME
124 * @global string $wgPasswordSender
126 $wgPasswordSender = 'Wikipedia Mail <apache@' . getenv( 'SERVER_NAME' ) . '>';
131 * For using a direct (authenticated) SMTP server connection.
132 * Default to false or fill an array :
134 * "host" => 'SMTP domain',
135 * "IDHost" => 'domain for MessageID',
137 * "auth" => true/false,
138 * "username" => user,
139 * "password" => password
142 * @global mixed $wgSMTP
150 /** database host name or ip address */
151 $wgDBserver = 'localhost';
152 /** name of the database */
153 $wgDBname = 'wikidb';
155 $wgDBconnection = '';
156 /** Database username */
157 $wgDBuser = 'wikiuser';
159 * "mysql" for working code and "PostgreSQL" for development/broken code
162 /** Table name prefix */
166 # Shared database for multiple wikis.
167 # Presently used for storing a user table for single sign-on
168 # The server for this database must be the same as for the main
173 # Database load balancer
174 # This is a two-dimensional array, an array of server info structures
177 # dbname: Default database name
179 # password: DB password
180 # type: "mysql" or "pgsql"
181 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
183 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
184 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
185 # DBO_TRX -- wrap entire request in a transaction
186 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
187 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
189 # Leave at false to use the single-server variables above
190 $wgDBservers = false;
193 # The sql user shouldn't have too many rights other the database, restrict
194 # it to SELECT only on 'cur' table for example
196 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
197 $wgDBsqluser = 'sqluser';
198 $wgDBsqlpassword = 'sqlpass';
199 $wgDBpassword = 'userpass';
200 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
201 $wgDBerrorLog = false; # File to log MySQL errors to
204 # MySQL 3.x : used to discard words that MySQL will not return any results for
205 # shorter values configure mysql directly
206 # MySQL 4.x : ignore it and configure mySQL
207 # See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
209 $wgDBtransactions = false; # Set to true if using InnoDB tables
210 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
213 $wgBufferSQLResults = true; # use buffered queries by default
215 # Other wikis on this site, can be administered from a single developer account
216 # Array, interwiki prefix => database name
217 $wgLocalDatabases = array();
221 # See docs/memcached.doc
223 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
224 $wgUseMemCached = false;
225 $wgMemCachedServers = array( '127.0.0.1:11000' );
226 $wgMemCachedDebug = false;
227 $wgSessionsInMemcached = false;
228 $wgLinkCacheMemcached = false; # Not fully tested
230 # Turck MMCache shared memory
231 # You can use this for persistent caching where your wiki runs on a small number of
232 # servers. Mutually exclusive with memcached. MMCache must be installed.
233 $wgUseTurckShm = false;
238 $wgLanguageCode = 'en';
239 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php
240 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
241 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
242 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
243 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
244 $wgEditEncoding = '';
245 $wgMimeType = 'text/html';
246 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
247 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
248 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
249 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
250 $wgAmericanDates = false; # Enable for English module to print dates
251 # as eg 'May 12' instead of '12 May'
252 $wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
253 # of Western style (0-9) numerals in interface.
256 # Translation using MediaWiki: namespace
257 # This will increase load times by 25-60% unless memcached is installed
258 # Interface messages will be get from the database.
259 $wgUseDatabaseMessages = true;
260 $wgMsgCacheExpiry = 86400;
263 # Miscellaneous configuration settings
266 $wgLocalInterwiki = 'w';
267 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
269 $wgShowIPinHeader = true; # For non-logged in users
270 $wgMaxNameChars = 32; # Maximum number of bytes in username
272 $wgExtraSubtitle = '';
273 $wgSiteSupportPage = ''; # A page where you users can receive donations
275 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
277 # The debug log file should be not be publicly accessible if it is
278 # used, as it may contain private data.
279 $wgDebugLogFile = '';
280 $wgDebugRedirects = false;
281 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
283 $wgDebugComments = false;
285 $wgLogQueries = false;
286 $wgDebugDumpSql = false;
288 # Whether to disable automatic generation of "we're sorry,
289 # but there has been a database error" pages.
290 $wgIgnoreSQLErrors = false;
292 # Should [[Category:Dog]] on a page associate it with the
293 # category "Dog"? (a link to that category page will be
294 # added to the article, clicking it reveals a list of
295 # all articles in the category)
296 $wgUseCategoryMagic = true;
298 # disable experimental dmoz-like category browsing. Output things like:
299 # Encyclopedia > Music > Style of Music > Jazz
301 $wgUseCategoryBrowser = false;
303 $wgEnablePersistentLC = false; # Obsolete, do not use
304 $wgCompressedPersistentLC = true; # use gzcompressed blobs
305 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
307 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
309 # wgHitcounterUpdateFreq sets how often page counters should be
310 # updated, higher values are easier on the database. A value of 1
311 # causes the counters to be updated on every hit, any higher value n
312 # cause them to update *on average* every n hits. Should be set to
313 # either 1 or something largish, eg 1000, for maximum efficiency.
315 $wgHitcounterUpdateFreq = 1;
318 # It's not 100% safe, there could be security hole using that one. Use at your
321 $wgWhitelistEdit = false; # true = user must login to edit.
322 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
323 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
325 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
327 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
328 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
329 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
330 # strtotime format, or "infinite" for an infinite block
331 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
333 # Proxy scanner settings
335 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
336 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
337 $wgProxyScriptPath = "$IP/proxy_check.php";
338 $wgProxyMemcExpiry = 86400;
339 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
340 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
342 # Number of accounts each IP address may create, 0 to disable.
344 $wgAccountCreationThrottle = 0;
347 # Client-side caching:
348 $wgCachePages = true; # Allow client-side caching of pages
350 # Set this to current time to invalidate all prior cached pages.
351 # Affects both client- and server-side caching.
352 $wgCacheEpoch = '20030516000000';
355 # Server-side caching:
356 # This will cache static pages for non-logged-in users
357 # to reduce database traffic on public sites.
358 # Must set $wgShowIPinHeader = false
359 $wgUseFileCache = false;
360 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
362 # When using the file cache, we can store the cached HTML gzipped to save disk
363 # space. Pages will then also be served compressed to clients that support it.
364 # THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
365 # the default LocalSettings.php! If you enable this, remove that setting first.
367 # Requires zlib support enabled in PHP.
371 $wgCookieExpiration = 2592000;
374 # Squid-related settings
377 # Enable/disable Squid
380 # If you run Squid3 with ESI support, enable this (default:false):
383 # Internal server name as known to Squid, if different
384 # $wgInternalServer = 'http://yourinternal.tld:8000';
385 $wgInternalServer = $wgServer;
387 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
388 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
389 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
390 $wgSquidMaxage = 18000;
392 # A list of proxy servers (ips if possible) to purge on changes
393 # don't specify ports here (80 is default)
394 # $wgSquidServers = array('127.0.0.1');
396 # Maximum number of titles to purge in any one client operation
397 $wgMaxSquidPurgeTitles = 400;
401 # Set to set an explicit domain on the login cookies
402 # eg, "justthis.domain.org" or ".any.subdomain.net"
403 $wgCookieDomain = '';
405 $wgDisableCookieCheck = false;
407 # Whether to allow inline image pointing to other websites
408 $wgAllowExternalImages = true;
410 $wgMiserMode = false; # Disable database-intensive features
411 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
412 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
413 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
415 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
416 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
417 # convert (ImageMagick) installed and available in the PATH.
418 # Please see math/README for more information.
420 $wgTexvc = './math/texvc'; # Location of the texvc binary
422 # Profiling / debugging
423 $wgProfiling = false; # Enable for more detailed by-function times in debug log
424 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
425 $wgProfileOnly = false; # Don't put non-profiling info into log file
426 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
427 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
428 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
429 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
430 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
432 $wgDisableCounters = false;
433 $wgDisableTextSearch = false;
434 $wgDisableFuzzySearch = false;
435 $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.
436 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
437 $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.
438 $wgDisableAnonTalk = false;
440 # Path to the GNU diff3 utility. If the file doesn't exist,
441 # edit conflicts will fall back to the old behaviour (no merging).
442 $wgDiff3 = '/usr/bin/diff3';
445 # We can also compress text in the old revisions table. If this is set on,
446 # old revisions will be compressed on page save if zlib support is available.
447 # Any compressed revisions will be decompressed on load regardless of this
448 # setting *but will not be readable at all* if zlib support is not available.
449 $wgCompressRevisions = false;
451 # This is the list of preferred extensions for uploading files. Uploading
452 # files with extensions not in this list will trigger a warning.
453 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
455 # Files with these extensions will never be allowed as uploads.
456 $wgFileBlacklist = array(
457 # HTML may contain cookie-stealing JavaScript and web bugs
459 # PHP scripts may execute arbitrary code on the server
460 'php', 'phtml', 'php3', 'php4', 'phps',
461 # Other types that may be interpreted by some servers
462 'shtml', 'jhtml', 'pl', 'py',
463 # May contain harmful executables for Windows victims
464 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
466 # This is a flag to determine whether or not to check file extensions on
468 $wgCheckFileExtensions = true;
470 # If this is turned off, users may override the warning for files not
471 # covered by $wgFileExtensions.
472 $wgStrictFileExtensions = true;
474 # Warn if uploaded files are larger than this
475 $wgUploadSizeWarning = 150000;
477 $wgPasswordSalt = true; # For compatibility with old installations set to false
479 # Which namespaces should support subpages?
480 # See Language.php for a list of namespaces.
482 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
483 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
485 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
486 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
488 # If set, a bold ugly notice will show up at the top of every page.
491 ## Set $wgUseImageResize to true if you want to enable dynamic
492 ## server side image resizing ("Thumbnails")
494 $wgUseImageResize = false;
496 ## Set maximum width of images on image description pages.
497 ## Images bigger than this will be rendered down.
498 $wgMaxImageWidth = 800;
500 ## Resizing can be done using PHP's internal image libraries
501 ## or using ImageMagick. The later supports more file formats
502 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
504 ## Set $wgUseImageMagick to true to use Image Magick instead
505 ## of the builtin functions
507 $wgUseImageMagick = false;
508 $wgImageMagickConvertCommand = '/usr/bin/convert';
510 # PHPTal is a library for page templates. MediaWiki includes
511 # a recent PHPTal distribution. It is required to use the
512 # Monobook (default) skin.
514 # Currently it does not work on PHP5.
515 $wgUsePHPTal = version_compare( phpversion(), "5.0", "lt" );
517 if( !isset( $wgCommandLineMode ) ) {
518 $wgCommandLineMode = false;
521 # Show seconds in Recent Changes
522 $wgRCSeconds = false;
524 # Log IP addresses in the recentchanges table
525 $wgPutIPinRC = false;
527 # RDF metadata toggles
528 $wgEnableDublinCoreRdf = false;
529 $wgEnableCreativeCommonsRdf = false;
531 # Override for copyright metadata.
532 # TODO: these options need documentation
533 $wgRightsPage = NULL;
535 $wgRightsText = NULL;
536 $wgRightsIcon = NULL;
538 # Set this to true if you want detailed copyright information forms on Upload.
539 $wgUseCopyrightUpload = false;
541 # Set this to false if you want to disable checking that detailed
542 # copyright information values are not empty.
543 $wgCheckCopyrightUpload = true;
546 # Set this to false to avoid forcing the first letter of links
547 # to capitals. WARNING: may break links! This makes links
548 # COMPLETELY case-sensitive. Links appearing with a capital at
549 # the beginning of a sentence will *not* go to the same place
550 # as links in the middle of a sentence using a lowercase initial.
551 $wgCapitalLinks = true;
553 # List of interwiki prefixes for wikis we'll accept as sources
554 # for Special:Import (for sysops). Since complete page history
555 # can be imported, these should be 'trusted'.
556 $wgImportSources = array();
558 # Set this to the number of authors that you want to be credited below an
559 # article text. Set it to zero to hide the attribution block, and a
560 # negative number (like -1) to show all authors. Note that this will
561 # require 2-3 extra database hits, which can have a not insignificant
562 # impact on performance for large wikis.
565 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
566 # Otherwise, link to a separate credits page.
567 $wgShowCreditsIfMax = true;
569 # Text matching this regular expression will be recognised as spam
570 # See http://en.wikipedia.org/wiki/Regular_expression
571 $wgSpamRegex = false;
572 # Similarly if this function returns true
573 $wgFilterCallback = false;
575 # Go button goes straight to the edit screen if the article doesn't exist
578 # Allow limited user-specified HTML in wiki pages?
579 # It will be run through a whitelist for security.
580 # Set this to false if you want wiki pages to consist only of wiki
581 # markup. Note that replacements do not yet exist for all HTML
585 # Allow raw, unchecked HTML in <html>...</html> sections.
586 # THIS IS VERY DANGEROUS on a publically editable site.
587 # Don't enable it unless you've restricted editing to trusted
591 # $wgUseTidy: use tidy to make sure HTML output is sane.
592 # This should only be enabled if $wgUserHtml is true.
593 # tidy is a free tool that fixes broken HTML.
594 # See http://www.w3.org/People/Raggett/tidy/
595 # $wgTidyBin should be set to the path of the binary and
596 # $wgTidyConf to the path of the configuration file.
597 # $wgTidyOpts can include any number of parameters.
600 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
603 # See list of skins and their symbolic names in language/Language.php
604 $wgDefaultSkin = 'monobook';
606 # Whether or not to allow real name fields. Defaults to true.
607 $wgAllowRealName = true;
610 $wgSkinExtensionFunctions = array();
611 $wgExtensionFunctions = array();
613 # Allow user Javascript page?
614 $wgAllowUserJs = true;
616 # Allow user Cascading Style Sheets (CSS)?
617 $wgAllowUserCss = true;
619 # Filter for Special:Randompage. Part of a WHERE clause
620 $wgExtraRandompageSQL = false;
622 # Allow the "info" action, very inefficient at the moment
623 $wgAllowPageInfo = false;
625 # Maximum indent level of toc.
626 $wgMaxTocLevel = 999;
628 # Recognise longitude/latitude coordinates
629 $wgUseGeoMode = false;
631 # Validation for print or other production versions
632 $wgUseValidation = false;
634 # Use external C++ diff engine (module wikidiff from the
635 # extensions package)
636 $wgUseExternalDiffEngine = false;
638 # Use RC Patrolling to check for vandalism
639 $wgUseRCPatrol = true;
641 # Additional namespaces. If the namespaces defined in Language.php and Namespace.php are insufficient,
642 # you can create new ones here, for example, to import Help files in other languages.
643 # PLEASE NOTE: Once you delete a namespace, the pages in that namespace will no longer be accessible.
644 # If you rename it, then you can access them through the new namespace name.
646 # Custom namespaces should start at 100.
648 # array(100 => "Hilfe",
649 # 101 => "Hilfe_Diskussion",
651 # 103 =>"Discussion_Aide"
654 # Enable SOAP interface. Off by default
655 $wgEnableSOAP = false;