Remember to set variables before they are used, unless you *enjoy* SQL injection...
[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 = function_exists( 'mmcache_get' ) && php_sapi_name() == 'apache';
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 # Miscellaneous configuration settings
345 #
346
347 $wgLocalInterwiki = 'w';
348 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
349
350 $wgShowIPinHeader = true; # For non-logged in users
351 $wgMaxNameChars = 32; # Maximum number of bytes in username
352
353 $wgExtraSubtitle = '';
354 $wgSiteSupportPage = ''; # A page where you users can receive donations
355
356 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
357 $wgUseData = false ;
358
359 # The debug log file should be not be publicly accessible if it is
360 # used, as it may contain private data.
361 $wgDebugLogFile = '';
362
363 /**#@+
364 * @global bool
365 */
366 $wgDebugRedirects = false;
367 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
368
369 $wgDebugComments = false;
370 $wgReadOnly = false;
371 $wgLogQueries = false;
372 $wgDebugDumpSql = false;
373
374 # Whether to disable automatic generation of "we're sorry,
375 # but there has been a database error" pages.
376 $wgIgnoreSQLErrors = false;
377
378 # Should [[Category:Dog]] on a page associate it with the
379 # category "Dog"? (a link to that category page will be
380 # added to the article, clicking it reveals a list of
381 # all articles in the category)
382 $wgUseCategoryMagic = true;
383
384 # disable experimental dmoz-like category browsing. Output things like:
385 # Encyclopedia > Music > Style of Music > Jazz
386 # FIXME: need fixing
387 $wgUseCategoryBrowser = false;
388
389 $wgEnablePersistentLC = false; # Obsolete, do not use
390 $wgCompressedPersistentLC = true; # use gzcompressed blobs
391 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
392
393 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
394 /**#@-*/
395
396 # wgHitcounterUpdateFreq sets how often page counters should be
397 # updated, higher values are easier on the database. A value of 1
398 # causes the counters to be updated on every hit, any higher value n
399 # cause them to update *on average* every n hits. Should be set to
400 # either 1 or something largish, eg 1000, for maximum efficiency.
401
402 $wgHitcounterUpdateFreq = 1;
403
404 # User rights
405 # It's not 100% safe, there could be security hole using that one. Use at your
406 # own risks.
407
408 $wgWhitelistEdit = false; # true = user must login to edit.
409 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
410 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
411
412 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
413
414 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
415 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
416 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
417 # strtotime format, or "infinite" for an infinite block
418 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
419
420 # Proxy scanner settings
421 #
422 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
423 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
424 $wgProxyScriptPath = "$IP/proxy_check.php";
425 $wgProxyMemcExpiry = 86400;
426 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
427 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
428
429 # Number of accounts each IP address may create, 0 to disable.
430 # Requires memcached
431 $wgAccountCreationThrottle = 0;
432
433
434 # Client-side caching:
435 $wgCachePages = true; # Allow client-side caching of pages
436
437 # Set this to current time to invalidate all prior cached pages.
438 # Affects both client- and server-side caching.
439 $wgCacheEpoch = '20030516000000';
440
441
442 # Server-side caching:
443 # This will cache static pages for non-logged-in users
444 # to reduce database traffic on public sites.
445 # Must set $wgShowIPinHeader = false
446 $wgUseFileCache = false;
447 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
448
449 # When using the file cache, we can store the cached HTML gzipped to save disk
450 # space. Pages will then also be served compressed to clients that support it.
451 # THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
452 # the default LocalSettings.php! If you enable this, remove that setting first.
453 #
454 # Requires zlib support enabled in PHP.
455 $wgUseGzip = false;
456
457
458 $wgCookieExpiration = 2592000;
459
460
461 # Squid-related settings
462 #
463
464 # Enable/disable Squid
465 $wgUseSquid = false;
466
467 # If you run Squid3 with ESI support, enable this (default:false):
468 $wgUseESI = false;
469
470 # Internal server name as known to Squid, if different
471 # $wgInternalServer = 'http://yourinternal.tld:8000';
472 $wgInternalServer = $wgServer;
473
474 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
475 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
476 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
477 $wgSquidMaxage = 18000;
478
479 # A list of proxy servers (ips if possible) to purge on changes
480 # don't specify ports here (80 is default)
481 # $wgSquidServers = array('127.0.0.1');
482
483 # Maximum number of titles to purge in any one client operation
484 $wgMaxSquidPurgeTitles = 400;
485
486
487 # Cookie settings:
488 # Set to set an explicit domain on the login cookies
489 # eg, "justthis.domain.org" or ".any.subdomain.net"
490 $wgCookieDomain = '';
491 $wgCookiePath = '/';
492 $wgDisableCookieCheck = false;
493
494 # Whether to allow inline image pointing to other websites
495 $wgAllowExternalImages = true;
496
497 $wgMiserMode = false; # Disable database-intensive features
498 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
499 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
500 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
501
502 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
503 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
504 # convert (ImageMagick) installed and available in the PATH.
505 # Please see math/README for more information.
506 $wgUseTeX = false;
507 $wgTexvc = './math/texvc'; # Location of the texvc binary
508
509 # Profiling / debugging
510 $wgProfiling = false; # Enable for more detailed by-function times in debug log
511 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
512 $wgProfileOnly = false; # Don't put non-profiling info into log file
513 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
514 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
515 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
516 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
517 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
518
519 $wgDisableCounters = false;
520 $wgDisableTextSearch = false;
521 $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.
522 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
523 $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.
524 $wgDisableAnonTalk = false;
525
526 # Path to the GNU diff3 utility. If the file doesn't exist,
527 # edit conflicts will fall back to the old behaviour (no merging).
528 $wgDiff3 = '/usr/bin/diff3';
529
530
531 # We can also compress text in the old revisions table. If this is set on,
532 # old revisions will be compressed on page save if zlib support is available.
533 # Any compressed revisions will be decompressed on load regardless of this
534 # setting *but will not be readable at all* if zlib support is not available.
535 $wgCompressRevisions = false;
536
537 # This is the list of preferred extensions for uploading files. Uploading
538 # files with extensions not in this list will trigger a warning.
539 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
540
541 # Files with these extensions will never be allowed as uploads.
542 $wgFileBlacklist = array(
543 # HTML may contain cookie-stealing JavaScript and web bugs
544 'html', 'htm',
545 # PHP scripts may execute arbitrary code on the server
546 'php', 'phtml', 'php3', 'php4', 'phps',
547 # Other types that may be interpreted by some servers
548 'shtml', 'jhtml', 'pl', 'py',
549 # May contain harmful executables for Windows victims
550 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
551
552 # This is a flag to determine whether or not to check file extensions on
553 # upload.
554 $wgCheckFileExtensions = true;
555
556 # If this is turned off, users may override the warning for files not
557 # covered by $wgFileExtensions.
558 $wgStrictFileExtensions = true;
559
560 # Warn if uploaded files are larger than this
561 $wgUploadSizeWarning = 150000;
562
563 $wgPasswordSalt = true; # For compatibility with old installations set to false
564
565 # Which namespaces should support subpages?
566 # See Language.php for a list of namespaces.
567 #
568 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
569 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
570
571 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
572 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
573
574 # If set, a bold ugly notice will show up at the top of every page.
575 $wgSiteNotice = "";
576
577 ## Set $wgUseImageResize to true if you want to enable dynamic
578 ## server side image resizing ("Thumbnails")
579 #
580 $wgUseImageResize = false;
581
582 ## Resizing can be done using PHP's internal image libraries
583 ## or using ImageMagick. The later supports more file formats
584 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
585 ##
586 ## Set $wgUseImageMagick to true to use Image Magick instead
587 ## of the builtin functions
588 #
589 $wgUseImageMagick = false;
590 $wgImageMagickConvertCommand = '/usr/bin/convert';
591
592 # Scalable Vector Graphics (SVG) may be uploaded as images.
593 # Since SVG support is not yet standard in browsers, it is
594 # necessary to rasterize SVGs to PNG as a fallback format.
595 #
596 # An external program is required to perform this conversion:
597 $wgSVGConverters = array(
598 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
599 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
600 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
601 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
602 );
603 $wgSVGConverter = 'ImageMagick'; # Pick one of the above
604 $wgSVGConverterPath = ''; # If not in the executable PATH, specify
605
606 # PHPTal is a library for page templates. MediaWiki includes
607 # a recent PHPTal distribution. It is required to use the
608 # Monobook (default) skin.
609 #
610 # Currently it does not work on PHP5.
611 $wgUsePHPTal = version_compare( phpversion(), "5.0", "lt" );
612
613 if( !isset( $wgCommandLineMode ) ) {
614 $wgCommandLineMode = false;
615 }
616
617 # Show seconds in Recent Changes
618 $wgRCSeconds = false;
619
620 # Log IP addresses in the recentchanges table
621 $wgPutIPinRC = false;
622
623 # RDF metadata toggles
624 $wgEnableDublinCoreRdf = false;
625 $wgEnableCreativeCommonsRdf = false;
626
627 # Override for copyright metadata.
628 # TODO: these options need documentation
629 $wgRightsPage = NULL;
630 $wgRightsUrl = NULL;
631 $wgRightsText = NULL;
632 $wgRightsIcon = NULL;
633
634 # Set this to true if you want detailed copyright information forms on Upload.
635 $wgUseCopyrightUpload = false;
636
637 # Set this to false if you want to disable checking that detailed
638 # copyright information values are not empty.
639 $wgCheckCopyrightUpload = true;
640
641
642 # Set this to false to avoid forcing the first letter of links
643 # to capitals. WARNING: may break links! This makes links
644 # COMPLETELY case-sensitive. Links appearing with a capital at
645 # the beginning of a sentence will *not* go to the same place
646 # as links in the middle of a sentence using a lowercase initial.
647 $wgCapitalLinks = true;
648
649 # List of interwiki prefixes for wikis we'll accept as sources
650 # for Special:Import (for sysops). Since complete page history
651 # can be imported, these should be 'trusted'.
652 $wgImportSources = array();
653
654 # Set this to the number of authors that you want to be credited below an
655 # article text. Set it to zero to hide the attribution block, and a
656 # negative number (like -1) to show all authors. Note that this will
657 # require 2-3 extra database hits, which can have a not insignificant
658 # impact on performance for large wikis.
659 $wgMaxCredits = 0;
660
661 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
662 # Otherwise, link to a separate credits page.
663 $wgShowCreditsIfMax = true;
664
665 # Text matching this regular expression will be recognised as spam
666 # See http://en.wikipedia.org/wiki/Regular_expression
667 $wgSpamRegex = false;
668 # Similarly if this function returns true
669 $wgFilterCallback = false;
670
671 # Go button goes straight to the edit screen if the article doesn't exist
672 $wgGoToEdit = false;
673
674 # Allow limited user-specified HTML in wiki pages?
675 # It will be run through a whitelist for security.
676 # Set this to false if you want wiki pages to consist only of wiki
677 # markup. Note that replacements do not yet exist for all HTML
678 # constructs.
679 $wgUserHtml = true;
680
681 # Allow raw, unchecked HTML in <html>...</html> sections.
682 # THIS IS VERY DANGEROUS on a publically editable site, so
683 # you can't enable it unless you've restricted editing to
684 # trusted users only with $wgWhitelistEdit.
685 $wgRawHtml = false;
686
687 # $wgUseTidy: use tidy to make sure HTML output is sane.
688 # This should only be enabled if $wgUserHtml is true.
689 # tidy is a free tool that fixes broken HTML.
690 # See http://www.w3.org/People/Raggett/tidy/
691 # $wgTidyBin should be set to the path of the binary and
692 # $wgTidyConf to the path of the configuration file.
693 # $wgTidyOpts can include any number of parameters.
694 $wgUseTidy = false;
695 $wgTidyBin = 'tidy';
696 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
697 $wgTidyOpts = '';
698
699 # See list of skins and their symbolic names in language/Language.php
700 $wgDefaultSkin = 'monobook';
701
702 # Whether or not to allow real name fields. Defaults to true.
703 $wgAllowRealName = true;
704
705 # Use XML parser?
706
707 $wgUseXMLparser = false ;
708
709 # Extensions
710 $wgSkinExtensionFunctions = array();
711 $wgExtensionFunctions = array();
712
713 # Allow user Javascript page?
714 $wgAllowUserJs = true;
715
716 # Allow user Cascading Style Sheets (CSS)?
717 $wgAllowUserCss = true;
718
719 # Filter for Special:Randompage. Part of a WHERE clause
720 $wgExtraRandompageSQL = false;
721
722 # Allow the "info" action, very inefficient at the moment
723 $wgAllowPageInfo = false;
724
725 # Maximum indent level of toc.
726 $wgMaxTocLevel = 999;
727
728 # Recognise longitude/latitude coordinates
729 $wgUseGeoMode = false;
730
731 # Validation for print or other production versions
732 $wgUseValidation = false;
733
734 # Use external C++ diff engine (module wikidiff from the
735 # extensions package)
736 $wgUseExternalDiffEngine = false;
737
738 # Use RC Patrolling to check for vandalism
739 $wgUseRCPatrol = true;
740
741 # Additional namespaces. If the namespaces defined in Language.php and Namespace.php are insufficient,
742 # you can create new ones here, for example, to import Help files in other languages.
743 # PLEASE NOTE: Once you delete a namespace, the pages in that namespace will no longer be accessible.
744 # If you rename it, then you can access them through the new namespace name.
745 #
746 # Custom namespaces should start at 100.
747 #$wgExtraNamespaces =
748 # array(100 => "Hilfe",
749 # 101 => "Hilfe_Diskussion",
750 # 102 => "Aide",
751 # 103 => "Discussion_Aide"
752 # );
753 $wgExtraNamespaces = NULL;
754
755 # Enable SOAP interface. Off by default
756 # SOAP is a protocoll for remote procedure calls (RPC) using http as middleware.
757 # This interface can be used by bots or special clients to receive articles from
758 # a wiki.
759 # Most bots use the normal HTTP interface and don't use SOAP.
760 # If unsure, set to false.
761 $wgEnableSOAP = false;
762
763 # Limit images on image description pages to a user-selectable limit. In order to
764 # reduce disk usage, limits can only be selected from a list. This is the list of
765 # settings the user can choose from:
766 $wgImageLimits = array (
767 array(320,240),
768 array(640,480),
769 array(800,600),
770 array(1024,768),
771 array(1280,1024),
772 array(10000,10000) );
773
774
775 /** Navigation links for the user sidebar.
776 * 'text' is the name of the MediaWiki message that contains the label of this link
777 * 'href' is the name of the MediaWiki message that contains the link target of this link.
778 * Link targets starting with http are considered remote links. Ones not starting with
779 * http are considered as names of local wiki pages.
780 */
781 $wgNavigationLinks = array (
782 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
783 array( 'text'=>'portal', 'href'=>'portal-url' ),
784 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
785 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
786 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
787 array( 'text'=>'help', 'href'=>'helppage' ),
788 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
789 );
790
791 # On category pages, show thumbnail gallery for images belonging to that category
792 # instead of listing them as articles.
793 $wgCategoryMagicGallery = true;
794
795 # Browser Blacklist for unicode non compliant browsers
796 # Contains a list of regexps : "/regexp/" matching problematic browsers
797 $wgBrowserBlackList = array(
798 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
799 // FIXME: Add some accurate, true things here
800 );
801
802 # Fake out the timezone that the server thinks it's in. This will be used
803 # for date display and not for what's stored in the DB.
804 # Leave to null to retain your server's OS-based timezone value
805 # This is the same as the timezone
806 # $wgLocaltimezone = 'GMT';
807 # $wgLocaltimezone = 'PST8PDT';
808 # $wgLocaltimezone = 'Europe/Sweden';
809 # $wgLocaltimezone = 'CET';
810
811 # User level management
812 # The number is the database id of a group you want users to be attached by
813 # default. A better interface should be coded [av]
814 $wgAnonGroupId = 1;
815 $wgLoggedInGroupId = 2;
816
817 $wgWhitelistRead = array ( ':Accueil', ':Main_Page');
818
819 } else {
820 die();
821 }
822 ?>