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