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