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