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