Making the secret key source a bit more robust for existing installations
[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 # Whether to use zhdaemon to perform Chinese text processing
393 # zhdaemon is under developement, so normally you don't want to
394 # use it unless for testing
395 $wgUseZhdaemon = false;
396 $wgZhdaemonHost="localhost";
397 $wgZhdaemonPort=2004;
398
399 # Miscellaneous configuration settings
400 #
401
402 $wgLocalInterwiki = 'w';
403 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
404
405 /**
406 * If local interwikis are set up which allow redirects,
407 * set this regexp to restrict URLs which will be displayed
408 * as 'redirected from' links.
409 *
410 * It might look something like this:
411 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
412 *
413 * Leave at false to avoid displaying any incoming redirect markers.
414 * This does not affect intra-wiki redirects, which don't change
415 * the URL.
416 */
417 $wgRedirectSources = false;
418
419
420 $wgShowIPinHeader = true; # For non-logged in users
421 $wgMaxNameChars = 32; # Maximum number of bytes in username
422
423 $wgExtraSubtitle = '';
424 $wgSiteSupportPage = ''; # A page where you users can receive donations
425
426 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
427
428 /**
429 * The debug log file should be not be publicly accessible if it is used, as it
430 * may contain private data. */
431 $wgDebugLogFile = '';
432
433 /**#@+
434 * @global bool
435 */
436 $wgDebugRedirects = false;
437 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
438
439 $wgDebugComments = false;
440 $wgReadOnly = false;
441 $wgLogQueries = false;
442 $wgDebugDumpSql = false;
443
444 /**
445 * Whether to show "we're sorry, but there has been a database error" pages.
446 * Displaying errors aids in debugging, but may display information useful
447 * to an attacker.
448 */
449 $wgShowSQLErrors = false;
450
451 # Should [[Category:Dog]] on a page associate it with the
452 # category "Dog"? (a link to that category page will be
453 # added to the article, clicking it reveals a list of
454 # all articles in the category)
455 $wgUseCategoryMagic = true;
456
457 /**
458 * disable experimental dmoz-like category browsing. Output things like:
459 * Encyclopedia > Music > Style of Music > Jazz
460 */
461 $wgUseCategoryBrowser = false;
462
463 $wgEnablePersistentLC = false; # Obsolete, do not use
464 $wgCompressedPersistentLC = true; # use gzcompressed blobs
465 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
466
467 /**
468 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
469 * to speed up output of the same page viewed by another user with the
470 * same options.
471 *
472 * This can provide a significant speedup for medium to large pages,
473 * so you probably want to keep it on.
474 */
475 $wgEnableParserCache = true;
476
477 /**#@-*/
478
479 /**
480 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
481 * values are easier on the database. A value of 1 causes the counters to be
482 * updated on every hit, any higher value n cause them to update *on average*
483 * every n hits. Should be set to either 1 or something largish, eg 1000, for
484 * maximum efficiency.
485 */
486 $wgHitcounterUpdateFreq = 1;
487
488 # User rights settings
489 #
490 # It's not 100% safe, there could be security hole using that one. Use at your
491 # own risks.
492
493 $wgWhitelistEdit = false; # true = user must login to edit.
494 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
495 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
496
497 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
498
499 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
500 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
501
502 /** Comma-separated list of options to show on the IP block form.
503 * Use strtotime() format, or "infinite" for an infinite block
504 */
505 $wgBlockExpiryOptions = "2 hours,1 day,3 days,1 week,2 weeks,1 month,3 months,6 months,1 year,infinite";
506
507 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
508
509 # Proxy scanner settings
510 #
511
512 /**
513 * If you enable this, every editor's IP address will be scanned for open HTTP
514 * proxies.
515 *
516 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
517 * ISP and ask for your server to be shut down.
518 *
519 * You have been warned.
520 */
521 $wgBlockOpenProxies = false;
522 /** Port we want to scan for a proxy */
523 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
524 /** Script used to scan */
525 $wgProxyScriptPath = "$IP/proxy_check.php";
526 /** */
527 $wgProxyMemcExpiry = 86400;
528 /** This should always be customised in LocalSettings.php */
529 $wgSecretKey = false;
530 /** big list of banned IP addresses, in the keys not the values */
531 $wgProxyList = array();
532
533 /** Number of accounts each IP address may create, 0 to disable.
534 * Requires memcached */
535 $wgAccountCreationThrottle = 0;
536
537 # Client-side caching:
538
539 /** Allow client-side caching of pages */
540 $wgCachePages = true;
541
542 /**
543 * Set this to current time to invalidate all prior cached pages. Affects both
544 * client- and server-side caching.
545 */
546 $wgCacheEpoch = '20030516000000';
547
548
549 # Server-side caching:
550
551 /**
552 * This will cache static pages for non-logged-in users to reduce
553 * database traffic on public sites.
554 * Must set $wgShowIPinHeader = false
555 */
556 $wgUseFileCache = false;
557 /** Directory where the cached page will be saved */
558 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
559
560 /**
561 * When using the file cache, we can store the cached HTML gzipped to save disk
562 * space. Pages will then also be served compressed to clients that support it.
563 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
564 * the default LocalSettings.php! If you enable this, remove that setting first.
565 *
566 * Requires zlib support enabled in PHP.
567 */
568 $wgUseGzip = false;
569
570 # Email notification settings
571 #
572
573 /**
574 * Program to run when the email is actually sent out. You might want to make
575 * your server beep for example. Usermailer.php will make a system() call with
576 * exactly that string as parameter.
577 */
578 # $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
579 $wgEmailNotificationSystembeep = '';
580
581 /** For email notification on page changes */
582 $wgPasswordSender = $wgEmergencyContact;
583
584 # true: from PageEditor if s/he opted-in
585 # false: Enotif mails appear to come from $wgEmergencyContact
586 $wgEmailNotificationMailsSentFromPageEditor = false;
587
588 // TODO move UPO to preferences probably ?
589 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
590 # If set to false, the corresponding input form on the user preference page is suppressed
591 # It call this to be a "user-preferences-option (UPO)"
592 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
593 $wgEmailNotificationForWatchlistPages = false; # UPO
594 $wgEmailNotificationForUserTalkPages = false; # UPO
595 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
596 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
597 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
598
599
600 /** Show watching users in recent changes, watchlist and page history views */
601 $wgRCShowWatchingUsers = false; # UPO
602 /** Show watching users in Page views */
603 $wgPageShowWatchingUsers = false;
604 /**
605 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
606 * view for watched pages with new changes */
607 $wgShowUpdatedMarker = true; # UPO
608
609 $wgCookieExpiration = 2592000;
610
611 # Squid-related settings
612 #
613
614 /** Enable/disable Squid */
615 $wgUseSquid = false;
616
617 /** If you run Squid3 with ESI support, enable this (default:false): */
618 $wgUseESI = false;
619
620 /** Internal server name as known to Squid, if different */
621 # $wgInternalServer = 'http://yourinternal.tld:8000';
622 $wgInternalServer = $wgServer;
623
624 /**
625 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
626 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
627 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
628 * days
629 */
630 $wgSquidMaxage = 18000;
631
632 /**
633 * A list of proxy servers (ips if possible) to purge on changes don't specify
634 * ports here (80 is default)
635 */
636 # $wgSquidServers = array('127.0.0.1');
637 $wgSquidServers = array();
638 $wgSquidServersNoPurge = array();
639
640 /** Maximum number of titles to purge in any one client operation */
641 $wgMaxSquidPurgeTitles = 400;
642
643
644 # Cookie settings:
645 #
646 /**
647 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
648 * or ".any.subdomain.net"
649 */
650 $wgCookieDomain = '';
651 $wgCookiePath = '/';
652 $wgDisableCookieCheck = false;
653
654 /** Whether to allow inline image pointing to other websites */
655 $wgAllowExternalImages = true;
656
657 /** Disable database-intensive features */
658 $wgMiserMode = false;
659 /** Disable all query pages if miser mode is on, not just some */
660 $wgDisableQueryPages = false;
661 /** Generate a watchlist once every hour or so */
662 $wgUseWatchlistCache = false;
663 /** The hour or so mentioned above */
664 $wgWLCacheTimeout = 3600;
665
666 /**
667 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
668 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
669 * (ImageMagick) installed and available in the PATH.
670 * Please see math/README for more information.
671 */
672 $wgUseTeX = false;
673 /** Location of the texvc binary */
674 $wgTexvc = './math/texvc';
675
676 #
677 # Profiling / debugging
678 #
679
680 /** Enable for more detailed by-function times in debug log */
681 $wgProfiling = false;
682 /** Only record profiling info for pages that took longer than this */
683 $wgProfileLimit = 0.0;
684 /** Don't put non-profiling info into log file */
685 $wgProfileOnly = false;
686 /** Log sums from profiling into "profiling" table in db. */
687 $wgProfileToDatabase = false;
688 /** Only profile every n requests when profiling is turned on */
689 $wgProfileSampleRate = 1;
690 /** If true, print a raw call tree instead of per-function report */
691 $wgProfileCallTree = false;
692
693 /** Detects non-matching wfProfileIn/wfProfileOut calls */
694 $wgDebugProfiling = false;
695 /** Output debug message on every wfProfileIn/wfProfileOut */
696 $wgDebugFunctionEntry = 0;
697 /** Lots of debugging output from SquidUpdate.php */
698 $wgDebugSquid = false;
699
700 $wgDisableCounters = false;
701 $wgDisableTextSearch = false;
702 /**
703 * If you've disabled search semi-permanently, this also disables updates to the
704 * table. If you ever re-enable, be sure to rebuild the search table.
705 */
706 $wgDisableSearchUpdate = false;
707 /** Uploads have to be specially set up to be secure */
708 $wgDisableUploads = true;
709 /**
710 * Set to true to enable the upload _link_ while local uploads are disabled.
711 * Assumes that the special page link will be bounced to another server where
712 * uploads do work.
713 */
714 $wgRemoteUploads = false;
715 $wgDisableAnonTalk = false;
716
717 /**
718 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
719 * fall back to the old behaviour (no merging).
720 */
721 $wgDiff3 = '/usr/bin/diff3';
722
723 /**
724 * We can also compress text in the old revisions table. If this is set on, old
725 * revisions will be compressed on page save if zlib support is available. Any
726 * compressed revisions will be decompressed on load regardless of this setting
727 * *but will not be readable at all* if zlib support is not available.
728 */
729 $wgCompressRevisions = false;
730
731 /**
732 * This is the list of preferred extensions for uploading files. Uploading files
733 * with extensions not in this list will trigger a warning.
734 */
735 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
736
737 /** Files with these extensions will never be allowed as uploads. */
738 $wgFileBlacklist = array(
739 # HTML may contain cookie-stealing JavaScript and web bugs
740 'html', 'htm',
741 # PHP scripts may execute arbitrary code on the server
742 'php', 'phtml', 'php3', 'php4', 'phps',
743 # Other types that may be interpreted by some servers
744 'shtml', 'jhtml', 'pl', 'py', 'cgi',
745 # May contain harmful executables for Windows victims
746 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
747
748 /** This is a flag to determine whether or not to check file extensions on upload. */
749 $wgCheckFileExtensions = true;
750
751 /**
752 * If this is turned off, users may override the warning for files not covered
753 * by $wgFileExtensions.
754 */
755 $wgStrictFileExtensions = true;
756
757 /** Warn if uploaded files are larger than this */
758 $wgUploadSizeWarning = 150000;
759
760 /** For compatibility with old installations set to false */
761 $wgPasswordSalt = true;
762
763 /** Which namespaces should support subpages?
764 * See Language.php for a list of namespaces.
765 */
766 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
767 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
768
769 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
770 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
771
772 /** If set, a bold ugly notice will show up at the top of every page. */
773 $wgSiteNotice = '';
774
775
776 #
777 # Images settings
778 #
779
780 /** dynamic server side image resizing ("Thumbnails") */
781 $wgUseImageResize = false;
782
783 /**
784 * Resizing can be done using PHP's internal image libraries or using
785 * ImageMagick. The later supports more file formats than PHP, which only
786 * supports PNG, GIF, JPG, XBM and WBMP.
787 *
788 * Use Image Magick instead of PHP builtin functions.
789 */
790 $wgUseImageMagick = false;
791 /** The convert command shipped with ImageMagick */
792 $wgImageMagickConvertCommand = '/usr/bin/convert';
793
794 # Scalable Vector Graphics (SVG) may be uploaded as images.
795 # Since SVG support is not yet standard in browsers, it is
796 # necessary to rasterize SVGs to PNG as a fallback format.
797 #
798 # An external program is required to perform this conversion:
799 $wgSVGConverters = array(
800 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
801 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
802 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
803 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
804 );
805 /** Pick one of the above */
806 $wgSVGConverter = 'ImageMagick';
807 /** If not in the executable PATH, specify */
808 $wgSVGConverterPath = '';
809
810 /** @todo FIXME what does it do here ?? [ashar] */
811 if( !isset( $wgCommandLineMode ) ) {
812 $wgCommandLineMode = false;
813 }
814
815
816 #
817 # Recent changes settings
818 #
819
820 /** Show seconds in Recent Changes */
821 $wgRCSeconds = false;
822
823 /** Log IP addresses in the recentchanges table */
824 $wgPutIPinRC = false;
825
826 /**
827 * Recentchanges items are periodically purged; entries older than this many
828 * seconds will go.
829 * For one week : 7 * 24 * 3600
830 */
831 $wgRCMaxAge = 7 * 24 * 3600;
832
833
834 #
835 # Copyright and credits settings
836 #
837
838 /** RDF metadata toggles */
839 $wgEnableDublinCoreRdf = false;
840 $wgEnableCreativeCommonsRdf = false;
841
842 /** Override for copyright metadata.
843 * TODO: these options need documentation
844 */
845 $wgRightsPage = NULL;
846 $wgRightsUrl = NULL;
847 $wgRightsText = NULL;
848 $wgRightsIcon = NULL;
849
850 /** Set this to some HTML to override the rights icon with an arbitrary logo */
851 $wgCopyrightIcon = NULL;
852
853 /** Set this to true if you want detailed copyright information forms on Upload. */
854 $wgUseCopyrightUpload = false;
855
856 /** Set this to false if you want to disable checking that detailed copyright
857 * information values are not empty. */
858 $wgCheckCopyrightUpload = true;
859
860 /**
861 * Set this to the number of authors that you want to be credited below an
862 * article text. Set it to zero to hide the attribution block, and a negative
863 * number (like -1) to show all authors. Note that this will# require 2-3 extra
864 * database hits, which can have a not insignificant impact on performance for
865 * large wikis.
866 */
867 $wgMaxCredits = 0;
868
869 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
870 * Otherwise, link to a separate credits page. */
871 $wgShowCreditsIfMax = true;
872
873
874
875 /**
876 * Set this to false to avoid forcing the first letter of links to capitals.
877 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
878 * appearing with a capital at the beginning of a sentence will *not* go to the
879 * same place as links in the middle of a sentence using a lowercase initial.
880 */
881 $wgCapitalLinks = true;
882
883 /**
884 * List of interwiki prefixes for wikis we'll accept as sources for
885 * Special:Import (for sysops). Since complete page history# can be imported,
886 * these should be 'trusted'.
887 */
888 $wgImportSources = array();
889
890
891
892 /** Text matching this regular expression will be recognised as spam
893 * See http://en.wikipedia.org/wiki/Regular_expression */
894 $wgSpamRegex = false;
895 /** Similarly if this function returns true */
896 $wgFilterCallback = false;
897
898 /** Go button goes straight to the edit screen if the article doesn't exist. */
899 $wgGoToEdit = false;
900
901 /** Allow limited user-specified HTML in wiki pages?
902 * It will be run through a whitelist for security. Set this to false if you
903 * want wiki pages to consist only of wiki markup. Note that replacements do not
904 * yet exist for all HTML constructs.*/
905 $wgUserHtml = true;
906
907 /** Allow raw, unchecked HTML in <html>...</html> sections.
908 * THIS IS VERY DANGEROUS on a publically editable site, so you can't enable it
909 * unless you've restricted editing to trusted users only with $wgWhitelistEdit.
910 */
911 $wgRawHtml = false;
912
913 /**
914 * $wgUseTidy: use tidy to make sure HTML output is sane.
915 * This should only be enabled if $wgUserHtml is true.
916 * tidy is a free tool that fixes broken HTML.
917 * See http://www.w3.org/People/Raggett/tidy/
918 * $wgTidyBin should be set to the path of the binary and
919 * $wgTidyConf to the path of the configuration file.
920 * $wgTidyOpts can include any number of parameters.
921 */
922 $wgUseTidy = false;
923 $wgTidyBin = 'tidy';
924 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
925 $wgTidyOpts = '';
926
927 /** See list of skins and their symbolic names in languagel/Language.php */
928 $wgDefaultSkin = 'monobook';
929
930 /**
931 * Settings added to this array will override the language globals for the user
932 * preferences used by anonymous visitors and newly created accounts. (See names
933 * and sample values in languages/Language.php)
934 * For instance, to disable section editing links:
935 * $wgDefaultUserOptions ['editsection'] = 0;
936 *
937 */
938 $wgDefaultUserOptions = array();
939
940 /** Whether or not to allow and use real name fields. Defaults to true. */
941 $wgAllowRealName = true;
942
943 /** Use XML parser? */
944 $wgUseXMLparser = false ;
945
946 /** Extensions */
947 $wgSkinExtensionFunctions = array();
948 $wgExtensionFunctions = array();
949
950 /**
951 * Allow user Javascript page?
952 * This enables a lot of neat customizations, but may
953 * increase security risk to users and server load.
954 */
955 $wgAllowUserJs = false;
956
957 /**
958 * Allow user Cascading Style Sheets (CSS)?
959 * This enables a lot of neat customizations, but may
960 * increase security risk to users and server load.
961 */
962 $wgAllowUserCss = false;
963
964 /** Use the site's Javascript page? */
965 $wgUseSiteJs = true;
966
967 /** Use the site's Cascading Style Sheets (CSS)? */
968 $wgUseSiteCss = true;
969
970 /** Filter for Special:Randompage. Part of a WHERE clause */
971 $wgExtraRandompageSQL = false;
972
973 /** Allow the "info" action, very inefficient at the moment */
974 $wgAllowPageInfo = false;
975
976 /** Maximum indent level of toc. */
977 $wgMaxTocLevel = 999;
978
979 /** Use external C++ diff engine (module wikidiff from the extensions package) */
980 $wgUseExternalDiffEngine = false;
981
982 /** Use RC Patrolling to check for vandalism */
983 $wgUseRCPatrol = true;
984
985 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
986 * eg Recentchanges, Newpages. */
987 $wgFeedLimit = 50;
988
989 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
990 * A cached version will continue to be served out even if changes
991 * are made, until this many seconds runs out since the last render. */
992 $wgFeedCacheTimeout = 60;
993
994 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
995 * pages larger than this size. */
996 $wgFeedDiffCutoff = 32768;
997
998
999 /**
1000 * Additional namespaces. If the namespaces defined in Language.php and
1001 * Namespace.php are insufficient,# you can create new ones here, for example,
1002 * to import Help files in other languages.
1003 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1004 * no longer be accessible. If you rename it, then you can access them through
1005 * the new namespace name.
1006 *
1007 * Custom namespaces should start at 100 and stop at 255 (hard limit set by
1008 * database).
1009 */
1010 #$wgExtraNamespaces =
1011 # array(100 => "Hilfe",
1012 # 101 => "Hilfe_Diskussion",
1013 # 102 => "Aide",
1014 # 103 => "Discussion_Aide"
1015 # );
1016 $wgExtraNamespaces = NULL;
1017
1018 /**
1019 * Enable SOAP interface. Off by default
1020 * SOAP is a protocoll for remote procedure calls (RPC) using http as
1021 * middleware. This interface can be used by bots or special clients to receive
1022 * articles from a wiki.
1023 * Most bots use the normal HTTP interface and don't use SOAP.
1024 * If unsure, set to false.
1025 */
1026 $wgEnableSOAP = false;
1027
1028 /**
1029 * Limit images on image description pages to a user-selectable limit. In order
1030 * to reduce disk usage, limits can only be selected from a list. This is the
1031 * list of settings the user can choose from:
1032 */
1033 $wgImageLimits = array (
1034 array(320,240),
1035 array(640,480),
1036 array(800,600),
1037 array(1024,768),
1038 array(1280,1024),
1039 array(10000,10000) );
1040
1041
1042 /** Navigation links for the user sidebar.
1043 * 'text' is the name of the MediaWiki message that contains the label of this link
1044 * 'href' is the name of the MediaWiki message that contains the link target of this link.
1045 * Link targets starting with http are considered remote links. Ones not starting with
1046 * http are considered as names of local wiki pages.
1047 */
1048 $wgNavigationLinks = array (
1049 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
1050 array( 'text'=>'portal', 'href'=>'portal-url' ),
1051 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
1052 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
1053 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
1054 array( 'text'=>'help', 'href'=>'helppage' ),
1055 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
1056 );
1057
1058 /**
1059 * On category pages, show thumbnail gallery for images belonging to that
1060 * category instead of listing them as articles.
1061 */
1062 $wgCategoryMagicGallery = true;
1063
1064 /**
1065 * Browser Blacklist for unicode non compliant browsers
1066 * Contains a list of regexps : "/regexp/" matching problematic browsers
1067 */
1068 $wgBrowserBlackList = array(
1069 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
1070 // FIXME: Add some accurate, true things here
1071 );
1072
1073 /**
1074 * Fake out the timezone that the server thinks it's in. This will be used for
1075 * date display and not for what's stored in the DB. Leave to null to retain
1076 * your server's OS-based timezone value. This is the same as the timezone.
1077 */
1078 # $wgLocaltimezone = 'GMT';
1079 # $wgLocaltimezone = 'PST8PDT';
1080 # $wgLocaltimezone = 'Europe/Sweden';
1081 # $wgLocaltimezone = 'CET';
1082 $wgLocaltimezone = null;
1083
1084 /**
1085 * User level management
1086 * The number is the database id of a group you want users to be attached by
1087 * default. A better interface should be coded [av]
1088 */
1089 $wgAnonGroupId = 1;
1090 $wgLoggedInGroupId = 2;
1091 $wgSysopGroupId = 3;
1092 $wgBureaucratGroupId = 4;
1093
1094 /**
1095 * When translating messages with wfMsg(), it is not always clear what should be
1096 * considered UI messages and what shoud be content messages.
1097 *
1098 * For example, for regular wikipedia site like en, there should be only one
1099 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1100 * it as content of the site and call wfMsgForContent(), while for rendering the
1101 * text of the link, we call wfMsg(). The code in default behaves this way.
1102 * However, sites like common do offer different versions of 'mainpage' and the
1103 * like for different languages. This array provides a way to override the
1104 * default behavior. For example, to allow language specific mainpage and
1105 * community portal, set
1106 *
1107 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1108 */
1109 $wgForceUIMsgAsContentMsg = array();
1110
1111
1112 /**
1113 * Authentication plugin.
1114 */
1115 $wgAuth = null;
1116
1117 /**
1118 * Global list of hooks.
1119 * Add a hook by doing:
1120 * $wgHooks['event_name'][] = $function;
1121 * or:
1122 * $wgHooks['event_name'][] = array($function, $data);
1123 * or:
1124 * $wgHooks['event_name'][] = array($object, 'method');
1125 */
1126 $wgHooks = array();
1127
1128 /**
1129 * Experimental preview feature to fetch rendered text
1130 * over an XMLHttpRequest from JavaScript instead of
1131 * forcing a submit and reload of the whole page.
1132 * Leave disabled unless you're testing it.
1133 */
1134 $wgLivePreview = false;
1135
1136 /**
1137 * Disable the internal MySQL-based search, to allow it to be
1138 * implemented by an extension instead.
1139 */
1140 $wgDisableInternalSearch = false;
1141
1142 /**
1143 * Set this to a URL to forward search requests to some external location.
1144 * If the URL includes '$1', this will be replaced with the URL-encoded
1145 * search term.
1146 *
1147 * For example, to forward to Google you'd have something like:
1148 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1149 * '&domains=http://example.com' .
1150 * '&sitesearch=http://example.com' .
1151 * '&ie=utf-8&oe=utf-8';
1152 */
1153 $wgSearchForwardUrl = null;
1154
1155 /**
1156 * If true, external URL links in wiki text will be given the
1157 * rel="nofollow" attribute as a hint to search engines that
1158 * they should not be followed for ranking purposes as they
1159 * are user-supplied and thus subject to spamming.
1160 */
1161 $wgNoFollowLinks = true;
1162
1163 /**
1164 * Specifies the minimal length of a user password. If set to
1165 * 0, empty passwords are allowed.
1166 */
1167 $wgMinimalPasswordLength = 0;
1168
1169 } else {
1170 die();
1171 }
1172 ?>