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