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