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