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