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