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