Load limiting work for Recentchanges RSS/Atom feeds:
[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.5alpha';
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 * Set to true to enable the e-mail basic features:
169 * Password reminders, etc. If sending e-mail on your
170 * server doesn't work, you might want to disable this.
171 * @global bool $wgEnableEmail
172 */
173 $wgEnableEmail = true;
174
175 /**
176 * Set to true to enable user-to-user e-mail.
177 * This can potentially be abused, as it's hard to track.
178 * @global bool $wgEnableUserEmail
179 */
180 $wgEnableUserEmail = true;
181
182 /**
183 * SMTP Mode
184 * For using a direct (authenticated) SMTP server connection.
185 * Default to false or fill an array :
186 * <code>
187 * "host" => 'SMTP domain',
188 * "IDHost" => 'domain for MessageID',
189 * "port" => "25",
190 * "auth" => true/false,
191 * "username" => user,
192 * "password" => password
193 * </code>
194 *
195 * @global mixed $wgSMTP
196 */
197 $wgSMTP = false;
198
199
200 /**#@+
201 * Database settings
202 */
203 /** database host name or ip address */
204 $wgDBserver = 'localhost';
205 /** name of the database */
206 $wgDBname = 'wikidb';
207 /** */
208 $wgDBconnection = '';
209 /** Database username */
210 $wgDBuser = 'wikiuser';
211 /** Database type
212 * "mysql" for working code and "PostgreSQL" for development/broken code
213 */
214 $wgDBtype = "mysql";
215 /** Search type
216 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
217 * based search engine
218 */
219 $wgSearchType = "MyISAM";
220 /** Table name prefix */
221 $wgDBprefix = '';
222 /** Database schema
223 * on some databases this allows separate
224 * logical namespace for application data
225 */
226 $wgDBschema = 'mediawiki';
227 /**#@-*/
228
229
230
231 # Shared database for multiple wikis.
232 # Presently used for storing a user table for single sign-on
233 # The server for this database must be the same as for the main
234 # database.
235 # EXPERIMENTAL
236 $wgSharedDB = null;
237
238 # Database load balancer
239 # This is a two-dimensional array, an array of server info structures
240 # Fields are:
241 # host: Host name
242 # dbname: Default database name
243 # user: DB user
244 # password: DB password
245 # type: "mysql" or "pgsql"
246 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
247 # flags: bit field
248 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
249 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
250 # DBO_TRX -- wrap entire request in a transaction
251 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
252 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
253 #
254 # Leave at false to use the single-server variables above
255 $wgDBservers = false;
256
257 # Sysop SQL queries
258 # The sql user shouldn't have too many rights other the database, restrict
259 # it to SELECT only on 'cur' table for example
260 #
261 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
262 $wgDBsqluser = 'sqluser';
263 $wgDBsqlpassword = 'sqlpass';
264 $wgDBpassword = 'userpass';
265 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
266 $wgDBerrorLog = false; # File to log MySQL errors to
267
268 # wgDBminWordLen :
269 # MySQL 3.x : used to discard words that MySQL will not return any results for
270 # shorter values configure mysql directly
271 # MySQL 4.x : ignore it and configure mySQL
272 # See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
273 $wgDBminWordLen = 4;
274 $wgDBtransactions = false; # Set to true if using InnoDB tables
275 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
276 $wgSqlTimeout = 30;
277
278 $wgBufferSQLResults = true; # use buffered queries by default
279
280 # Other wikis on this site, can be administered from a single developer account
281 # Array, interwiki prefix => database name
282 $wgLocalDatabases = array();
283
284
285 # Memcached settings
286 # See docs/memcached.doc
287 #
288 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
289 $wgUseMemCached = false;
290 $wgMemCachedServers = array( '127.0.0.1:11000' );
291 $wgMemCachedDebug = false;
292 $wgSessionsInMemcached = false;
293 $wgLinkCacheMemcached = false; # Not fully tested
294
295 /**
296 * Turck MMCache shared memory
297 * You can use this for persistent caching where your wiki runs on a single
298 * server. Enabled by default if Turck is installed. Mutually exclusive with
299 * memcached, memcached is used if both are specified.
300 *
301 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
302 */
303 $wgUseTurckShm = false;
304
305
306 # Language settings
307 #
308 /**
309 * Site language code
310 * Default to 'en'. Should be one of ./language/Language(.*).php
311 * @global string $wgLanguageCode
312 */
313 $wgLanguageCode = 'en';
314
315 /**
316 * Filename of a language file generated by dumpMessages.php
317 * @global string|false $wgLanguageFile (default:false)
318 */
319 $wgLanguageFile = false;
320 /**
321 * Treat language links as magic connectors, not inline links
322 * @global bool $wgInterwikiMagic (default:true)
323 */
324 $wgInterwikiMagic = true;
325 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
326 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
327 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
328 $wgEditEncoding = '';
329
330 # Set this to eg 'ISO-8859-1' to perform character set
331 # conversion when loading old revisions not marked with
332 # "utf-8" flag. Use this when converting wiki to UTF-8
333 # without the burdensome mass conversion of old text data.
334 #
335 # NOTE! This DOES NOT touch any fields other than old_text.
336 # Titles, comments, user names, etc still must be converted
337 # en masse in the database before continuing as a UTF-8 wiki.
338 $wgLegacyEncoding = false;
339
340 $wgMimeType = 'text/html';
341 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
342 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
343 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
344 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
345 $wgAmericanDates = false; # Enable for English module to print dates
346 # as eg 'May 12' instead of '12 May'
347 $wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
348 # of Western style (0-9) numerals in interface.
349
350
351 # Translation using MediaWiki: namespace
352 # This will increase load times by 25-60% unless memcached is installed
353 # Interface messages will be get from the database.
354 $wgUseDatabaseMessages = true;
355 $wgMsgCacheExpiry = 86400;
356 $wgPartialMessageCache = false;
357
358 # Whether to enable language variant conversion. Currently only zh
359 # supports this function, to convert between Traditional and Simplified
360 # Chinese. This flag is meant to isolate the (untested) conversion
361 # code, so that if it breaks, only zh will be affected
362 $wgDisableLangConversion = true;
363
364 # Whether to use zhdaemon to perform Chinese text processing
365 $wgUseZhdaemon = false;
366 $wgZhdaemonHost="localhost";
367 $wgZhdaemonPort=2004;
368
369 # Miscellaneous configuration settings
370 #
371
372 $wgLocalInterwiki = 'w';
373 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
374
375 $wgShowIPinHeader = true; # For non-logged in users
376 $wgMaxNameChars = 32; # Maximum number of bytes in username
377
378 $wgExtraSubtitle = '';
379 $wgSiteSupportPage = ''; # A page where you users can receive donations
380
381 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
382 $wgUseData = false ;
383
384 # The debug log file should be not be publicly accessible if it is
385 # used, as it may contain private data.
386 $wgDebugLogFile = '';
387
388 /**#@+
389 * @global bool
390 */
391 $wgDebugRedirects = false;
392 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
393
394 $wgDebugComments = false;
395 $wgReadOnly = false;
396 $wgLogQueries = false;
397 $wgDebugDumpSql = false;
398
399 # Whether to disable automatic generation of "we're sorry,
400 # but there has been a database error" pages.
401 $wgIgnoreSQLErrors = false;
402
403 # Should [[Category:Dog]] on a page associate it with the
404 # category "Dog"? (a link to that category page will be
405 # added to the article, clicking it reveals a list of
406 # all articles in the category)
407 $wgUseCategoryMagic = true;
408
409 # disable experimental dmoz-like category browsing. Output things like:
410 # Encyclopedia > Music > Style of Music > Jazz
411 # FIXME: need fixing
412 $wgUseCategoryBrowser = false;
413
414 $wgEnablePersistentLC = false; # Obsolete, do not use
415 $wgCompressedPersistentLC = true; # use gzcompressed blobs
416 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
417
418 /**
419 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
420 * to speed up output of the same page viewed by another user with the
421 * same options.
422 *
423 * This can provide a significant speedup for medium to large pages,
424 * so you probably want to keep it on.
425 */
426 $wgEnableParserCache = true;
427
428 /**#@-*/
429
430 # wgHitcounterUpdateFreq sets how often page counters should be
431 # updated, higher values are easier on the database. A value of 1
432 # causes the counters to be updated on every hit, any higher value n
433 # cause them to update *on average* every n hits. Should be set to
434 # either 1 or something largish, eg 1000, for maximum efficiency.
435
436 $wgHitcounterUpdateFreq = 1;
437
438 # User rights
439 # It's not 100% safe, there could be security hole using that one. Use at your
440 # own risks.
441
442 $wgWhitelistEdit = false; # true = user must login to edit.
443 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
444 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
445
446 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
447
448 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
449 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
450 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
451 # strtotime format, or "infinite" for an infinite block
452 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
453
454 # Proxy scanner settings
455 # If you enable this, every editor's IP address will be scanned for open
456 # HTTP proxies.
457 #
458 # Don't enable this. Many sysops will report "hostile TCP port scans" to
459 # your ISP and ask for your server to be shut down.
460 #
461 # You have been warned.
462 #
463 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
464 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
465 $wgProxyScriptPath = "$IP/proxy_check.php";
466 $wgProxyMemcExpiry = 86400;
467 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
468 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
469
470 # Number of accounts each IP address may create, 0 to disable.
471 # Requires memcached
472 $wgAccountCreationThrottle = 0;
473
474
475 # Client-side caching:
476 $wgCachePages = true; # Allow client-side caching of pages
477
478 # Set this to current time to invalidate all prior cached pages.
479 # Affects both client- and server-side caching.
480 $wgCacheEpoch = '20030516000000';
481
482
483 # Server-side caching:
484 # This will cache static pages for non-logged-in users
485 # to reduce database traffic on public sites.
486 # Must set $wgShowIPinHeader = false
487 $wgUseFileCache = false;
488 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
489
490 # When using the file cache, we can store the cached HTML gzipped to save disk
491 # space. Pages will then also be served compressed to clients that support it.
492 # THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
493 # the default LocalSettings.php! If you enable this, remove that setting first.
494 #
495 # Requires zlib support enabled in PHP.
496 $wgUseGzip = false;
497
498
499 $wgCookieExpiration = 2592000;
500
501
502 # Squid-related settings
503 #
504
505 # Enable/disable Squid
506 $wgUseSquid = false;
507
508 # If you run Squid3 with ESI support, enable this (default:false):
509 $wgUseESI = false;
510
511 # Internal server name as known to Squid, if different
512 # $wgInternalServer = 'http://yourinternal.tld:8000';
513 $wgInternalServer = $wgServer;
514
515 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
516 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
517 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
518 $wgSquidMaxage = 18000;
519
520 # A list of proxy servers (ips if possible) to purge on changes
521 # don't specify ports here (80 is default)
522 # $wgSquidServers = array('127.0.0.1');
523
524 # Maximum number of titles to purge in any one client operation
525 $wgMaxSquidPurgeTitles = 400;
526
527
528 # Cookie settings:
529 # Set to set an explicit domain on the login cookies
530 # eg, "justthis.domain.org" or ".any.subdomain.net"
531 $wgCookieDomain = '';
532 $wgCookiePath = '/';
533 $wgDisableCookieCheck = false;
534
535 # Whether to allow inline image pointing to other websites
536 $wgAllowExternalImages = true;
537
538 $wgMiserMode = false; # Disable database-intensive features
539 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
540 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
541 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
542
543 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
544 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
545 # convert (ImageMagick) installed and available in the PATH.
546 # Please see math/README for more information.
547 $wgUseTeX = false;
548 $wgTexvc = './math/texvc'; # Location of the texvc binary
549
550 # Profiling / debugging
551 $wgProfiling = false; # Enable for more detailed by-function times in debug log
552 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
553 $wgProfileOnly = false; # Don't put non-profiling info into log file
554 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
555 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
556 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
557 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
558 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
559
560 $wgDisableCounters = false;
561 $wgDisableTextSearch = false;
562 $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.
563 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
564 $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.
565 $wgDisableAnonTalk = false;
566
567 # Path to the GNU diff3 utility. If the file doesn't exist,
568 # edit conflicts will fall back to the old behaviour (no merging).
569 $wgDiff3 = '/usr/bin/diff3';
570
571
572 # We can also compress text in the old revisions table. If this is set on,
573 # old revisions will be compressed on page save if zlib support is available.
574 # Any compressed revisions will be decompressed on load regardless of this
575 # setting *but will not be readable at all* if zlib support is not available.
576 $wgCompressRevisions = false;
577
578 # This is the list of preferred extensions for uploading files. Uploading
579 # files with extensions not in this list will trigger a warning.
580 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
581
582 # Files with these extensions will never be allowed as uploads.
583 $wgFileBlacklist = array(
584 # HTML may contain cookie-stealing JavaScript and web bugs
585 'html', 'htm',
586 # PHP scripts may execute arbitrary code on the server
587 'php', 'phtml', 'php3', 'php4', 'phps',
588 # Other types that may be interpreted by some servers
589 'shtml', 'jhtml', 'pl', 'py', 'cgi',
590 # May contain harmful executables for Windows victims
591 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
592
593 # This is a flag to determine whether or not to check file extensions on
594 # upload.
595 $wgCheckFileExtensions = true;
596
597 # If this is turned off, users may override the warning for files not
598 # covered by $wgFileExtensions.
599 $wgStrictFileExtensions = true;
600
601 # Warn if uploaded files are larger than this
602 $wgUploadSizeWarning = 150000;
603
604 $wgPasswordSalt = true; # For compatibility with old installations set to false
605
606 # Which namespaces should support subpages?
607 # See Language.php for a list of namespaces.
608 #
609 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
610 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
611
612 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
613 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
614
615 # If set, a bold ugly notice will show up at the top of every page.
616 $wgSiteNotice = "";
617
618 ## Set $wgUseImageResize to true if you want to enable dynamic
619 ## server side image resizing ("Thumbnails")
620 #
621 $wgUseImageResize = false;
622
623 ## Resizing can be done using PHP's internal image libraries
624 ## or using ImageMagick. The later supports more file formats
625 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
626 ##
627 ## Set $wgUseImageMagick to true to use Image Magick instead
628 ## of the builtin functions
629 #
630 $wgUseImageMagick = false;
631 $wgImageMagickConvertCommand = '/usr/bin/convert';
632
633 # Scalable Vector Graphics (SVG) may be uploaded as images.
634 # Since SVG support is not yet standard in browsers, it is
635 # necessary to rasterize SVGs to PNG as a fallback format.
636 #
637 # An external program is required to perform this conversion:
638 $wgSVGConverters = array(
639 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
640 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
641 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
642 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
643 );
644 $wgSVGConverter = 'ImageMagick'; # Pick one of the above
645 $wgSVGConverterPath = ''; # If not in the executable PATH, specify
646
647 if( !isset( $wgCommandLineMode ) ) {
648 $wgCommandLineMode = false;
649 }
650
651 # Show seconds in Recent Changes
652 $wgRCSeconds = false;
653
654 # Log IP addresses in the recentchanges table
655 $wgPutIPinRC = false;
656
657 # RDF metadata toggles
658 $wgEnableDublinCoreRdf = false;
659 $wgEnableCreativeCommonsRdf = false;
660
661 # Override for copyright metadata.
662 # TODO: these options need documentation
663 $wgRightsPage = NULL;
664 $wgRightsUrl = NULL;
665 $wgRightsText = NULL;
666 $wgRightsIcon = NULL;
667
668 # Set this to true if you want detailed copyright information forms on Upload.
669 $wgUseCopyrightUpload = false;
670
671 # Set this to false if you want to disable checking that detailed
672 # copyright information values are not empty.
673 $wgCheckCopyrightUpload = true;
674
675
676 # Set this to false to avoid forcing the first letter of links
677 # to capitals. WARNING: may break links! This makes links
678 # COMPLETELY case-sensitive. Links appearing with a capital at
679 # the beginning of a sentence will *not* go to the same place
680 # as links in the middle of a sentence using a lowercase initial.
681 $wgCapitalLinks = true;
682
683 # List of interwiki prefixes for wikis we'll accept as sources
684 # for Special:Import (for sysops). Since complete page history
685 # can be imported, these should be 'trusted'.
686 $wgImportSources = array();
687
688 # Set this to the number of authors that you want to be credited below an
689 # article text. Set it to zero to hide the attribution block, and a
690 # negative number (like -1) to show all authors. Note that this will
691 # require 2-3 extra database hits, which can have a not insignificant
692 # impact on performance for large wikis.
693 $wgMaxCredits = 0;
694
695 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
696 # Otherwise, link to a separate credits page.
697 $wgShowCreditsIfMax = true;
698
699 # Text matching this regular expression will be recognised as spam
700 # See http://en.wikipedia.org/wiki/Regular_expression
701 $wgSpamRegex = false;
702 # Similarly if this function returns true
703 $wgFilterCallback = false;
704
705 # Go button goes straight to the edit screen if the article doesn't exist
706 $wgGoToEdit = false;
707
708 # Allow limited user-specified HTML in wiki pages?
709 # It will be run through a whitelist for security.
710 # Set this to false if you want wiki pages to consist only of wiki
711 # markup. Note that replacements do not yet exist for all HTML
712 # constructs.
713 $wgUserHtml = true;
714
715 # Allow raw, unchecked HTML in <html>...</html> sections.
716 # THIS IS VERY DANGEROUS on a publically editable site, so
717 # you can't enable it unless you've restricted editing to
718 # trusted users only with $wgWhitelistEdit.
719 $wgRawHtml = false;
720
721 # $wgUseTidy: use tidy to make sure HTML output is sane.
722 # This should only be enabled if $wgUserHtml is true.
723 # tidy is a free tool that fixes broken HTML.
724 # See http://www.w3.org/People/Raggett/tidy/
725 # $wgTidyBin should be set to the path of the binary and
726 # $wgTidyConf to the path of the configuration file.
727 # $wgTidyOpts can include any number of parameters.
728 $wgUseTidy = false;
729 $wgTidyBin = 'tidy';
730 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
731 $wgTidyOpts = '';
732
733 # See list of skins and their symbolic names in languagel/Language.php
734 $wgDefaultSkin = 'monobook';
735
736 # Settings added to this array will override the language globals for
737 # the user preferences used by anonymous visitors and newly created
738 # accounts. (See names and sample values in languages/Language.php)
739 #
740 # For instance, to disable section editing links:
741 # $wgDefaultUserOptions['editsection'] = 0;
742 #
743 $wgDefaultUserOptions = array();
744
745 # Whether or not to allow real name fields. Defaults to true.
746 $wgAllowRealName = true;
747
748 # Use XML parser?
749
750 $wgUseXMLparser = false ;
751
752 # Extensions
753 $wgSkinExtensionFunctions = array();
754 $wgExtensionFunctions = array();
755
756 # Allow user Javascript page?
757 $wgAllowUserJs = true;
758
759 # Allow user Cascading Style Sheets (CSS)?
760 $wgAllowUserCss = true;
761
762 # Use the site's Javascript page?
763 $wgUseSiteJs = true;
764
765 # Use the site's Cascading Style Sheets (CSS)?
766 $wgUseSiteCss = true;
767
768 # Filter for Special:Randompage. Part of a WHERE clause
769 $wgExtraRandompageSQL = false;
770
771 # Allow the "info" action, very inefficient at the moment
772 $wgAllowPageInfo = false;
773
774 # Maximum indent level of toc.
775 $wgMaxTocLevel = 999;
776
777 # Recognise longitude/latitude coordinates
778 $wgUseGeoMode = false;
779
780 # Validation for print or other production versions
781 $wgUseValidation = false;
782
783 # Use external C++ diff engine (module wikidiff from the
784 # extensions package)
785 $wgUseExternalDiffEngine = false;
786
787 # Use RC Patrolling to check for vandalism
788 $wgUseRCPatrol = true;
789
790 # Set maximum number of results to return in syndication feeds
791 # (RSS, Atom) for eg Recentchanges, Newpages.
792 $wgFeedLimit = 50;
793
794 # _Minimum_ timeout for cached Recentchanges feed, in seconds.
795 # A cached version will continue to be served out even if changes
796 # are made, until this many seconds runs out since the last render.
797 $wgFeedCacheTimeout = 60;
798
799 # When generating Recentchanges RSS/Atom feed, diffs will not be
800 # generated for pages larger than this size.
801 $wgFeedDiffCutoff = 32768;
802
803
804 # Additional namespaces. If the namespaces defined in Language.php and Namespace.php are insufficient,
805 # you can create new ones here, for example, to import Help files in other languages.
806 # PLEASE NOTE: Once you delete a namespace, the pages in that namespace will no longer be accessible.
807 # If you rename it, then you can access them through the new namespace name.
808 #
809 # Custom namespaces should start at 100 and stop at 255 (hard limit set by database)
810 #$wgExtraNamespaces =
811 # array(100 => "Hilfe",
812 # 101 => "Hilfe_Diskussion",
813 # 102 => "Aide",
814 # 103 => "Discussion_Aide"
815 # );
816 $wgExtraNamespaces = NULL;
817
818 # Enable SOAP interface. Off by default
819 # SOAP is a protocoll for remote procedure calls (RPC) using http as middleware.
820 # This interface can be used by bots or special clients to receive articles from
821 # a wiki.
822 # Most bots use the normal HTTP interface and don't use SOAP.
823 # If unsure, set to false.
824 $wgEnableSOAP = false;
825
826 # Limit images on image description pages to a user-selectable limit. In order to
827 # reduce disk usage, limits can only be selected from a list. This is the list of
828 # settings the user can choose from:
829 $wgImageLimits = array (
830 array(320,240),
831 array(640,480),
832 array(800,600),
833 array(1024,768),
834 array(1280,1024),
835 array(10000,10000) );
836
837
838 /** Navigation links for the user sidebar.
839 * 'text' is the name of the MediaWiki message that contains the label of this link
840 * 'href' is the name of the MediaWiki message that contains the link target of this link.
841 * Link targets starting with http are considered remote links. Ones not starting with
842 * http are considered as names of local wiki pages.
843 */
844 $wgNavigationLinks = array (
845 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
846 array( 'text'=>'portal', 'href'=>'portal-url' ),
847 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
848 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
849 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
850 array( 'text'=>'help', 'href'=>'helppage' ),
851 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
852 );
853
854 # On category pages, show thumbnail gallery for images belonging to that category
855 # instead of listing them as articles.
856 $wgCategoryMagicGallery = true;
857
858 # Browser Blacklist for unicode non compliant browsers
859 # Contains a list of regexps : "/regexp/" matching problematic browsers
860 $wgBrowserBlackList = array(
861 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
862 // FIXME: Add some accurate, true things here
863 );
864
865 # Fake out the timezone that the server thinks it's in. This will be used
866 # for date display and not for what's stored in the DB.
867 # Leave to null to retain your server's OS-based timezone value
868 # This is the same as the timezone
869 # $wgLocaltimezone = 'GMT';
870 # $wgLocaltimezone = 'PST8PDT';
871 # $wgLocaltimezone = 'Europe/Sweden';
872 # $wgLocaltimezone = 'CET';
873 $wgLocaltimezone = null;
874
875 # User level management
876 # The number is the database id of a group you want users to be attached by
877 # default. A better interface should be coded [av]
878 $wgAnonGroupId = 1;
879 $wgLoggedInGroupId = 2;
880
881 /*
882 When translating messages with wfMsg(), it is not always clear what should
883 be considered UI messages and what shoud be content messages.
884
885 For example, for regular wikipedia site like en, there should be only one
886 'mainpage', therefore when getting the link of 'mainpage', we should
887 treate it as content of the site and call wfMsgForContent(), while for
888 rendering the text of the link, we call wfMsg(). The code in default
889 behaves this way. However, sites like common do offer different versions
890 of 'mainpage' and the like for different languages. This array provides a
891 way to override the default behavior. For example, to allow language specific
892 mainpage and community portal, set
893
894 $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
895
896 */
897 $wgForceUIMsgAsContentMsg = array();
898
899 /**
900 * Authentication plugin.
901 */
902 $wgAuth = null;
903
904 /**
905 * Global list of hooks.
906 * Add a hook by doing:
907 * $wgHooks['event_name'][] = $function;
908 * or:
909 * $wgHooks['event_name'][] = array($function, $data);
910 * or:
911 * $wgHooks['event_name'][] = array($object, 'method');
912 */
913
914 $wgHooks = array();
915
916 } else {
917 die();
918 }
919 ?>