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