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