Re-establishing validation feature (the beginnings)
[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 * @package MediaWiki
13 */
14
15 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
16 if( defined( 'MEDIAWIKI' ) ) {
17
18 /** MediaWiki version number */
19 $wgVersion = '1.5pre-alpha';
20
21 /** Name of the site. It must be changed in LocalSettings.php */
22 $wgSitename = 'MediaWiki';
23
24 /** Will be same as you set @see $wgSitename */
25 $wgMetaNamespace = FALSE;
26
27 /** URL of the server. It will be automaticly build including https mode */
28 $wgServer = '';
29
30 if( isset( $_SERVER['SERVER_NAME'] ) ) {
31 $wgServerName = $_SERVER['SERVER_NAME'];
32 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
33 $wgServerName = $_SERVER['HOSTNAME'];
34 } else {
35 # FIXME: Fall back on... something else?
36 $wgServerName = 'localhost';
37 }
38
39 # check if server use https:
40 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
41
42 $wgServer = $wgProto.'://' . $wgServerName;
43 if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
44 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
45 }
46 unset($wgProto);
47
48
49 /**
50 * The path we should point to.
51 * It might be a virtual path in case with use apache mod_rewrite for example
52 */
53 $wgScriptPath = '/wiki';
54
55 /**
56 * Whether to support URLs like index.php/Page_title
57 * @global bool $wgUsePathInfo
58 */
59 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
60
61
62 /**#@+
63 * Script users will request to get articles
64 * ATTN: Old installations used wiki.phtml and redirect.phtml -
65 * make sure that LocalSettings.php is correctly set!
66 * @deprecated
67 */
68 /**
69 * @global string $wgScript
70 */
71 $wgScript = "{$wgScriptPath}/index.php";
72 /**
73 * @global string $wgRedirectScript
74 */
75 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
76 /**#@-*/
77
78
79 /**#@+
80 * @global string
81 */
82 /**
83 * style path as seen by users
84 * @global string $wgStylePath
85 */
86 $wgStylePath = "{$wgScriptPath}/skins";
87 /**
88 * filesystem stylesheets directory
89 * @global string $wgStyleDirectory
90 */
91 $wgStyleDirectory = "{$IP}/skins";
92 $wgStyleSheetPath = &$wgStylePath;
93 $wgStyleSheetDirectory = &$wgStyleDirectory;
94 $wgArticlePath = "{$wgScript}?title=$1";
95 $wgUploadPath = "{$wgScriptPath}/upload";
96 $wgUploadDirectory = "{$IP}/upload";
97 $wgHashedUploadDirectory = true;
98 $wgLogo = "{$wgUploadPath}/wiki.png";
99 $wgMathPath = "{$wgUploadPath}/math";
100 $wgMathDirectory = "{$wgUploadDirectory}/math";
101 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
102 $wgUploadBaseUrl = "";
103 /**#@-*/
104
105 /**
106 * To set 'pretty' URL paths for actions other than
107 * plain page views, add to this array. For instance:
108 * 'edit' => "$wgScriptPath/edit/$1"
109 *
110 * There must be an appropriate script or rewrite rule
111 * in place to handle these URLs.
112 */
113 $wgActionPaths = array();
114
115 /**
116 * If you operate multiple wikis, you can define a shared upload path here.
117 * Uploads to this wiki will NOT be put there - they will be put into
118 * $wgUploadDirectory.
119 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
120 * no file of the given name is found in the local repository (for [[Image:..]],
121 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
122 * directory.
123 */
124 $wgUseSharedUploads = false;
125 /** Full path on the web server where shared uploads can be found */
126 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
127 /** Path on the file system where shared uploads can be found */
128 $wgSharedUploadDirectory = "/var/www/wiki3/images";
129 /** Path on the file system where shared uploads can be found */
130 $wgSharedUploadDBname = "commons";
131
132 /**
133 * Set the following to false especially if you have a set of files that need to
134 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
135 * directory layout.
136 */
137 $wgHashedSharedUploadDirectory = true;
138
139 /** set true if the repository uses latin1 filenames */
140 $wgSharedLatin1=false;
141
142 /**
143 * Base URL for a repository wiki. Leave this blank if uploads are just stored
144 * in a shared directory and not meant to be accessible through a separate wiki.
145 * Otherwise the image description pages on the local wiki will link to the
146 * image description page on this wiki.
147 *
148 * Please specify the namespace, as in the example below.
149 */
150 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
151
152
153 #
154 # Email settings
155 #
156
157 /**
158 * Site admin email address
159 * Default to wikiadmin@SERVER_NAME
160 * @global string $wgEmergencyContact
161 */
162 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
163
164 /**
165 * Password reminder email address
166 * The address we should use as sender when a user is requesting his password
167 * Default to apache@SERVER_NAME
168 * @global string $wgPasswordSender
169 */
170 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
171
172 /**
173 * dummy address which should be accepted during mail send action
174 * It might be necessay to adapt the address or to set it equal
175 * to the $wgEmergencyContact address
176 */
177 #$wgNoReplyAddress = $wgEmergencyContact;
178 $wgNoReplyAddress = 'reply@not.possible';
179
180 /**
181 * Set to true to enable the e-mail basic features:
182 * Password reminders, etc. If sending e-mail on your
183 * server doesn't work, you might want to disable this.
184 * @global bool $wgEnableEmail
185 */
186 $wgEnableEmail = true;
187
188 /**
189 * Set to true to enable user-to-user e-mail.
190 * This can potentially be abused, as it's hard to track.
191 * @global bool $wgEnableUserEmail
192 */
193 $wgEnableUserEmail = true;
194
195 /**
196 * SMTP Mode
197 * For using a direct (authenticated) SMTP server connection.
198 * Default to false or fill an array :
199 * <code>
200 * "host" => 'SMTP domain',
201 * "IDHost" => 'domain for MessageID',
202 * "port" => "25",
203 * "auth" => true/false,
204 * "username" => user,
205 * "password" => password
206 * </code>
207 *
208 * @global mixed $wgSMTP
209 */
210 $wgSMTP = false;
211
212
213 /**#@+
214 * Database settings
215 */
216 /** database host name or ip address */
217 $wgDBserver = 'localhost';
218 /** name of the database */
219 $wgDBname = 'wikidb';
220 /** */
221 $wgDBconnection = '';
222 /** Database username */
223 $wgDBuser = 'wikiuser';
224 /** Database type
225 * "mysql" for working code and "PostgreSQL" for development/broken code
226 */
227 $wgDBtype = "mysql";
228 /** Search type
229 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
230 * based search engine
231 */
232 $wgSearchType = "MyISAM";
233 /** Table name prefix */
234 $wgDBprefix = '';
235 /** Database schema
236 * on some databases this allows separate
237 * logical namespace for application data
238 */
239 $wgDBschema = 'mediawiki';
240 /**#@-*/
241
242
243
244 /**
245 * Shared database for multiple wikis. Presently used for storing a user table
246 * for single sign-on. The server for this database must be the same as for the
247 * main database.
248 * EXPERIMENTAL
249 */
250 $wgSharedDB = null;
251
252 # Database load balancer
253 # This is a two-dimensional array, an array of server info structures
254 # Fields are:
255 # host: Host name
256 # dbname: Default database name
257 # user: DB user
258 # password: DB password
259 # type: "mysql" or "pgsql"
260 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
261 # flags: bit field
262 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
263 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
264 # DBO_TRX -- wrap entire request in a transaction
265 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
266 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
267 #
268 # Leave at false to use the single-server variables above
269 $wgDBservers = false;
270
271 /** How long to wait for a slave to catch up to the master */
272 $wgMasterWaitTimeout = 10;
273
274 /** File to log MySQL errors to */
275 $wgDBerrorLog = false;
276
277 /**
278 * wgDBminWordLen :
279 * MySQL 3.x : used to discard words that MySQL will not return any results for
280 * shorter values configure mysql directly.
281 * MySQL 4.x : ignore it and configure mySQL
282 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
283 */
284 $wgDBminWordLen = 4;
285 /** Set to true if using InnoDB tables */
286 $wgDBtransactions = false;
287 /** Set to true to use enhanced fulltext search */
288 $wgDBmysql4 = false;
289 $wgSqlTimeout = 30;
290
291 /**
292 * Other wikis on this site, can be administered from a single developer
293 * account.
294 * Array, interwiki prefix => database name
295 */
296 $wgLocalDatabases = array();
297
298
299 # Memcached settings
300 # See docs/memcached.doc
301 #
302 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
303 $wgUseMemCached = false;
304 $wgMemCachedServers = array( '127.0.0.1:11000' );
305 $wgMemCachedDebug = false;
306 $wgSessionsInMemcached = false;
307 $wgLinkCacheMemcached = false; # Not fully tested
308
309 /**
310 * Turck MMCache shared memory
311 * You can use this for persistent caching where your wiki runs on a single
312 * server. Enabled by default if Turck is installed. Mutually exclusive with
313 * memcached and eAccelerator, the preference order priorities being memcached first,
314 * Turck MMCache second, and eAccelerator third.
315 *
316 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
317 */
318 $wgUseTurckShm = false;
319
320 /**
321 * eAccelerator shared memory
322 * You can use this for persistent caching where your wiki runs on a single
323 * server. Enabled by default if eAccelerator is installed. Mutually exclusive with
324 * memcached and Turck MMCache, the preference order being memcached first,
325 * Turck MMCache second, and eAccelerator third.
326 *
327 * Most of the code to support this is directly copied from the Turck code.
328 *
329 * @global bool $wgUseEAccelShm Enable or disabled eAccelerator
330 */
331 $wgUseEAccelShm = false;
332
333
334 # Language settings
335 #
336 /** Site language code, should be one of ./language/Language(.*).php */
337 $wgLanguageCode = 'en';
338
339 /** Filename of a language file generated by dumpMessages.php */
340 $wgLanguageFile = false;
341
342 /** Treat language links as magic connectors, not inline links */
343 $wgInterwikiMagic = true;
344
345 /** LanguageUtf8.php normally overrides this */
346 $wgInputEncoding = 'ISO-8859-1';
347 /** unless you set the next option to true: */
348 $wgOutputEncoding = 'ISO-8859-1';
349 /** Enable ISO-8859-1 compatibility mode */
350 $wgUseLatin1 = false;
351 $wgEditEncoding = '';
352
353 # Set this to eg 'ISO-8859-1' to perform character set
354 # conversion when loading old revisions not marked with
355 # "utf-8" flag. Use this when converting wiki to UTF-8
356 # without the burdensome mass conversion of old text data.
357 #
358 # NOTE! This DOES NOT touch any fields other than old_text.
359 # Titles, comments, user names, etc still must be converted
360 # en masse in the database before continuing as a UTF-8 wiki.
361 $wgLegacyEncoding = false;
362
363 $wgMimeType = 'text/html';
364 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
365 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
366
367 /** Enable to allow rewriting dates in page text.
368 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
369 $wgUseDynamicDates = false;
370 /** Enable for English module to print dates as eg 'May 12' instead of '12 May' */
371 $wgAmericanDates = false;
372 /**
373 * For Hindi and Arabic use local numerals instead of Western style (0-9)
374 * numerals in interface.
375 */
376 $wgTranslateNumerals = true;
377
378
379 # Translation using MediaWiki: namespace
380 # This will increase load times by 25-60% unless memcached is installed
381 # Interface messages will be get from the database.
382 $wgUseDatabaseMessages = true;
383 $wgMsgCacheExpiry = 86400;
384 $wgPartialMessageCache = false;
385
386 # Whether to enable language variant conversion. Currently only zh
387 # supports this function, to convert between Traditional and Simplified
388 # Chinese. This flag is meant to isolate the (untested) conversion
389 # code, so that if it breaks, only zh will be affected
390 $wgDisableLangConversion = false;
391
392 # Use article validation feature; turned off by default
393 $wgUseValidation = false;
394
395 # Whether to use zhdaemon to perform Chinese text processing
396 # zhdaemon is under developement, so normally you don't want to
397 # use it unless for testing
398 $wgUseZhdaemon = false;
399 $wgZhdaemonHost="localhost";
400 $wgZhdaemonPort=2004;
401
402 # Miscellaneous configuration settings
403 #
404
405 $wgLocalInterwiki = 'w';
406 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
407
408 /**
409 * If local interwikis are set up which allow redirects,
410 * set this regexp to restrict URLs which will be displayed
411 * as 'redirected from' links.
412 *
413 * It might look something like this:
414 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
415 *
416 * Leave at false to avoid displaying any incoming redirect markers.
417 * This does not affect intra-wiki redirects, which don't change
418 * the URL.
419 */
420 $wgRedirectSources = false;
421
422
423 $wgShowIPinHeader = true; # For non-logged in users
424 $wgMaxNameChars = 32; # Maximum number of bytes in username
425
426 $wgExtraSubtitle = '';
427 $wgSiteSupportPage = ''; # A page where you users can receive donations
428
429 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
430
431 /**
432 * The debug log file should be not be publicly accessible if it is used, as it
433 * may contain private data. */
434 $wgDebugLogFile = '';
435
436 /**#@+
437 * @global bool
438 */
439 $wgDebugRedirects = false;
440 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
441
442 $wgDebugComments = false;
443 $wgReadOnly = false;
444 $wgLogQueries = false;
445 $wgDebugDumpSql = false;
446
447 /**
448 * Whether to show "we're sorry, but there has been a database error" pages.
449 * Displaying errors aids in debugging, but may display information useful
450 * to an attacker.
451 */
452 $wgShowSQLErrors = false;
453
454 # Should [[Category:Dog]] on a page associate it with the
455 # category "Dog"? (a link to that category page will be
456 # added to the article, clicking it reveals a list of
457 # all articles in the category)
458 $wgUseCategoryMagic = true;
459
460 /**
461 * disable experimental dmoz-like category browsing. Output things like:
462 * Encyclopedia > Music > Style of Music > Jazz
463 */
464 $wgUseCategoryBrowser = false;
465
466 $wgEnablePersistentLC = false; # Obsolete, do not use
467 $wgCompressedPersistentLC = true; # use gzcompressed blobs
468 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
469
470 /**
471 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
472 * to speed up output of the same page viewed by another user with the
473 * same options.
474 *
475 * This can provide a significant speedup for medium to large pages,
476 * so you probably want to keep it on.
477 */
478 $wgEnableParserCache = true;
479
480 /**#@-*/
481
482 /**
483 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
484 * values are easier on the database. A value of 1 causes the counters to be
485 * updated on every hit, any higher value n cause them to update *on average*
486 * every n hits. Should be set to either 1 or something largish, eg 1000, for
487 * maximum efficiency.
488 */
489 $wgHitcounterUpdateFreq = 1;
490
491 # User rights settings
492 #
493 # It's not 100% safe, there could be security hole using that one. Use at your
494 # own risks.
495
496 $wgWhitelistEdit = false; # true = user must login to edit.
497 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
498 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
499
500 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
501
502 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
503 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
504
505 /** Comma-separated list of options to show on the IP block form.
506 * Use strtotime() format, or "infinite" for an infinite block
507 */
508 $wgBlockExpiryOptions = "2 hours,1 day,3 days,1 week,2 weeks,1 month,3 months,6 months,1 year,infinite";
509
510 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
511
512 # Proxy scanner settings
513 #
514
515 /**
516 * If you enable this, every editor's IP address will be scanned for open HTTP
517 * proxies.
518 *
519 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
520 * ISP and ask for your server to be shut down.
521 *
522 * You have been warned.
523 */
524 $wgBlockOpenProxies = false;
525 /** Port we want to scan for a proxy */
526 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
527 /** Script used to scan */
528 $wgProxyScriptPath = "$IP/proxy_check.php";
529 /** */
530 $wgProxyMemcExpiry = 86400;
531 /** This should always be customised in LocalSettings.php */
532 $wgSecretKey = false;
533 /** big list of banned IP addresses, in the keys not the values */
534 $wgProxyList = array();
535 /** deprecated */
536 $wgProxyKey = false;
537
538 /** Number of accounts each IP address may create, 0 to disable.
539 * Requires memcached */
540 $wgAccountCreationThrottle = 0;
541
542 # Client-side caching:
543
544 /** Allow client-side caching of pages */
545 $wgCachePages = true;
546
547 /**
548 * Set this to current time to invalidate all prior cached pages. Affects both
549 * client- and server-side caching.
550 */
551 $wgCacheEpoch = '20030516000000';
552
553
554 # Server-side caching:
555
556 /**
557 * This will cache static pages for non-logged-in users to reduce
558 * database traffic on public sites.
559 * Must set $wgShowIPinHeader = false
560 */
561 $wgUseFileCache = false;
562 /** Directory where the cached page will be saved */
563 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
564
565 /**
566 * When using the file cache, we can store the cached HTML gzipped to save disk
567 * space. Pages will then also be served compressed to clients that support it.
568 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
569 * the default LocalSettings.php! If you enable this, remove that setting first.
570 *
571 * Requires zlib support enabled in PHP.
572 */
573 $wgUseGzip = false;
574
575 # Email notification settings
576 #
577
578 /**
579 * Program to run when the email is actually sent out. You might want to make
580 * your server beep for example. Usermailer.php will make a system() call with
581 * exactly that string as parameter.
582 */
583 # $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
584 $wgEmailNotificationSystembeep = '';
585
586 /** For email notification on page changes */
587 $wgPasswordSender = $wgEmergencyContact;
588
589 # true: from PageEditor if s/he opted-in
590 # false: Enotif mails appear to come from $wgEmergencyContact
591 $wgEmailNotificationMailsSentFromPageEditor = false;
592
593 // TODO move UPO to preferences probably ?
594 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
595 # If set to false, the corresponding input form on the user preference page is suppressed
596 # It call this to be a "user-preferences-option (UPO)"
597 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
598 $wgEmailNotificationForWatchlistPages = false; # UPO
599 $wgEmailNotificationForUserTalkPages = false; # UPO
600 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
601 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
602 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
603
604
605 /** Show watching users in recent changes, watchlist and page history views */
606 $wgRCShowWatchingUsers = false; # UPO
607 /** Show watching users in Page views */
608 $wgPageShowWatchingUsers = false;
609 /**
610 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
611 * view for watched pages with new changes */
612 $wgShowUpdatedMarker = true; # UPO
613
614 $wgCookieExpiration = 2592000;
615
616 # Squid-related settings
617 #
618
619 /** Enable/disable Squid */
620 $wgUseSquid = false;
621
622 /** If you run Squid3 with ESI support, enable this (default:false): */
623 $wgUseESI = false;
624
625 /** Internal server name as known to Squid, if different */
626 # $wgInternalServer = 'http://yourinternal.tld:8000';
627 $wgInternalServer = $wgServer;
628
629 /**
630 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
631 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
632 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
633 * days
634 */
635 $wgSquidMaxage = 18000;
636
637 /**
638 * A list of proxy servers (ips if possible) to purge on changes don't specify
639 * ports here (80 is default)
640 */
641 # $wgSquidServers = array('127.0.0.1');
642 $wgSquidServers = array();
643 $wgSquidServersNoPurge = array();
644
645 /** Maximum number of titles to purge in any one client operation */
646 $wgMaxSquidPurgeTitles = 400;
647
648
649 # Cookie settings:
650 #
651 /**
652 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
653 * or ".any.subdomain.net"
654 */
655 $wgCookieDomain = '';
656 $wgCookiePath = '/';
657 $wgDisableCookieCheck = false;
658
659 /** Whether to allow inline image pointing to other websites */
660 $wgAllowExternalImages = true;
661
662 /** Disable database-intensive features */
663 $wgMiserMode = false;
664 /** Disable all query pages if miser mode is on, not just some */
665 $wgDisableQueryPages = false;
666 /** Generate a watchlist once every hour or so */
667 $wgUseWatchlistCache = false;
668 /** The hour or so mentioned above */
669 $wgWLCacheTimeout = 3600;
670
671 /**
672 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
673 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
674 * (ImageMagick) installed and available in the PATH.
675 * Please see math/README for more information.
676 */
677 $wgUseTeX = false;
678 /** Location of the texvc binary */
679 $wgTexvc = './math/texvc';
680
681 #
682 # Profiling / debugging
683 #
684
685 /** Enable for more detailed by-function times in debug log */
686 $wgProfiling = false;
687 /** Only record profiling info for pages that took longer than this */
688 $wgProfileLimit = 0.0;
689 /** Don't put non-profiling info into log file */
690 $wgProfileOnly = false;
691 /** Log sums from profiling into "profiling" table in db. */
692 $wgProfileToDatabase = false;
693 /** Only profile every n requests when profiling is turned on */
694 $wgProfileSampleRate = 1;
695 /** If true, print a raw call tree instead of per-function report */
696 $wgProfileCallTree = false;
697
698 /** Detects non-matching wfProfileIn/wfProfileOut calls */
699 $wgDebugProfiling = false;
700 /** Output debug message on every wfProfileIn/wfProfileOut */
701 $wgDebugFunctionEntry = 0;
702 /** Lots of debugging output from SquidUpdate.php */
703 $wgDebugSquid = false;
704
705 $wgDisableCounters = false;
706 $wgDisableTextSearch = false;
707 /**
708 * If you've disabled search semi-permanently, this also disables updates to the
709 * table. If you ever re-enable, be sure to rebuild the search table.
710 */
711 $wgDisableSearchUpdate = false;
712 /** Uploads have to be specially set up to be secure */
713 $wgDisableUploads = true;
714 /**
715 * Set to true to enable the upload _link_ while local uploads are disabled.
716 * Assumes that the special page link will be bounced to another server where
717 * uploads do work.
718 */
719 $wgRemoteUploads = false;
720 $wgDisableAnonTalk = false;
721
722 /**
723 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
724 * fall back to the old behaviour (no merging).
725 */
726 $wgDiff3 = '/usr/bin/diff3';
727
728 /**
729 * We can also compress text in the old revisions table. If this is set on, old
730 * revisions will be compressed on page save if zlib support is available. Any
731 * compressed revisions will be decompressed on load regardless of this setting
732 * *but will not be readable at all* if zlib support is not available.
733 */
734 $wgCompressRevisions = false;
735
736 /**
737 * This is the list of preferred extensions for uploading files. Uploading files
738 * with extensions not in this list will trigger a warning.
739 */
740 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
741
742 /** Files with these extensions will never be allowed as uploads. */
743 $wgFileBlacklist = array(
744 # HTML may contain cookie-stealing JavaScript and web bugs
745 'html', 'htm',
746 # PHP scripts may execute arbitrary code on the server
747 'php', 'phtml', 'php3', 'php4', 'phps',
748 # Other types that may be interpreted by some servers
749 'shtml', 'jhtml', 'pl', 'py', 'cgi',
750 # May contain harmful executables for Windows victims
751 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
752
753 /** This is a flag to determine whether or not to check file extensions on upload. */
754 $wgCheckFileExtensions = true;
755
756 /**
757 * If this is turned off, users may override the warning for files not covered
758 * by $wgFileExtensions.
759 */
760 $wgStrictFileExtensions = true;
761
762 /** Warn if uploaded files are larger than this */
763 $wgUploadSizeWarning = 150000;
764
765 /** For compatibility with old installations set to false */
766 $wgPasswordSalt = true;
767
768 /** Which namespaces should support subpages?
769 * See Language.php for a list of namespaces.
770 */
771 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
772 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
773
774 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
775 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
776
777 /** If set, a bold ugly notice will show up at the top of every page. */
778 $wgSiteNotice = '';
779
780
781 #
782 # Images settings
783 #
784
785 /** dynamic server side image resizing ("Thumbnails") */
786 $wgUseImageResize = false;
787
788 /**
789 * Resizing can be done using PHP's internal image libraries or using
790 * ImageMagick. The later supports more file formats than PHP, which only
791 * supports PNG, GIF, JPG, XBM and WBMP.
792 *
793 * Use Image Magick instead of PHP builtin functions.
794 */
795 $wgUseImageMagick = false;
796 /** The convert command shipped with ImageMagick */
797 $wgImageMagickConvertCommand = '/usr/bin/convert';
798
799 # Scalable Vector Graphics (SVG) may be uploaded as images.
800 # Since SVG support is not yet standard in browsers, it is
801 # necessary to rasterize SVGs to PNG as a fallback format.
802 #
803 # An external program is required to perform this conversion:
804 $wgSVGConverters = array(
805 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
806 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
807 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
808 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
809 );
810 /** Pick one of the above */
811 $wgSVGConverter = 'ImageMagick';
812 /** If not in the executable PATH, specify */
813 $wgSVGConverterPath = '';
814
815 /** @todo FIXME what does it do here ?? [ashar] */
816 if( !isset( $wgCommandLineMode ) ) {
817 $wgCommandLineMode = false;
818 }
819
820
821 #
822 # Recent changes settings
823 #
824
825 /** Show seconds in Recent Changes */
826 $wgRCSeconds = false;
827
828 /** Log IP addresses in the recentchanges table */
829 $wgPutIPinRC = false;
830
831 /**
832 * Recentchanges items are periodically purged; entries older than this many
833 * seconds will go.
834 * For one week : 7 * 24 * 3600
835 */
836 $wgRCMaxAge = 7 * 24 * 3600;
837
838
839 #
840 # Copyright and credits settings
841 #
842
843 /** RDF metadata toggles */
844 $wgEnableDublinCoreRdf = false;
845 $wgEnableCreativeCommonsRdf = false;
846
847 /** Override for copyright metadata.
848 * TODO: these options need documentation
849 */
850 $wgRightsPage = NULL;
851 $wgRightsUrl = NULL;
852 $wgRightsText = NULL;
853 $wgRightsIcon = NULL;
854
855 /** Set this to some HTML to override the rights icon with an arbitrary logo */
856 $wgCopyrightIcon = NULL;
857
858 /** Set this to true if you want detailed copyright information forms on Upload. */
859 $wgUseCopyrightUpload = false;
860
861 /** Set this to false if you want to disable checking that detailed copyright
862 * information values are not empty. */
863 $wgCheckCopyrightUpload = true;
864
865 /**
866 * Set this to the number of authors that you want to be credited below an
867 * article text. Set it to zero to hide the attribution block, and a negative
868 * number (like -1) to show all authors. Note that this will# require 2-3 extra
869 * database hits, which can have a not insignificant impact on performance for
870 * large wikis.
871 */
872 $wgMaxCredits = 0;
873
874 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
875 * Otherwise, link to a separate credits page. */
876 $wgShowCreditsIfMax = true;
877
878
879
880 /**
881 * Set this to false to avoid forcing the first letter of links to capitals.
882 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
883 * appearing with a capital at the beginning of a sentence will *not* go to the
884 * same place as links in the middle of a sentence using a lowercase initial.
885 */
886 $wgCapitalLinks = true;
887
888 /**
889 * List of interwiki prefixes for wikis we'll accept as sources for
890 * Special:Import (for sysops). Since complete page history# can be imported,
891 * these should be 'trusted'.
892 */
893 $wgImportSources = array();
894
895
896
897 /** Text matching this regular expression will be recognised as spam
898 * See http://en.wikipedia.org/wiki/Regular_expression */
899 $wgSpamRegex = false;
900 /** Similarly if this function returns true */
901 $wgFilterCallback = false;
902
903 /** Go button goes straight to the edit screen if the article doesn't exist. */
904 $wgGoToEdit = false;
905
906 /** Allow limited user-specified HTML in wiki pages?
907 * It will be run through a whitelist for security. Set this to false if you
908 * want wiki pages to consist only of wiki markup. Note that replacements do not
909 * yet exist for all HTML constructs.*/
910 $wgUserHtml = true;
911
912 /** Allow raw, unchecked HTML in <html>...</html> sections.
913 * THIS IS VERY DANGEROUS on a publically editable site, so you can't enable it
914 * unless you've restricted editing to trusted users only with $wgWhitelistEdit.
915 */
916 $wgRawHtml = false;
917
918 /**
919 * $wgUseTidy: use tidy to make sure HTML output is sane.
920 * This should only be enabled if $wgUserHtml is true.
921 * tidy is a free tool that fixes broken HTML.
922 * See http://www.w3.org/People/Raggett/tidy/
923 * $wgTidyBin should be set to the path of the binary and
924 * $wgTidyConf to the path of the configuration file.
925 * $wgTidyOpts can include any number of parameters.
926 */
927 $wgUseTidy = false;
928 $wgTidyBin = 'tidy';
929 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
930 $wgTidyOpts = '';
931
932 /** See list of skins and their symbolic names in languagel/Language.php */
933 $wgDefaultSkin = 'monobook';
934
935 /**
936 * Settings added to this array will override the language globals for the user
937 * preferences used by anonymous visitors and newly created accounts. (See names
938 * and sample values in languages/Language.php)
939 * For instance, to disable section editing links:
940 * $wgDefaultUserOptions ['editsection'] = 0;
941 *
942 */
943 $wgDefaultUserOptions = array();
944
945 /** Whether or not to allow and use real name fields. Defaults to true. */
946 $wgAllowRealName = true;
947
948 /** Use XML parser? */
949 $wgUseXMLparser = false ;
950
951 /** Extensions */
952 $wgSkinExtensionFunctions = array();
953 $wgExtensionFunctions = array();
954
955 /**
956 * Allow user Javascript page?
957 * This enables a lot of neat customizations, but may
958 * increase security risk to users and server load.
959 */
960 $wgAllowUserJs = false;
961
962 /**
963 * Allow user Cascading Style Sheets (CSS)?
964 * This enables a lot of neat customizations, but may
965 * increase security risk to users and server load.
966 */
967 $wgAllowUserCss = false;
968
969 /** Use the site's Javascript page? */
970 $wgUseSiteJs = true;
971
972 /** Use the site's Cascading Style Sheets (CSS)? */
973 $wgUseSiteCss = true;
974
975 /** Filter for Special:Randompage. Part of a WHERE clause */
976 $wgExtraRandompageSQL = false;
977
978 /** Allow the "info" action, very inefficient at the moment */
979 $wgAllowPageInfo = false;
980
981 /** Maximum indent level of toc. */
982 $wgMaxTocLevel = 999;
983
984 /** Use external C++ diff engine (module wikidiff from the extensions package) */
985 $wgUseExternalDiffEngine = false;
986
987 /** Use RC Patrolling to check for vandalism */
988 $wgUseRCPatrol = true;
989
990 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
991 * eg Recentchanges, Newpages. */
992 $wgFeedLimit = 50;
993
994 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
995 * A cached version will continue to be served out even if changes
996 * are made, until this many seconds runs out since the last render. */
997 $wgFeedCacheTimeout = 60;
998
999 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1000 * pages larger than this size. */
1001 $wgFeedDiffCutoff = 32768;
1002
1003
1004 /**
1005 * Additional namespaces. If the namespaces defined in Language.php and
1006 * Namespace.php are insufficient,# you can create new ones here, for example,
1007 * to import Help files in other languages.
1008 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1009 * no longer be accessible. If you rename it, then you can access them through
1010 * the new namespace name.
1011 *
1012 * Custom namespaces should start at 100 and stop at 255 (hard limit set by
1013 * database).
1014 */
1015 #$wgExtraNamespaces =
1016 # array(100 => "Hilfe",
1017 # 101 => "Hilfe_Diskussion",
1018 # 102 => "Aide",
1019 # 103 => "Discussion_Aide"
1020 # );
1021 $wgExtraNamespaces = NULL;
1022
1023 /**
1024 * Enable SOAP interface. Off by default
1025 * SOAP is a protocoll for remote procedure calls (RPC) using http as
1026 * middleware. This interface can be used by bots or special clients to receive
1027 * articles from a wiki.
1028 * Most bots use the normal HTTP interface and don't use SOAP.
1029 * If unsure, set to false.
1030 */
1031 $wgEnableSOAP = false;
1032
1033 /**
1034 * Limit images on image description pages to a user-selectable limit. In order
1035 * to reduce disk usage, limits can only be selected from a list. This is the
1036 * list of settings the user can choose from:
1037 */
1038 $wgImageLimits = array (
1039 array(320,240),
1040 array(640,480),
1041 array(800,600),
1042 array(1024,768),
1043 array(1280,1024),
1044 array(10000,10000) );
1045
1046
1047 /** Navigation links for the user sidebar.
1048 * 'text' is the name of the MediaWiki message that contains the label of this link
1049 * 'href' is the name of the MediaWiki message that contains the link target of this link.
1050 * Link targets starting with http are considered remote links. Ones not starting with
1051 * http are considered as names of local wiki pages.
1052 */
1053 $wgNavigationLinks = array (
1054 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
1055 array( 'text'=>'portal', 'href'=>'portal-url' ),
1056 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
1057 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
1058 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
1059 array( 'text'=>'help', 'href'=>'helppage' ),
1060 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
1061 );
1062
1063 /**
1064 * On category pages, show thumbnail gallery for images belonging to that
1065 * category instead of listing them as articles.
1066 */
1067 $wgCategoryMagicGallery = true;
1068
1069 /**
1070 * Browser Blacklist for unicode non compliant browsers
1071 * Contains a list of regexps : "/regexp/" matching problematic browsers
1072 */
1073 $wgBrowserBlackList = array(
1074 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
1075 // FIXME: Add some accurate, true things here
1076 );
1077
1078 /**
1079 * Fake out the timezone that the server thinks it's in. This will be used for
1080 * date display and not for what's stored in the DB. Leave to null to retain
1081 * your server's OS-based timezone value. This is the same as the timezone.
1082 */
1083 # $wgLocaltimezone = 'GMT';
1084 # $wgLocaltimezone = 'PST8PDT';
1085 # $wgLocaltimezone = 'Europe/Sweden';
1086 # $wgLocaltimezone = 'CET';
1087 $wgLocaltimezone = null;
1088
1089 /**
1090 * User level management
1091 * The number is the database id of a group you want users to be attached by
1092 * default. A better interface should be coded [av]
1093 */
1094 $wgAnonGroupId = 1;
1095 $wgLoggedInGroupId = 2;
1096 $wgSysopGroupId = 3;
1097 $wgBureaucratGroupId = 4;
1098
1099 /**
1100 * When translating messages with wfMsg(), it is not always clear what should be
1101 * considered UI messages and what shoud be content messages.
1102 *
1103 * For example, for regular wikipedia site like en, there should be only one
1104 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1105 * it as content of the site and call wfMsgForContent(), while for rendering the
1106 * text of the link, we call wfMsg(). The code in default behaves this way.
1107 * However, sites like common do offer different versions of 'mainpage' and the
1108 * like for different languages. This array provides a way to override the
1109 * default behavior. For example, to allow language specific mainpage and
1110 * community portal, set
1111 *
1112 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1113 */
1114 $wgForceUIMsgAsContentMsg = array();
1115
1116
1117 /**
1118 * Authentication plugin.
1119 */
1120 $wgAuth = null;
1121
1122 /**
1123 * Global list of hooks.
1124 * Add a hook by doing:
1125 * $wgHooks['event_name'][] = $function;
1126 * or:
1127 * $wgHooks['event_name'][] = array($function, $data);
1128 * or:
1129 * $wgHooks['event_name'][] = array($object, 'method');
1130 */
1131 $wgHooks = array();
1132
1133 /**
1134 * Experimental preview feature to fetch rendered text
1135 * over an XMLHttpRequest from JavaScript instead of
1136 * forcing a submit and reload of the whole page.
1137 * Leave disabled unless you're testing it.
1138 */
1139 $wgLivePreview = false;
1140
1141 /**
1142 * Disable the internal MySQL-based search, to allow it to be
1143 * implemented by an extension instead.
1144 */
1145 $wgDisableInternalSearch = false;
1146
1147 /**
1148 * Set this to a URL to forward search requests to some external location.
1149 * If the URL includes '$1', this will be replaced with the URL-encoded
1150 * search term.
1151 *
1152 * For example, to forward to Google you'd have something like:
1153 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1154 * '&domains=http://example.com' .
1155 * '&sitesearch=http://example.com' .
1156 * '&ie=utf-8&oe=utf-8';
1157 */
1158 $wgSearchForwardUrl = null;
1159
1160 /**
1161 * If true, external URL links in wiki text will be given the
1162 * rel="nofollow" attribute as a hint to search engines that
1163 * they should not be followed for ranking purposes as they
1164 * are user-supplied and thus subject to spamming.
1165 */
1166 $wgNoFollowLinks = true;
1167
1168 /**
1169 * Specifies the minimal length of a user password. If set to
1170 * 0, empty passwords are allowed.
1171 */
1172 $wgMinimalPasswordLength = 0;
1173
1174 } else {
1175 die();
1176 }
1177 ?>