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