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