Added option wgDisableLangConversion to disable langauge variant conversion, mainly...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 /**
3 * DO NOT EDIT THIS FILE!
4 *
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 * @version $Id$
13 * @package MediaWiki
14 */
15
16 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
17 if( defined( 'MEDIAWIKI' ) ) {
18
19 /**
20 * MediaWiki version number
21 * @global string $wgVersion
22 */
23 $wgVersion = '1.4-prealpha';
24
25 /**
26 * Name of the site.
27 * It must be changed in LocalSettings.php
28 * @global string $wgSitename
29 */
30 $wgSitename = 'MediaWiki';
31
32 /**
33 * Will be same as you set @see $wgSitename
34 * @global mixed $wgMetaNamespace
35 */
36 $wgMetaNamespace = FALSE;
37
38
39 /**
40 * URL of the server
41 * It will be automaticly build including https mode
42 * @global string $wgServer
43 */
44 $wgServer = '';
45
46 if( isset( $_SERVER['SERVER_NAME'] ) ) {
47 $wgServerName = $_SERVER['SERVER_NAME'];
48 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
49 $wgServerName = $_SERVER['HOSTNAME'];
50 } else {
51 # FIXME: Fall back on... something else?
52 $wgServerName = 'localhost';
53 }
54
55 # check if server use https:
56 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
57
58 $wgServer = $wgProto.'://' . $wgServerName;
59 if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
60 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
61 }
62 unset($wgProto);
63
64
65 /**
66 * The path we should point to.
67 * It might be a virtual path in case with use apache mod_rewrite for example
68 * @global string $wgScriptPath
69 */
70 $wgScriptPath = '/wiki';
71
72 /**
73 * Whether to support URLs like index.php/Page_title
74 * @global bool $wgUsePathInfo
75 */
76 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
77
78
79 /**#@+
80 * Script users will request to get articles
81 * ATTN: Old installations used wiki.phtml and redirect.phtml -
82 * make sure that LocalSettings.php is correctly set!
83 * @deprecated
84 */
85 /**
86 * @global string $wgScript
87 */
88 $wgScript = "{$wgScriptPath}/index.php";
89 /**
90 * @global string $wgRedirectScript
91 */
92 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
93 /**#@-*/
94
95
96 /**#@+
97 * @global string
98 */
99 /**
100 * style path as seen by users
101 * @global string $wgStylePath
102 */
103 $wgStylePath = "{$wgScriptPath}/skins";
104 /**
105 * filesystem stylesheets directory
106 * @global string $wgStyleDirectory
107 */
108 $wgStyleDirectory = "{$IP}/skins";
109 $wgStyleSheetPath = &$wgStylePath;
110 $wgStyleSheetDirectory = &$wgStyleDirectory;
111 $wgArticlePath = "{$wgScript}?title=$1";
112 $wgUploadPath = "{$wgScriptPath}/upload";
113 $wgUploadDirectory = "{$IP}/upload";
114 $wgHashedUploadDirectory = true;
115 $wgLogo = "{$wgUploadPath}/wiki.png";
116 $wgMathPath = "{$wgUploadPath}/math";
117 $wgMathDirectory = "{$wgUploadDirectory}/math";
118 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
119 $wgUploadBaseUrl = "";
120 /**#@-*/
121
122
123 # Email settings
124 #
125 /**
126 * Site admin email address
127 * Default to wikiadmin@SERVER_NAME
128 * @global string $wgEmergencyContact
129 */
130 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
131
132 /**
133 * Password reminder email address
134 * The address we should use as sender when a user is requesting his password
135 * Default to apache@SERVER_NAME
136 * @global string $wgPasswordSender
137 */
138 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
139
140
141 /**
142 * SMTP Mode
143 * For using a direct (authenticated) SMTP server connection.
144 * Default to false or fill an array :
145 * <code>
146 * "host" => 'SMTP domain',
147 * "IDHost" => 'domain for MessageID',
148 * "port" => "25",
149 * "auth" => true/false,
150 * "username" => user,
151 * "password" => password
152 * </code>
153 *
154 * @global mixed $wgSMTP
155 */
156 $wgSMTP = false;
157
158
159 /**#@+
160 * Database settings
161 */
162 /** database host name or ip address */
163 $wgDBserver = 'localhost';
164 /** name of the database */
165 $wgDBname = 'wikidb';
166 /** */
167 $wgDBconnection = '';
168 /** Database username */
169 $wgDBuser = 'wikiuser';
170 /** Database type
171 * "mysql" for working code and "PostgreSQL" for development/broken code
172 */
173 $wgDBtype = "mysql";
174 /** Search type
175 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
176 * based search engine
177 */
178 $wgSearchType = "MyISAM";
179 /** Table name prefix */
180 $wgDBprefix = '';
181 /** Database schema
182 * on some databases this allows separate
183 * logical namespace for application data
184 */
185 $wgDBschema = 'mediawiki';
186 /**#@-*/
187
188
189
190 # Shared database for multiple wikis.
191 # Presently used for storing a user table for single sign-on
192 # The server for this database must be the same as for the main
193 # database.
194 # EXPERIMENTAL
195 # $wgSharedDB='';
196
197 # Database load balancer
198 # This is a two-dimensional array, an array of server info structures
199 # Fields are:
200 # host: Host name
201 # dbname: Default database name
202 # user: DB user
203 # password: DB password
204 # type: "mysql" or "pgsql"
205 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
206 # flags: bit field
207 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
208 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
209 # DBO_TRX -- wrap entire request in a transaction
210 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
211 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
212 #
213 # Leave at false to use the single-server variables above
214 $wgDBservers = false;
215
216 # Sysop SQL queries
217 # The sql user shouldn't have too many rights other the database, restrict
218 # it to SELECT only on 'cur' table for example
219 #
220 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
221 $wgDBsqluser = 'sqluser';
222 $wgDBsqlpassword = 'sqlpass';
223 $wgDBpassword = 'userpass';
224 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
225 $wgDBerrorLog = false; # File to log MySQL errors to
226
227 # wgDBminWordLen :
228 # MySQL 3.x : used to discard words that MySQL will not return any results for
229 # shorter values configure mysql directly
230 # MySQL 4.x : ignore it and configure mySQL
231 # See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
232 $wgDBminWordLen = 4;
233 $wgDBtransactions = false; # Set to true if using InnoDB tables
234 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
235 $wgSqlTimeout = 30;
236
237 $wgBufferSQLResults = true; # use buffered queries by default
238
239 # Other wikis on this site, can be administered from a single developer account
240 # Array, interwiki prefix => database name
241 $wgLocalDatabases = array();
242
243
244 # Memcached settings
245 # See docs/memcached.doc
246 #
247 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
248 $wgUseMemCached = false;
249 $wgMemCachedServers = array( '127.0.0.1:11000' );
250 $wgMemCachedDebug = false;
251 $wgSessionsInMemcached = false;
252 $wgLinkCacheMemcached = false; # Not fully tested
253
254 /**
255 * Turck MMCache shared memory
256 * You can use this for persistent caching where your wiki runs on a small
257 * number of servers. Mutually exclusive with memcached. MMCache must be
258 * installed.
259 *
260 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
261 */
262 $wgUseTurckShm = false;
263
264
265 # Language settings
266 #
267 /**
268 * Site language code
269 * Default to 'en'. Should be one of ./language/Language(.*).php
270 * @global string $wgLanguageCode
271 */
272 $wgLanguageCode = 'en';
273
274 /**
275 * Filename of a language file generated by dumpMessages.php
276 * @global string|false $wgLanguageFile (default:false)
277 */
278 $wgLanguageFile = false;
279 /**
280 * Treat language links as magic connectors, not inline links
281 * @global bool $wgInterwikiMagic (default:true)
282 */
283 $wgInterwikiMagic = true;
284 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
285 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
286 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
287 $wgEditEncoding = '';
288
289 # Set this to eg 'ISO-8859-1' to perform character set
290 # conversion when loading old revisions not marked with
291 # "utf-8" flag. Use this when converting wiki to UTF-8
292 # without the burdensome mass conversion of old text data.
293 #
294 # NOTE! This DOES NOT touch any fields other than old_text.
295 # Titles, comments, user names, etc still must be converted
296 # en masse in the database before continuing as a UTF-8 wiki.
297 $wgLegacyEncoding = false;
298
299 $wgMimeType = 'text/html';
300 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
301 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
302 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
303 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
304 $wgAmericanDates = false; # Enable for English module to print dates
305 # as eg 'May 12' instead of '12 May'
306 $wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
307 # of Western style (0-9) numerals in interface.
308
309
310 # Translation using MediaWiki: namespace
311 # This will increase load times by 25-60% unless memcached is installed
312 # Interface messages will be get from the database.
313 $wgUseDatabaseMessages = true;
314 $wgMsgCacheExpiry = 86400;
315 $wgPartialMessageCache = false;
316
317 # Whether to enable language variant conversion. Currently only zh
318 # supports this function, to convert between Traditional and Simplified
319 # Chinese. This flag is meant to isolate the (untested) conversion
320 # code, so that if it breaks, only zh will be affected
321 $wgDisableLangConversion = true;
322
323 # Miscellaneous configuration settings
324 #
325
326 $wgLocalInterwiki = 'w';
327 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
328
329 $wgShowIPinHeader = true; # For non-logged in users
330 $wgMaxNameChars = 32; # Maximum number of bytes in username
331
332 $wgExtraSubtitle = '';
333 $wgSiteSupportPage = ''; # A page where you users can receive donations
334
335 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
336 $wgUseData = false ;
337
338 # The debug log file should be not be publicly accessible if it is
339 # used, as it may contain private data.
340 $wgDebugLogFile = '';
341
342 /**#@+
343 * @global bool
344 */
345 $wgDebugRedirects = false;
346 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
347
348 $wgDebugComments = false;
349 $wgReadOnly = false;
350 $wgLogQueries = false;
351 $wgDebugDumpSql = false;
352
353 # Whether to disable automatic generation of "we're sorry,
354 # but there has been a database error" pages.
355 $wgIgnoreSQLErrors = false;
356
357 # Should [[Category:Dog]] on a page associate it with the
358 # category "Dog"? (a link to that category page will be
359 # added to the article, clicking it reveals a list of
360 # all articles in the category)
361 $wgUseCategoryMagic = true;
362
363 # disable experimental dmoz-like category browsing. Output things like:
364 # Encyclopedia > Music > Style of Music > Jazz
365 # FIXME: need fixing
366 $wgUseCategoryBrowser = false;
367
368 $wgEnablePersistentLC = false; # Obsolete, do not use
369 $wgCompressedPersistentLC = true; # use gzcompressed blobs
370 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
371
372 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
373 /**#@-*/
374
375 # wgHitcounterUpdateFreq sets how often page counters should be
376 # updated, higher values are easier on the database. A value of 1
377 # causes the counters to be updated on every hit, any higher value n
378 # cause them to update *on average* every n hits. Should be set to
379 # either 1 or something largish, eg 1000, for maximum efficiency.
380
381 $wgHitcounterUpdateFreq = 1;
382
383 # User rights
384 # It's not 100% safe, there could be security hole using that one. Use at your
385 # own risks.
386
387 $wgWhitelistEdit = false; # true = user must login to edit.
388 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
389 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
390
391 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
392
393 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
394 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
395 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
396 # strtotime format, or "infinite" for an infinite block
397 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
398
399 # Proxy scanner settings
400 #
401 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
402 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
403 $wgProxyScriptPath = "$IP/proxy_check.php";
404 $wgProxyMemcExpiry = 86400;
405 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
406 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
407
408 # Number of accounts each IP address may create, 0 to disable.
409 # Requires memcached
410 $wgAccountCreationThrottle = 0;
411
412
413 # Client-side caching:
414 $wgCachePages = true; # Allow client-side caching of pages
415
416 # Set this to current time to invalidate all prior cached pages.
417 # Affects both client- and server-side caching.
418 $wgCacheEpoch = '20030516000000';
419
420
421 # Server-side caching:
422 # This will cache static pages for non-logged-in users
423 # to reduce database traffic on public sites.
424 # Must set $wgShowIPinHeader = false
425 $wgUseFileCache = false;
426 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
427
428 # When using the file cache, we can store the cached HTML gzipped to save disk
429 # space. Pages will then also be served compressed to clients that support it.
430 # THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
431 # the default LocalSettings.php! If you enable this, remove that setting first.
432 #
433 # Requires zlib support enabled in PHP.
434 $wgUseGzip = false;
435
436
437 $wgCookieExpiration = 2592000;
438
439
440 # Squid-related settings
441 #
442
443 # Enable/disable Squid
444 $wgUseSquid = false;
445
446 # If you run Squid3 with ESI support, enable this (default:false):
447 $wgUseESI = false;
448
449 # Internal server name as known to Squid, if different
450 # $wgInternalServer = 'http://yourinternal.tld:8000';
451 $wgInternalServer = $wgServer;
452
453 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
454 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
455 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
456 $wgSquidMaxage = 18000;
457
458 # A list of proxy servers (ips if possible) to purge on changes
459 # don't specify ports here (80 is default)
460 # $wgSquidServers = array('127.0.0.1');
461
462 # Maximum number of titles to purge in any one client operation
463 $wgMaxSquidPurgeTitles = 400;
464
465
466 # Cookie settings:
467 # Set to set an explicit domain on the login cookies
468 # eg, "justthis.domain.org" or ".any.subdomain.net"
469 $wgCookieDomain = '';
470 $wgCookiePath = '/';
471 $wgDisableCookieCheck = false;
472
473 # Whether to allow inline image pointing to other websites
474 $wgAllowExternalImages = true;
475
476 $wgMiserMode = false; # Disable database-intensive features
477 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
478 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
479 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
480
481 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
482 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
483 # convert (ImageMagick) installed and available in the PATH.
484 # Please see math/README for more information.
485 $wgUseTeX = false;
486 $wgTexvc = './math/texvc'; # Location of the texvc binary
487
488 # Profiling / debugging
489 $wgProfiling = false; # Enable for more detailed by-function times in debug log
490 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
491 $wgProfileOnly = false; # Don't put non-profiling info into log file
492 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
493 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
494 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
495 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
496 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
497
498 $wgDisableCounters = false;
499 $wgDisableTextSearch = false;
500 $wgDisableFuzzySearch = false;
501 $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.
502 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
503 $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.
504 $wgDisableAnonTalk = false;
505
506 # Path to the GNU diff3 utility. If the file doesn't exist,
507 # edit conflicts will fall back to the old behaviour (no merging).
508 $wgDiff3 = '/usr/bin/diff3';
509
510
511 # We can also compress text in the old revisions table. If this is set on,
512 # old revisions will be compressed on page save if zlib support is available.
513 # Any compressed revisions will be decompressed on load regardless of this
514 # setting *but will not be readable at all* if zlib support is not available.
515 $wgCompressRevisions = false;
516
517 # This is the list of preferred extensions for uploading files. Uploading
518 # files with extensions not in this list will trigger a warning.
519 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
520
521 # Files with these extensions will never be allowed as uploads.
522 $wgFileBlacklist = array(
523 # HTML may contain cookie-stealing JavaScript and web bugs
524 'html', 'htm',
525 # PHP scripts may execute arbitrary code on the server
526 'php', 'phtml', 'php3', 'php4', 'phps',
527 # Other types that may be interpreted by some servers
528 'shtml', 'jhtml', 'pl', 'py',
529 # May contain harmful executables for Windows victims
530 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
531
532 # This is a flag to determine whether or not to check file extensions on
533 # upload.
534 $wgCheckFileExtensions = true;
535
536 # If this is turned off, users may override the warning for files not
537 # covered by $wgFileExtensions.
538 $wgStrictFileExtensions = true;
539
540 # Warn if uploaded files are larger than this
541 $wgUploadSizeWarning = 150000;
542
543 $wgPasswordSalt = true; # For compatibility with old installations set to false
544
545 # Which namespaces should support subpages?
546 # See Language.php for a list of namespaces.
547 #
548 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
549 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
550
551 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
552 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
553
554 # If set, a bold ugly notice will show up at the top of every page.
555 $wgSiteNotice = "";
556
557 ## Set $wgUseImageResize to true if you want to enable dynamic
558 ## server side image resizing ("Thumbnails")
559 #
560 $wgUseImageResize = false;
561
562 ## Resizing can be done using PHP's internal image libraries
563 ## or using ImageMagick. The later supports more file formats
564 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
565 ##
566 ## Set $wgUseImageMagick to true to use Image Magick instead
567 ## of the builtin functions
568 #
569 $wgUseImageMagick = false;
570 $wgImageMagickConvertCommand = '/usr/bin/convert';
571
572 # Scalable Vector Graphics (SVG) may be uploaded as images.
573 # Since SVG support is not yet standard in browsers, it is
574 # necessary to rasterize SVGs to PNG as a fallback format.
575 #
576 # An external program is required to perform this conversion:
577 $wgSVGConverters = array(
578 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
579 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
580 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
581 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
582 );
583 $wgSVGConverter = 'ImageMagick'; # Pick one of the above
584 $wgSVGConverterPath = ''; # If not in the executable PATH, specify
585
586 # PHPTal is a library for page templates. MediaWiki includes
587 # a recent PHPTal distribution. It is required to use the
588 # Monobook (default) skin.
589 #
590 # Currently it does not work on PHP5.
591 $wgUsePHPTal = version_compare( phpversion(), "5.0", "lt" );
592
593 if( !isset( $wgCommandLineMode ) ) {
594 $wgCommandLineMode = false;
595 }
596
597 # Show seconds in Recent Changes
598 $wgRCSeconds = false;
599
600 # Log IP addresses in the recentchanges table
601 $wgPutIPinRC = false;
602
603 # RDF metadata toggles
604 $wgEnableDublinCoreRdf = false;
605 $wgEnableCreativeCommonsRdf = false;
606
607 # Override for copyright metadata.
608 # TODO: these options need documentation
609 $wgRightsPage = NULL;
610 $wgRightsUrl = NULL;
611 $wgRightsText = NULL;
612 $wgRightsIcon = NULL;
613
614 # Set this to true if you want detailed copyright information forms on Upload.
615 $wgUseCopyrightUpload = false;
616
617 # Set this to false if you want to disable checking that detailed
618 # copyright information values are not empty.
619 $wgCheckCopyrightUpload = true;
620
621
622 # Set this to false to avoid forcing the first letter of links
623 # to capitals. WARNING: may break links! This makes links
624 # COMPLETELY case-sensitive. Links appearing with a capital at
625 # the beginning of a sentence will *not* go to the same place
626 # as links in the middle of a sentence using a lowercase initial.
627 $wgCapitalLinks = true;
628
629 # List of interwiki prefixes for wikis we'll accept as sources
630 # for Special:Import (for sysops). Since complete page history
631 # can be imported, these should be 'trusted'.
632 $wgImportSources = array();
633
634 # Set this to the number of authors that you want to be credited below an
635 # article text. Set it to zero to hide the attribution block, and a
636 # negative number (like -1) to show all authors. Note that this will
637 # require 2-3 extra database hits, which can have a not insignificant
638 # impact on performance for large wikis.
639 $wgMaxCredits = 0;
640
641 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
642 # Otherwise, link to a separate credits page.
643 $wgShowCreditsIfMax = true;
644
645 # Text matching this regular expression will be recognised as spam
646 # See http://en.wikipedia.org/wiki/Regular_expression
647 $wgSpamRegex = false;
648 # Similarly if this function returns true
649 $wgFilterCallback = false;
650
651 # Go button goes straight to the edit screen if the article doesn't exist
652 $wgGoToEdit = false;
653
654 # Allow limited user-specified HTML in wiki pages?
655 # It will be run through a whitelist for security.
656 # Set this to false if you want wiki pages to consist only of wiki
657 # markup. Note that replacements do not yet exist for all HTML
658 # constructs.
659 $wgUserHtml = true;
660
661 # Allow raw, unchecked HTML in <html>...</html> sections.
662 # THIS IS VERY DANGEROUS on a publically editable site, so
663 # you can't enable it unless you've restricted editing to
664 # trusted users only with $wgWhitelistEdit.
665 $wgRawHtml = false;
666
667 # $wgUseTidy: use tidy to make sure HTML output is sane.
668 # This should only be enabled if $wgUserHtml is true.
669 # tidy is a free tool that fixes broken HTML.
670 # See http://www.w3.org/People/Raggett/tidy/
671 # $wgTidyBin should be set to the path of the binary and
672 # $wgTidyConf to the path of the configuration file.
673 # $wgTidyOpts can include any number of parameters.
674 $wgUseTidy = false;
675 $wgTidyBin = 'tidy';
676 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
677 $wgTidyOpts = '';
678
679 # See list of skins and their symbolic names in language/Language.php
680 $wgDefaultSkin = 'monobook';
681
682 # Whether or not to allow real name fields. Defaults to true.
683 $wgAllowRealName = true;
684
685 # Extensions
686 $wgSkinExtensionFunctions = array();
687 $wgExtensionFunctions = array();
688
689 # Allow user Javascript page?
690 $wgAllowUserJs = true;
691
692 # Allow user Cascading Style Sheets (CSS)?
693 $wgAllowUserCss = true;
694
695 # Filter for Special:Randompage. Part of a WHERE clause
696 $wgExtraRandompageSQL = false;
697
698 # Allow the "info" action, very inefficient at the moment
699 $wgAllowPageInfo = false;
700
701 # Maximum indent level of toc.
702 $wgMaxTocLevel = 999;
703
704 # Recognise longitude/latitude coordinates
705 $wgUseGeoMode = false;
706
707 # Validation for print or other production versions
708 $wgUseValidation = false;
709
710 # Use external C++ diff engine (module wikidiff from the
711 # extensions package)
712 $wgUseExternalDiffEngine = false;
713
714 # Use RC Patrolling to check for vandalism
715 $wgUseRCPatrol = true;
716
717 # Additional namespaces. If the namespaces defined in Language.php and Namespace.php are insufficient,
718 # you can create new ones here, for example, to import Help files in other languages.
719 # PLEASE NOTE: Once you delete a namespace, the pages in that namespace will no longer be accessible.
720 # If you rename it, then you can access them through the new namespace name.
721 #
722 # Custom namespaces should start at 100.
723 #$wgExtraNamespaces =
724 # array(100 => "Hilfe",
725 # 101 => "Hilfe_Diskussion",
726 # 102 => "Aide",
727 # 103 => "Discussion_Aide"
728 # );
729 $wgExtraNamespaces = NULL;
730
731 # Enable SOAP interface. Off by default
732 # SOAP is a protocoll for remote procedure calls (RPC) using http as middleware.
733 # This interface can be used by bots or special clients to receive articles from
734 # a wiki.
735 # Most bots use the normal HTTP interface and don't use SOAP.
736 # If unsure, set to false.
737 $wgEnableSOAP = false;
738
739 # Limit images on image description pages to a user-selectable limit. In order to
740 # reduce disk usage, limits can only be selected from a list. This is the list of
741 # settings the user can choose from:
742 $wgImageLimits = array (
743 array(320,240),
744 array(640,480),
745 array(800,600),
746 array(1024,768),
747 array(1280,1024),
748 array(10000,10000) );
749
750
751 # Navigation links for the user sidebar.
752 # 'text' is the name of the MediaWiki message that contains the label of this link
753 # 'href' is the name of the MediaWiki message that contains the link target of this link.
754 # Link targets starting with http are considered remote links. Ones not starting with
755 # http are considered as names of local wiki pages.
756 $wgNavigationLinks = array (
757 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
758 array( 'text'=>'portal', 'href'=>'portal-url' ),
759 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
760 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
761 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
762 array( 'text'=>'help', 'href'=>'helppage' ),
763 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
764 );
765
766 # On category pages, show thumbnail gallery for images belonging to that category
767 # instead of listing them as articles.
768 $wgCategoryMagicGallery = true;
769
770 # Browser Blacklist for unicode non compliant browsers
771 # Contains a list of regexps : "/regexp/" matching problematic browsers
772 $wgBrowserBlackList = array(
773 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
774 // FIXME: Add some accurate, true things here
775 );
776
777 # Fake out the timezone that the server thinks it's in. This will be used
778 # for date display and not for what's stored in the DB.
779 # Leave to null to retain your server's OS-based timezone value
780 # This is the same as the timezone
781 # $wgLocaltimezone = 'GMT';
782 # $wgLocaltimezone = 'PST8PDT';
783 # $wgLocaltimezone = 'Europe/Sweden';
784 # $wgLocaltimezone = 'CET';
785
786 } else {
787 die();
788 }
789 ?>