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