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