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