Remove "info"-toolbar. This used to be shown for browsers which don't
[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 * Documentation is in the source and on:
13 * http://meta.wikimedia.org/wiki/Help:Configuration_settings_index
14 *
15 * @package MediaWiki
16 */
17
18 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
19 if( !defined( 'MEDIAWIKI' ) ) {
20 die( "This file is part of MediaWiki and is not a valid entry point\n" );
21 }
22
23 /**
24 * Create a site configuration object
25 * Not used for much in a default install
26 */
27 require_once( 'includes/SiteConfiguration.php' );
28 $wgConf = new SiteConfiguration;
29
30 /** MediaWiki version number */
31 $wgVersion = '1.6alpha';
32
33 /** Name of the site. It must be changed in LocalSettings.php */
34 $wgSitename = 'MediaWiki';
35
36 /** Will be same as you set @see $wgSitename */
37 $wgMetaNamespace = FALSE;
38
39
40 /** URL of the server. It will be automaticly build including https mode */
41 $wgServer = '';
42
43 if( isset( $_SERVER['SERVER_NAME'] ) ) {
44 $wgServerName = $_SERVER['SERVER_NAME'];
45 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
46 $wgServerName = $_SERVER['HOSTNAME'];
47 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
48 $wgServerName = $_SERVER['HTTP_HOST'];
49 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
50 $wgServerName = $_SERVER['SERVER_ADDR'];
51 } else {
52 $wgServerName = 'localhost';
53 }
54
55 # check if server use https:
56 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
57
58 $wgServer = $wgProto.'://' . $wgServerName;
59 # If the port is a non-standard one, add it to the URL
60 if( isset( $_SERVER['SERVER_PORT'] )
61 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
62 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
63
64 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
65 }
66 unset($wgProto);
67
68
69 /**
70 * The path we should point to.
71 * It might be a virtual path in case with use apache mod_rewrite for example
72 */
73 $wgScriptPath = '/wiki';
74
75 /**
76 * Whether to support URLs like index.php/Page_title
77 * @global bool $wgUsePathInfo
78 */
79 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
80
81
82 /**#@+
83 * Script users will request to get articles
84 * ATTN: Old installations used wiki.phtml and redirect.phtml -
85 * make sure that LocalSettings.php is correctly set!
86 * @deprecated
87 */
88 /**
89 * @global string $wgScript
90 */
91 $wgScript = "{$wgScriptPath}/index.php";
92 /**
93 * @global string $wgRedirectScript
94 */
95 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
96 /**#@-*/
97
98
99 /**#@+
100 * @global string
101 */
102 /**
103 * style path as seen by users
104 * @global string $wgStylePath
105 */
106 $wgStylePath = "{$wgScriptPath}/skins";
107 /**
108 * filesystem stylesheets directory
109 * @global string $wgStyleDirectory
110 */
111 $wgStyleDirectory = "{$IP}/skins";
112 $wgStyleSheetPath = &$wgStylePath;
113 $wgArticlePath = "{$wgScript}?title=$1";
114 $wgUploadPath = "{$wgScriptPath}/upload";
115 $wgUploadDirectory = "{$IP}/upload";
116 $wgHashedUploadDirectory = true;
117 $wgLogo = "{$wgUploadPath}/wiki.png";
118 $wgMathPath = "{$wgUploadPath}/math";
119 $wgMathDirectory = "{$wgUploadDirectory}/math";
120 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
121 $wgUploadBaseUrl = "";
122 /**#@-*/
123
124 /**
125 * The external URL protocols (regexp)
126 */
127 $wgUrlProtocols = 'http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:';
128
129 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
130 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
131 * @global string $wgAntivirus
132 */
133 $wgAntivirus= NULL;
134
135 /** Configuration for different virus scanners. This an associative array of associative arrays:
136 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
137 * valid values for $wgAntivirus are the keys defined in this array.
138 *
139 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
140 *
141 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
142 * file to scan. If not present, the filename will be appended to the command. Note that this must be
143 * overwritten if the scanner is not in the system path; in that case, plase set
144 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
145 *
146 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
147 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
148 * the file if $wgAntivirusRequired is not set.
149 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
150 * which is probably imune to virusses. This causes the file to pass.
151 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
152 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
153 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
154 *
155 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
156 * output. The relevant part should be matched as group one (\1).
157 * If not defined or the pattern does not match, the full message is shown to the user.
158 *
159 * @global array $wgAntivirusSetup
160 */
161 $wgAntivirusSetup= array(
162
163 #setup for clamav
164 'clamav' => array (
165 'command' => "clamscan --no-summary ",
166
167 'codemap'=> array (
168 "0"=> AV_NO_VIRUS, #no virus
169 "1"=> AV_VIRUS_FOUND, #virus found
170 "52"=> AV_SCAN_ABORTED, #unsupported file format (probably imune)
171 "*"=> AV_SCAN_FAILED, #else scan failed
172 ),
173
174 'messagepattern'=> '/.*?:(.*)/sim',
175 ),
176
177 #setup for f-prot
178 'f-prot' => array (
179 'command' => "f-prot ",
180
181 'codemap'=> array (
182 "0"=> AV_NO_VIRUS, #no virus
183 "3"=> AV_VIRUS_FOUND, #virus found
184 "6"=> AV_VIRUS_FOUND, #virus found
185 "*"=> AV_SCAN_FAILED, #else scan failed
186 ),
187
188 'messagepattern'=> '/.*?Infection:(.*)$/m',
189 ),
190 );
191
192
193 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
194 * @global boolean $wgAntivirusRequired
195 */
196 $wgAntivirusRequired= true;
197
198 /** Determines if the mime type of uploaded files should be checked
199 * @global boolean $wgVerifyMimeType
200 */
201 $wgVerifyMimeType= true;
202
203 /** Sets the mime type definition file to use by MimeMagic.php.
204 * @global string $wgMimeTypeFile
205 */
206 #$wgMimeTypeFile= "/etc/mime.types";
207 $wgMimeTypeFile= "includes/mime.types";
208 #$wgMimeTypeFile= NULL; #use build in defaults only.
209
210 /** Sets the mime type info file to use by MimeMagic.php.
211 * @global string $wgMimeInfoFile
212 */
213 $wgMimeInfoFile= "includes/mime.info";
214 #$wgMimeInfoFile= NULL; #use build in defaults only.
215
216 /** Switch for loading the FileInfo extension by PECL at runtime.
217 * This should be used only if fileinfo is installed as a shared object / dynamic libary
218 * @global string $wgLoadFileinfoExtension
219 */
220 $wgLoadFileinfoExtension= false;
221
222 /** Sets an external mime detector program. The command must print only the mime type to standard output.
223 * the name of the file to process will be appended to the command given here.
224 * If not set or NULL, mime_content_type will be used if available.
225 */
226 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
227 #$wgMimeDetectorCommand= "file -bi" #use external mime detector (linux)
228
229 /** Switch for trivial mime detection. Used by thumb.php to disable all fance things,
230 * because only a few types of images are needed and file extensions can be trusted.
231 */
232 $wgTrivialMimeDetection= false;
233
234 /**
235 * Produce hashed HTML article paths. Used internally, do not set.
236 */
237 $wgMakeDumpLinks = false;
238
239 /**
240 * To set 'pretty' URL paths for actions other than
241 * plain page views, add to this array. For instance:
242 * 'edit' => "$wgScriptPath/edit/$1"
243 *
244 * There must be an appropriate script or rewrite rule
245 * in place to handle these URLs.
246 */
247 $wgActionPaths = array();
248
249 /**
250 * If you operate multiple wikis, you can define a shared upload path here.
251 * Uploads to this wiki will NOT be put there - they will be put into
252 * $wgUploadDirectory.
253 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
254 * no file of the given name is found in the local repository (for [[Image:..]],
255 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
256 * directory.
257 */
258 $wgUseSharedUploads = false;
259 /** Full path on the web server where shared uploads can be found */
260 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
261 /** Fetch commons image description pages and display them on the local wiki? */
262 $wgFetchCommonsDescriptions = false;
263 /** Path on the file system where shared uploads can be found. */
264 $wgSharedUploadDirectory = "/var/www/wiki3/images";
265 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
266 $wgSharedUploadDBname = false;
267 /** Optional table prefix used in database. */
268 $wgSharedUploadDBprefix = '';
269 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
270 $wgCacheSharedUploads = true;
271
272 /**
273 * Point the upload navigation link to an external URL
274 * Useful if you want to use a shared repository by default
275 * without disabling local uploads
276 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
277 */
278 $wgUploadNavigationUrl = false;
279
280 /**
281 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
282 * generating them on render and outputting a static URL. This is necessary if some of your
283 * apache servers don't have read/write access to the thumbnail path.
284 *
285 * Example:
286 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
287 */
288 $wgThumbnailScriptPath = false;
289 $wgSharedThumbnailScriptPath = false;
290
291 /**
292 * Set the following to false especially if you have a set of files that need to
293 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
294 * directory layout.
295 */
296 $wgHashedSharedUploadDirectory = true;
297
298 /**
299 * Base URL for a repository wiki. Leave this blank if uploads are just stored
300 * in a shared directory and not meant to be accessible through a separate wiki.
301 * Otherwise the image description pages on the local wiki will link to the
302 * image description page on this wiki.
303 *
304 * Please specify the namespace, as in the example below.
305 */
306 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
307
308
309 #
310 # Email settings
311 #
312
313 /**
314 * Site admin email address
315 * Default to wikiadmin@SERVER_NAME
316 * @global string $wgEmergencyContact
317 */
318 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
319
320 /**
321 * Password reminder email address
322 * The address we should use as sender when a user is requesting his password
323 * Default to apache@SERVER_NAME
324 * @global string $wgPasswordSender
325 */
326 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
327
328 /**
329 * dummy address which should be accepted during mail send action
330 * It might be necessay to adapt the address or to set it equal
331 * to the $wgEmergencyContact address
332 */
333 #$wgNoReplyAddress = $wgEmergencyContact;
334 $wgNoReplyAddress = 'reply@not.possible';
335
336 /**
337 * Set to true to enable the e-mail basic features:
338 * Password reminders, etc. If sending e-mail on your
339 * server doesn't work, you might want to disable this.
340 * @global bool $wgEnableEmail
341 */
342 $wgEnableEmail = true;
343
344 /**
345 * Set to true to enable user-to-user e-mail.
346 * This can potentially be abused, as it's hard to track.
347 * @global bool $wgEnableUserEmail
348 */
349 $wgEnableUserEmail = true;
350
351 /**
352 * SMTP Mode
353 * For using a direct (authenticated) SMTP server connection.
354 * Default to false or fill an array :
355 * <code>
356 * "host" => 'SMTP domain',
357 * "IDHost" => 'domain for MessageID',
358 * "port" => "25",
359 * "auth" => true/false,
360 * "username" => user,
361 * "password" => password
362 * </code>
363 *
364 * @global mixed $wgSMTP
365 */
366 $wgSMTP = false;
367
368
369 /**#@+
370 * Database settings
371 */
372 /** database host name or ip address */
373 $wgDBserver = 'localhost';
374 /** name of the database */
375 $wgDBname = 'wikidb';
376 /** */
377 $wgDBconnection = '';
378 /** Database username */
379 $wgDBuser = 'wikiuser';
380 /** Database type
381 * "mysql" for working code and "PostgreSQL" for development/broken code
382 */
383 $wgDBtype = "mysql";
384 /** Search type
385 * Leave as null to select the default search engine for the
386 * selected database type (eg SearchMySQL4), or set to a class
387 * name to override to a custom search engine.
388 */
389 $wgSearchType = null;
390 /** Table name prefix */
391 $wgDBprefix = '';
392 /** Database schema
393 * on some databases this allows separate
394 * logical namespace for application data
395 */
396 $wgDBschema = 'mediawiki';
397 /**#@-*/
398
399
400
401 /**
402 * Shared database for multiple wikis. Presently used for storing a user table
403 * for single sign-on. The server for this database must be the same as for the
404 * main database.
405 * EXPERIMENTAL
406 */
407 $wgSharedDB = null;
408
409 # Database load balancer
410 # This is a two-dimensional array, an array of server info structures
411 # Fields are:
412 # host: Host name
413 # dbname: Default database name
414 # user: DB user
415 # password: DB password
416 # type: "mysql" or "pgsql"
417 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
418 # groupLoads: array of load ratios, the key is the query group name. A query may belong
419 # to several groups, the most specific group defined here is used.
420 #
421 # flags: bit field
422 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
423 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
424 # DBO_TRX -- wrap entire request in a transaction
425 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
426 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
427 #
428 # Leave at false to use the single-server variables above
429 $wgDBservers = false;
430
431 /** How long to wait for a slave to catch up to the master */
432 $wgMasterWaitTimeout = 10;
433
434 /** File to log MySQL errors to */
435 $wgDBerrorLog = false;
436
437 /** When to give an error message */
438 $wgDBClusterTimeout = 10;
439
440 /**
441 * wgDBminWordLen :
442 * MySQL 3.x : used to discard words that MySQL will not return any results for
443 * shorter values configure mysql directly.
444 * MySQL 4.x : ignore it and configure mySQL
445 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
446 */
447 $wgDBminWordLen = 4;
448 /** Set to true if using InnoDB tables */
449 $wgDBtransactions = false;
450 /** Set to true to use enhanced fulltext search */
451 $wgDBmysql4 = false;
452
453 /**
454 * Other wikis on this site, can be administered from a single developer
455 * account.
456 * Array, interwiki prefix => database name
457 */
458 $wgLocalDatabases = array();
459
460 /**
461 * Object cache settings
462 * See Defines.php for types
463 */
464 $wgMainCacheType = CACHE_NONE;
465 $wgMessageCacheType = CACHE_ANYTHING;
466 $wgParserCacheType = CACHE_ANYTHING;
467
468 $wgSessionsInMemcached = false;
469 $wgLinkCacheMemcached = false; # Not fully tested
470
471 /**
472 * Memcached-specific settings
473 * See docs/memcached.txt
474 */
475 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
476 $wgMemCachedServers = array( '127.0.0.1:11000' );
477 $wgMemCachedDebug = false;
478
479
480
481 # Language settings
482 #
483 /** Site language code, should be one of ./languages/Language(.*).php */
484 $wgLanguageCode = 'en';
485
486 /** Treat language links as magic connectors, not inline links */
487 $wgInterwikiMagic = true;
488
489 /** Hide interlanguage links from the sidebar */
490 $wgHideInterlanguageLinks = false;
491
492
493 /** We speak UTF-8 all the time now, unless some oddities happen */
494 $wgInputEncoding = 'UTF-8';
495 $wgOutputEncoding = 'UTF-8';
496 $wgEditEncoding = '';
497
498 # Set this to eg 'ISO-8859-1' to perform character set
499 # conversion when loading old revisions not marked with
500 # "utf-8" flag. Use this when converting wiki to UTF-8
501 # without the burdensome mass conversion of old text data.
502 #
503 # NOTE! This DOES NOT touch any fields other than old_text.
504 # Titles, comments, user names, etc still must be converted
505 # en masse in the database before continuing as a UTF-8 wiki.
506 $wgLegacyEncoding = false;
507
508 /**
509 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
510 * create stub reference rows in the text table instead of copying
511 * the full text of all current entries from 'cur' to 'text'.
512 *
513 * This will speed up the conversion step for large sites, but
514 * requires that the cur table be kept around for those revisions
515 * to remain viewable.
516 *
517 * maintenance/migrateCurStubs.php can be used to complete the
518 * migration in the background once the wiki is back online.
519 *
520 * This option affects the updaters *only*. Any present cur stub
521 * revisions will be readable at runtime regardless of this setting.
522 */
523 $wgLegacySchemaConversion = false;
524
525 $wgMimeType = 'text/html';
526 $wgJsMimeType = 'text/javascript';
527 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
528 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
529
530 /** Enable to allow rewriting dates in page text.
531 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
532 $wgUseDynamicDates = false;
533 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
534 * the interface is set to English
535 */
536 $wgAmericanDates = false;
537 /**
538 * For Hindi and Arabic use local numerals instead of Western style (0-9)
539 * numerals in interface.
540 */
541 $wgTranslateNumerals = true;
542
543
544 # Translation using MediaWiki: namespace
545 # This will increase load times by 25-60% unless memcached is installed
546 # Interface messages will be loaded from the database.
547 $wgUseDatabaseMessages = true;
548 $wgMsgCacheExpiry = 86400;
549
550 # Whether to enable language variant conversion.
551 $wgDisableLangConversion = false;
552
553 # Use article validation feature; turned off by default
554 $wgUseValidation = false;
555 $wgValidationForAnons = true ;
556
557 # Whether to use zhdaemon to perform Chinese text processing
558 # zhdaemon is under developement, so normally you don't want to
559 # use it unless for testing
560 $wgUseZhdaemon = false;
561 $wgZhdaemonHost="localhost";
562 $wgZhdaemonPort=2004;
563
564 /** Normally you can ignore this and it will be something
565 like $wgMetaNamespace . "_talk". In some languages, you
566 may want to set this manually for grammatical reasons.
567 It is currently only respected by those languages
568 where it might be relevant and where no automatic
569 grammar converter exists.
570 */
571 $wgMetaNamespaceTalk = false;
572
573 # Miscellaneous configuration settings
574 #
575
576 $wgLocalInterwiki = 'w';
577 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
578
579 /**
580 * If local interwikis are set up which allow redirects,
581 * set this regexp to restrict URLs which will be displayed
582 * as 'redirected from' links.
583 *
584 * It might look something like this:
585 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
586 *
587 * Leave at false to avoid displaying any incoming redirect markers.
588 * This does not affect intra-wiki redirects, which don't change
589 * the URL.
590 */
591 $wgRedirectSources = false;
592
593
594 $wgShowIPinHeader = true; # For non-logged in users
595 $wgMaxNameChars = 255; # Maximum number of bytes in username
596
597 $wgExtraSubtitle = '';
598 $wgSiteSupportPage = ''; # A page where you users can receive donations
599
600 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
601
602 /**
603 * The debug log file should be not be publicly accessible if it is used, as it
604 * may contain private data. */
605 $wgDebugLogFile = '';
606
607 /**#@+
608 * @global bool
609 */
610 $wgDebugRedirects = false;
611 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
612
613 $wgDebugComments = false;
614 $wgReadOnly = false;
615 $wgLogQueries = false;
616 $wgDebugDumpSql = false;
617
618 /**
619 * Set to an array of log group keys to filenames.
620 * If set, wfDebugLog() output for that group will go to that file instead
621 * of the regular $wgDebugLogFile. Useful for enabling selective logging
622 * in production.
623 */
624 $wgDebugLogGroups = array();
625
626 /**
627 * Whether to show "we're sorry, but there has been a database error" pages.
628 * Displaying errors aids in debugging, but may display information useful
629 * to an attacker.
630 */
631 $wgShowSQLErrors = false;
632
633 # Should [[Category:Dog]] on a page associate it with the
634 # category "Dog"? (a link to that category page will be
635 # added to the article, clicking it reveals a list of
636 # all articles in the category)
637 $wgUseCategoryMagic = true;
638
639 /**
640 * disable experimental dmoz-like category browsing. Output things like:
641 * Encyclopedia > Music > Style of Music > Jazz
642 */
643 $wgUseCategoryBrowser = false;
644
645 /**
646 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
647 * to speed up output of the same page viewed by another user with the
648 * same options.
649 *
650 * This can provide a significant speedup for medium to large pages,
651 * so you probably want to keep it on.
652 */
653 $wgEnableParserCache = true;
654
655 /**
656 * Under which condition should a page in the main namespace be counted
657 * as a valid article? If $wgUseCommaCount is set to true, it will be
658 * counted if it contains at least one comma. If it is set to false
659 * (default), it will only be counted if it contains at least one [[wiki
660 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
661 *
662 * Retroactively changing this variable will not affect
663 * the existing count (cf. maintenance/recount.sql).
664 */
665 $wgUseCommaCount = false;
666
667 /**#@-*/
668
669 /**
670 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
671 * values are easier on the database. A value of 1 causes the counters to be
672 * updated on every hit, any higher value n cause them to update *on average*
673 * every n hits. Should be set to either 1 or something largish, eg 1000, for
674 * maximum efficiency.
675 */
676 $wgHitcounterUpdateFreq = 1;
677
678 # User rights settings
679 #
680 # It's not 100% safe, there could be security hole using that one. Use at your
681 # own risks.
682
683 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
684
685 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
686
687 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
688 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
689
690 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
691 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
692
693 /**
694 * Permission keys given to users in each group.
695 * All users are implicitly in the '*' group including anonymous visitors;
696 * logged-in users are all implicitly in the 'user' group. These will be
697 * combined with the permissions of all groups that a given user is listed
698 * in in the user_groups table.
699 *
700 * This replaces wgWhitelistAccount and wgWhitelistEdit
701 */
702 $wgGroupPermissions = array();
703
704 $wgGroupPermissions['*' ]['createaccount'] = true;
705 $wgGroupPermissions['*' ]['read'] = true;
706 $wgGroupPermissions['*' ]['edit'] = true;
707
708 $wgGroupPermissions['user' ]['move'] = true;
709 $wgGroupPermissions['user' ]['read'] = true;
710 $wgGroupPermissions['user' ]['edit'] = true;
711 $wgGroupPermissions['user' ]['upload'] = true;
712
713 $wgGroupPermissions['bot' ]['bot'] = true;
714
715 $wgGroupPermissions['sysop']['block'] = true;
716 $wgGroupPermissions['sysop']['createaccount'] = true;
717 $wgGroupPermissions['sysop']['delete'] = true;
718 $wgGroupPermissions['sysop']['editinterface'] = true;
719 $wgGroupPermissions['sysop']['import'] = true;
720 $wgGroupPermissions['sysop']['importupload'] = true;
721 $wgGroupPermissions['sysop']['move'] = true;
722 $wgGroupPermissions['sysop']['patrol'] = true;
723 $wgGroupPermissions['sysop']['protect'] = true;
724 $wgGroupPermissions['sysop']['rollback'] = true;
725 $wgGroupPermissions['sysop']['upload'] = true;
726
727 $wgGroupPermissions['bureaucrat']['userrights'] = true;
728 // Used by the Special:Renameuser extension
729 $wgGroupPermissions['bureaucrat']['renameuser'] = true;
730
731 /**
732 * The developer group is deprecated, but can be activated if need be
733 * to use the 'lockdb' and 'unlockdb' special pages. Those require
734 * that a lock file be defined and creatable/removable by the web
735 * server.
736 */
737 # $wgGroupPermissions['developer']['siteadmin'] = true;
738
739
740
741 # Proxy scanner settings
742 #
743
744 /**
745 * If you enable this, every editor's IP address will be scanned for open HTTP
746 * proxies.
747 *
748 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
749 * ISP and ask for your server to be shut down.
750 *
751 * You have been warned.
752 */
753 $wgBlockOpenProxies = false;
754 /** Port we want to scan for a proxy */
755 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
756 /** Script used to scan */
757 $wgProxyScriptPath = "$IP/proxy_check.php";
758 /** */
759 $wgProxyMemcExpiry = 86400;
760 /** This should always be customised in LocalSettings.php */
761 $wgSecretKey = false;
762 /** big list of banned IP addresses, in the keys not the values */
763 $wgProxyList = array();
764 /** deprecated */
765 $wgProxyKey = false;
766
767 /** Number of accounts each IP address may create, 0 to disable.
768 * Requires memcached */
769 $wgAccountCreationThrottle = 0;
770
771 # Client-side caching:
772
773 /** Allow client-side caching of pages */
774 $wgCachePages = true;
775
776 /**
777 * Set this to current time to invalidate all prior cached pages. Affects both
778 * client- and server-side caching.
779 */
780 $wgCacheEpoch = '20030516000000';
781
782
783 # Server-side caching:
784
785 /**
786 * This will cache static pages for non-logged-in users to reduce
787 * database traffic on public sites.
788 * Must set $wgShowIPinHeader = false
789 */
790 $wgUseFileCache = false;
791 /** Directory where the cached page will be saved */
792 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
793
794 /**
795 * When using the file cache, we can store the cached HTML gzipped to save disk
796 * space. Pages will then also be served compressed to clients that support it.
797 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
798 * the default LocalSettings.php! If you enable this, remove that setting first.
799 *
800 * Requires zlib support enabled in PHP.
801 */
802 $wgUseGzip = false;
803
804 # Email notification settings
805 #
806
807 /** For email notification on page changes */
808 $wgPasswordSender = $wgEmergencyContact;
809
810 # true: from page editor if s/he opted-in
811 # false: Enotif mails appear to come from $wgEmergencyContact
812 $wgEnotifFromEditor = false;
813
814 // TODO move UPO to preferences probably ?
815 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
816 # If set to false, the corresponding input form on the user preference page is suppressed
817 # It call this to be a "user-preferences-option (UPO)"
818 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
819 $wgEnotifWatchlist = false; # UPO
820 $wgEnotifUserTalk = false; # UPO
821 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
822 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
823 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
824
825
826 /** Show watching users in recent changes, watchlist and page history views */
827 $wgRCShowWatchingUsers = false; # UPO
828 /** Show watching users in Page views */
829 $wgPageShowWatchingUsers = false;
830 /**
831 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
832 * view for watched pages with new changes */
833 $wgShowUpdatedMarker = true;
834
835 $wgCookieExpiration = 2592000;
836
837 /** Clock skew or the one-second resolution of time() can occasionally cause cache
838 * problems when the user requests two pages within a short period of time. This
839 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
840 * a grace period.
841 */
842 $wgClockSkewFudge = 5;
843
844 # Squid-related settings
845 #
846
847 /** Enable/disable Squid */
848 $wgUseSquid = false;
849
850 /** If you run Squid3 with ESI support, enable this (default:false): */
851 $wgUseESI = false;
852
853 /** Internal server name as known to Squid, if different */
854 # $wgInternalServer = 'http://yourinternal.tld:8000';
855 $wgInternalServer = $wgServer;
856
857 /**
858 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
859 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
860 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
861 * days
862 */
863 $wgSquidMaxage = 18000;
864
865 /**
866 * A list of proxy servers (ips if possible) to purge on changes don't specify
867 * ports here (80 is default)
868 */
869 # $wgSquidServers = array('127.0.0.1');
870 $wgSquidServers = array();
871 $wgSquidServersNoPurge = array();
872
873 /** Maximum number of titles to purge in any one client operation */
874 $wgMaxSquidPurgeTitles = 400;
875
876 /** HTCP multicast purging */
877 $wgHTCPPort = 4827;
878 $wgHTCPMulticastTTL = 1;
879 # $wgHTCPMulticastAddress = "224.0.0.85";
880
881 # Cookie settings:
882 #
883 /**
884 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
885 * or ".any.subdomain.net"
886 */
887 $wgCookieDomain = '';
888 $wgCookiePath = '/';
889 $wgDisableCookieCheck = false;
890
891 /** Whether to allow inline image pointing to other websites */
892 $wgAllowExternalImages = true;
893
894 /** Disable database-intensive features */
895 $wgMiserMode = false;
896 /** Disable all query pages if miser mode is on, not just some */
897 $wgDisableQueryPages = false;
898 /** Generate a watchlist once every hour or so */
899 $wgUseWatchlistCache = false;
900 /** The hour or so mentioned above */
901 $wgWLCacheTimeout = 3600;
902
903 /**
904 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
905 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
906 * (ImageMagick) installed and available in the PATH.
907 * Please see math/README for more information.
908 */
909 $wgUseTeX = false;
910 /** Location of the texvc binary */
911 $wgTexvc = './math/texvc';
912
913 #
914 # Profiling / debugging
915 #
916
917 /** Enable for more detailed by-function times in debug log */
918 $wgProfiling = false;
919 /** Only record profiling info for pages that took longer than this */
920 $wgProfileLimit = 0.0;
921 /** Don't put non-profiling info into log file */
922 $wgProfileOnly = false;
923 /** Log sums from profiling into "profiling" table in db. */
924 $wgProfileToDatabase = false;
925 /** Only profile every n requests when profiling is turned on */
926 $wgProfileSampleRate = 1;
927 /** If true, print a raw call tree instead of per-function report */
928 $wgProfileCallTree = false;
929
930 /** Detects non-matching wfProfileIn/wfProfileOut calls */
931 $wgDebugProfiling = false;
932 /** Output debug message on every wfProfileIn/wfProfileOut */
933 $wgDebugFunctionEntry = 0;
934 /** Lots of debugging output from SquidUpdate.php */
935 $wgDebugSquid = false;
936
937 $wgDisableCounters = false;
938 $wgDisableTextSearch = false;
939 /**
940 * If you've disabled search semi-permanently, this also disables updates to the
941 * table. If you ever re-enable, be sure to rebuild the search table.
942 */
943 $wgDisableSearchUpdate = false;
944 /** Uploads have to be specially set up to be secure */
945 $wgEnableUploads = false;
946 /**
947 * Show EXIF data, on by default if available.
948 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
949 */
950 $wgShowEXIF = function_exists( 'exif_read_data' );
951
952 /**
953 * Set to true to enable the upload _link_ while local uploads are disabled.
954 * Assumes that the special page link will be bounced to another server where
955 * uploads do work.
956 */
957 $wgRemoteUploads = false;
958 $wgDisableAnonTalk = false;
959 /**
960 * Do DELETE/INSERT for link updates instead of incremental
961 */
962 $wgUseDumbLinkUpdate = false;
963
964 /**
965 * Anti-lock flags - bitfield
966 * ALF_PRELOAD_LINKS
967 * Preload links during link update for save
968 * ALF_PRELOAD_EXISTENCE
969 * Preload cur_id during replaceLinkHolders
970 * ALF_NO_LINK_LOCK
971 * Don't use locking reads when updating the link table. This is
972 * necessary for wikis with a high edit rate for performance
973 * reasons, but may cause link table inconsistency
974 * ALF_NO_BLOCK_LOCK
975 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
976 * wikis.
977 */
978 $wgAntiLockFlags = 0;
979
980 /**
981 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
982 * fall back to the old behaviour (no merging).
983 */
984 $wgDiff3 = '/usr/bin/diff3';
985
986 /**
987 * We can also compress text in the old revisions table. If this is set on, old
988 * revisions will be compressed on page save if zlib support is available. Any
989 * compressed revisions will be decompressed on load regardless of this setting
990 * *but will not be readable at all* if zlib support is not available.
991 */
992 $wgCompressRevisions = false;
993
994 /**
995 * This is the list of preferred extensions for uploading files. Uploading files
996 * with extensions not in this list will trigger a warning.
997 */
998 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
999
1000 /** Files with these extensions will never be allowed as uploads. */
1001 $wgFileBlacklist = array(
1002 # HTML may contain cookie-stealing JavaScript and web bugs
1003 'html', 'htm', 'js', 'jsb',
1004 # PHP scripts may execute arbitrary code on the server
1005 'php', 'phtml', 'php3', 'php4', 'phps',
1006 # Other types that may be interpreted by some servers
1007 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1008 # May contain harmful executables for Windows victims
1009 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1010
1011 /** Files with these mime types will never be allowed as uploads
1012 * if $wgVerifyMimeType is enabled.
1013 */
1014 $wgMimeTypeBlacklist= array(
1015 # HTML may contain cookie-stealing JavaScript and web bugs
1016 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1017 # PHP scripts may execute arbitrary code on the server
1018 'application/x-php', 'text/x-php',
1019 # Other types that may be interpreted by some servers
1020 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh'
1021 );
1022
1023 /** This is a flag to determine whether or not to check file extensions on upload. */
1024 $wgCheckFileExtensions = true;
1025
1026 /**
1027 * If this is turned off, users may override the warning for files not covered
1028 * by $wgFileExtensions.
1029 */
1030 $wgStrictFileExtensions = true;
1031
1032 /** Warn if uploaded files are larger than this */
1033 $wgUploadSizeWarning = 150 * 1024;
1034
1035 /** For compatibility with old installations set to false */
1036 $wgPasswordSalt = true;
1037
1038 /** Which namespaces should support subpages?
1039 * See Language.php for a list of namespaces.
1040 */
1041 $wgNamespacesWithSubpages = array(
1042 NS_TALK => true,
1043 NS_USER => true,
1044 NS_USER_TALK => true,
1045 NS_PROJECT_TALK => true,
1046 NS_IMAGE_TALK => true,
1047 NS_MEDIAWIKI_TALK => true,
1048 NS_TEMPLATE_TALK => true,
1049 NS_HELP_TALK => true,
1050 NS_CATEGORY_TALK => true
1051 );
1052
1053 $wgNamespacesToBeSearchedDefault = array(
1054 NS_MAIN => true,
1055 );
1056
1057 /** If set, a bold ugly notice will show up at the top of every page. */
1058 $wgSiteNotice = '';
1059
1060
1061 #
1062 # Images settings
1063 #
1064
1065 /** dynamic server side image resizing ("Thumbnails") */
1066 $wgUseImageResize = false;
1067
1068 /**
1069 * Resizing can be done using PHP's internal image libraries or using
1070 * ImageMagick. The later supports more file formats than PHP, which only
1071 * supports PNG, GIF, JPG, XBM and WBMP.
1072 *
1073 * Use Image Magick instead of PHP builtin functions.
1074 */
1075 $wgUseImageMagick = false;
1076 /** The convert command shipped with ImageMagick */
1077 $wgImageMagickConvertCommand = '/usr/bin/convert';
1078
1079 # Scalable Vector Graphics (SVG) may be uploaded as images.
1080 # Since SVG support is not yet standard in browsers, it is
1081 # necessary to rasterize SVGs to PNG as a fallback format.
1082 #
1083 # An external program is required to perform this conversion:
1084 $wgSVGConverters = array(
1085 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1086 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1087 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1088 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1089 );
1090 /** Pick one of the above */
1091 $wgSVGConverter = 'ImageMagick';
1092 /** If not in the executable PATH, specify */
1093 $wgSVGConverterPath = '';
1094
1095 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1096 if( !isset( $wgCommandLineMode ) ) {
1097 $wgCommandLineMode = false;
1098 }
1099
1100
1101 #
1102 # Recent changes settings
1103 #
1104
1105 /** Log IP addresses in the recentchanges table */
1106 $wgPutIPinRC = false;
1107
1108 /**
1109 * Recentchanges items are periodically purged; entries older than this many
1110 * seconds will go.
1111 * For one week : 7 * 24 * 3600
1112 */
1113 $wgRCMaxAge = 7 * 24 * 3600;
1114
1115
1116 # Send RC updates via UDP
1117 $wgRC2UDPAddress = false;
1118 $wgRC2UDPPort = false;
1119 $wgRC2UDPPrefix = '';
1120
1121 #
1122 # Copyright and credits settings
1123 #
1124
1125 /** RDF metadata toggles */
1126 $wgEnableDublinCoreRdf = false;
1127 $wgEnableCreativeCommonsRdf = false;
1128
1129 /** Override for copyright metadata.
1130 * TODO: these options need documentation
1131 */
1132 $wgRightsPage = NULL;
1133 $wgRightsUrl = NULL;
1134 $wgRightsText = NULL;
1135 $wgRightsIcon = NULL;
1136
1137 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1138 $wgCopyrightIcon = NULL;
1139
1140 /** Set this to true if you want detailed copyright information forms on Upload. */
1141 $wgUseCopyrightUpload = false;
1142
1143 /** Set this to false if you want to disable checking that detailed copyright
1144 * information values are not empty. */
1145 $wgCheckCopyrightUpload = true;
1146
1147 /**
1148 * Set this to the number of authors that you want to be credited below an
1149 * article text. Set it to zero to hide the attribution block, and a negative
1150 * number (like -1) to show all authors. Note that this will require 2-3 extra
1151 * database hits, which can have a not insignificant impact on performance for
1152 * large wikis.
1153 */
1154 $wgMaxCredits = 0;
1155
1156 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1157 * Otherwise, link to a separate credits page. */
1158 $wgShowCreditsIfMax = true;
1159
1160
1161
1162 /**
1163 * Set this to false to avoid forcing the first letter of links to capitals.
1164 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1165 * appearing with a capital at the beginning of a sentence will *not* go to the
1166 * same place as links in the middle of a sentence using a lowercase initial.
1167 */
1168 $wgCapitalLinks = true;
1169
1170 /**
1171 * List of interwiki prefixes for wikis we'll accept as sources for
1172 * Special:Import (for sysops). Since complete page history can be imported,
1173 * these should be 'trusted'.
1174 *
1175 * If a user has the 'import' permission but not the 'importupload' permission,
1176 * they will only be able to run imports through this transwiki interface.
1177 */
1178 $wgImportSources = array();
1179
1180
1181
1182 /** Text matching this regular expression will be recognised as spam
1183 * See http://en.wikipedia.org/wiki/Regular_expression */
1184 $wgSpamRegex = false;
1185 /** Similarly if this function returns true */
1186 $wgFilterCallback = false;
1187
1188 /** Go button goes straight to the edit screen if the article doesn't exist. */
1189 $wgGoToEdit = false;
1190
1191 /** Allow limited user-specified HTML in wiki pages?
1192 * It will be run through a whitelist for security. Set this to false if you
1193 * want wiki pages to consist only of wiki markup. Note that replacements do not
1194 * yet exist for all HTML constructs.*/
1195 $wgUserHtml = true;
1196
1197 /** Allow raw, unchecked HTML in <html>...</html> sections.
1198 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1199 * TO RESTRICT EDITING to only those that you trust
1200 */
1201 $wgRawHtml = false;
1202
1203 /**
1204 * $wgUseTidy: use tidy to make sure HTML output is sane.
1205 * This should only be enabled if $wgUserHtml is true.
1206 * tidy is a free tool that fixes broken HTML.
1207 * See http://www.w3.org/People/Raggett/tidy/
1208 * $wgTidyBin should be set to the path of the binary and
1209 * $wgTidyConf to the path of the configuration file.
1210 * $wgTidyOpts can include any number of parameters.
1211 *
1212 * $wgTidyInternal controls the use of the PECL extension to use an in-
1213 * process tidy library instead of spawning a separate program.
1214 * Normally you shouldn't need to override the setting except for
1215 * debugging. To install, use 'pear install tidy' and add a line
1216 * 'extension=tidy.so' to php.ini.
1217 */
1218 $wgUseTidy = false;
1219 $wgTidyBin = 'tidy';
1220 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1221 $wgTidyOpts = '';
1222 $wgTidyInternal = function_exists( 'tidy_load_config' );
1223
1224 /** See list of skins and their symbolic names in languages/Language.php */
1225 $wgDefaultSkin = 'monobook';
1226
1227 /**
1228 * Settings added to this array will override the language globals for the user
1229 * preferences used by anonymous visitors and newly created accounts. (See names
1230 * and sample values in languages/Language.php)
1231 * For instance, to disable section editing links:
1232 * $wgDefaultUserOptions ['editsection'] = 0;
1233 *
1234 */
1235 $wgDefaultUserOptions = array();
1236
1237 /** Whether or not to allow and use real name fields. Defaults to true. */
1238 $wgAllowRealName = true;
1239
1240 /** Use XML parser? */
1241 $wgUseXMLparser = false ;
1242
1243 /** Extensions */
1244 $wgSkinExtensionFunctions = array();
1245 $wgExtensionFunctions = array();
1246 /**
1247 * An array of extension types and inside that their names, versions, authors
1248 * and urls, note that the version and url key can be omitted.
1249 *
1250 * <code>
1251 * $wgExtensionCredits[$type][] = array(
1252 * 'name' => 'Example extension',
1253 * 'version' => 1.9,
1254 * 'author' => 'Foo Barstein',
1255 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1256 * );
1257 * </code>
1258 *
1259 * Where $type is 'specialpage', 'parserhook', or 'other'.
1260 */
1261 $wgExtensionCredits = array();
1262
1263 /**
1264 * Allow user Javascript page?
1265 * This enables a lot of neat customizations, but may
1266 * increase security risk to users and server load.
1267 */
1268 $wgAllowUserJs = false;
1269
1270 /**
1271 * Allow user Cascading Style Sheets (CSS)?
1272 * This enables a lot of neat customizations, but may
1273 * increase security risk to users and server load.
1274 */
1275 $wgAllowUserCss = false;
1276
1277 /** Use the site's Javascript page? */
1278 $wgUseSiteJs = true;
1279
1280 /** Use the site's Cascading Style Sheets (CSS)? */
1281 $wgUseSiteCss = true;
1282
1283 /** Filter for Special:Randompage. Part of a WHERE clause */
1284 $wgExtraRandompageSQL = false;
1285
1286 /** Allow the "info" action, very inefficient at the moment */
1287 $wgAllowPageInfo = false;
1288
1289 /** Maximum indent level of toc. */
1290 $wgMaxTocLevel = 999;
1291
1292 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1293 $wgUseExternalDiffEngine = false;
1294
1295 /** Use RC Patrolling to check for vandalism */
1296 $wgUseRCPatrol = true;
1297
1298 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1299 * eg Recentchanges, Newpages. */
1300 $wgFeedLimit = 50;
1301
1302 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1303 * A cached version will continue to be served out even if changes
1304 * are made, until this many seconds runs out since the last render. */
1305 $wgFeedCacheTimeout = 60;
1306
1307 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1308 * pages larger than this size. */
1309 $wgFeedDiffCutoff = 32768;
1310
1311
1312 /**
1313 * Additional namespaces. If the namespaces defined in Language.php and
1314 * Namespace.php are insufficient, you can create new ones here, for example,
1315 * to import Help files in other languages.
1316 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1317 * no longer be accessible. If you rename it, then you can access them through
1318 * the new namespace name.
1319 *
1320 * Custom namespaces should start at 100 to avoid conflicting with standard
1321 * namespaces, and should always follow the even/odd main/talk pattern.
1322 */
1323 #$wgExtraNamespaces =
1324 # array(100 => "Hilfe",
1325 # 101 => "Hilfe_Diskussion",
1326 # 102 => "Aide",
1327 # 103 => "Discussion_Aide"
1328 # );
1329 $wgExtraNamespaces = NULL;
1330
1331 /**
1332 * Limit images on image description pages to a user-selectable limit. In order
1333 * to reduce disk usage, limits can only be selected from a list. This is the
1334 * list of settings the user can choose from:
1335 */
1336 $wgImageLimits = array (
1337 array(320,240),
1338 array(640,480),
1339 array(800,600),
1340 array(1024,768),
1341 array(1280,1024),
1342 array(10000,10000) );
1343
1344 /**
1345 * Adjust thumbnails on image pages according to a user setting. In order to
1346 * reduce disk usage, the values can only be selected from a list. This is the
1347 * list of settings the user can choose from:
1348 */
1349 $wgThumbLimits = array(
1350 120,
1351 150,
1352 180,
1353 200,
1354 250,
1355 300
1356 );
1357
1358 /**
1359 * On category pages, show thumbnail gallery for images belonging to that
1360 * category instead of listing them as articles.
1361 */
1362 $wgCategoryMagicGallery = true;
1363
1364 /**
1365 * Browser Blacklist for unicode non compliant browsers
1366 * Contains a list of regexps : "/regexp/" matching problematic browsers
1367 */
1368 $wgBrowserBlackList = array(
1369 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1370 /**
1371 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1372 *
1373 * Known useragents:
1374 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1375 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1376 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1377 * - [...]
1378 *
1379 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1380 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1381 */
1382 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1383 );
1384
1385 /**
1386 * Fake out the timezone that the server thinks it's in. This will be used for
1387 * date display and not for what's stored in the DB. Leave to null to retain
1388 * your server's OS-based timezone value. This is the same as the timezone.
1389 */
1390 # $wgLocaltimezone = 'GMT';
1391 # $wgLocaltimezone = 'PST8PDT';
1392 # $wgLocaltimezone = 'Europe/Sweden';
1393 # $wgLocaltimezone = 'CET';
1394 $wgLocaltimezone = null;
1395
1396
1397 /**
1398 * When translating messages with wfMsg(), it is not always clear what should be
1399 * considered UI messages and what shoud be content messages.
1400 *
1401 * For example, for regular wikipedia site like en, there should be only one
1402 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1403 * it as content of the site and call wfMsgForContent(), while for rendering the
1404 * text of the link, we call wfMsg(). The code in default behaves this way.
1405 * However, sites like common do offer different versions of 'mainpage' and the
1406 * like for different languages. This array provides a way to override the
1407 * default behavior. For example, to allow language specific mainpage and
1408 * community portal, set
1409 *
1410 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1411 */
1412 $wgForceUIMsgAsContentMsg = array();
1413
1414
1415 /**
1416 * Authentication plugin.
1417 */
1418 $wgAuth = null;
1419
1420 /**
1421 * Global list of hooks.
1422 * Add a hook by doing:
1423 * $wgHooks['event_name'][] = $function;
1424 * or:
1425 * $wgHooks['event_name'][] = array($function, $data);
1426 * or:
1427 * $wgHooks['event_name'][] = array($object, 'method');
1428 */
1429 $wgHooks = array();
1430
1431 /**
1432 * Experimental preview feature to fetch rendered text
1433 * over an XMLHttpRequest from JavaScript instead of
1434 * forcing a submit and reload of the whole page.
1435 * Leave disabled unless you're testing it.
1436 */
1437 $wgLivePreview = false;
1438
1439 /**
1440 * Disable the internal MySQL-based search, to allow it to be
1441 * implemented by an extension instead.
1442 */
1443 $wgDisableInternalSearch = false;
1444
1445 /**
1446 * Set this to a URL to forward search requests to some external location.
1447 * If the URL includes '$1', this will be replaced with the URL-encoded
1448 * search term.
1449 *
1450 * For example, to forward to Google you'd have something like:
1451 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1452 * '&domains=http://example.com' .
1453 * '&sitesearch=http://example.com' .
1454 * '&ie=utf-8&oe=utf-8';
1455 */
1456 $wgSearchForwardUrl = null;
1457
1458 /**
1459 * If true, external URL links in wiki text will be given the
1460 * rel="nofollow" attribute as a hint to search engines that
1461 * they should not be followed for ranking purposes as they
1462 * are user-supplied and thus subject to spamming.
1463 */
1464 $wgNoFollowLinks = true;
1465
1466 /**
1467 * Specifies the minimal length of a user password. If set to
1468 * 0, empty passwords are allowed.
1469 */
1470 $wgMinimalPasswordLength = 0;
1471
1472 /**
1473 * Activate external editor interface for files and pages
1474 * See http://meta.wikimedia.org/wiki/Help:External_editors
1475 */
1476 $wgUseExternalEditor = true;
1477
1478 /** Whether or not to sort special pages in Special:Specialpages */
1479
1480 $wgSortSpecialPages = true;
1481
1482 /**
1483 * Specify the name of a skin that should not be presented in the
1484 * list of available skins.
1485 * Use for blacklisting a skin which you do not want to remove
1486 * from the .../skins/ directory
1487 */
1488 $wgSkipSkin = '';
1489 $wgSkipSkins = array(); # More of the same
1490
1491 /**
1492 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1493 */
1494 $wgDisabledActions = array();
1495
1496 /**
1497 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1498 */
1499 $wgDisableHardRedirects = false;
1500
1501 /**
1502 * Use http.dnsbl.sorbs.net to check for open proxies
1503 */
1504 $wgEnableSorbs = false;
1505
1506 /**
1507 * Use opm.blitzed.org to check for open proxies.
1508 * Not yet actually used.
1509 */
1510 $wgEnableOpm = false;
1511
1512 /**
1513 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1514 * methods might say
1515 */
1516 $wgProxyWhitelist = array();
1517
1518 /**
1519 * Simple rate limiter options to brake edit floods.
1520 * Maximum number actions allowed in the given number of seconds;
1521 * after that the violating client receives HTTP 500 error pages
1522 * until the period elapses.
1523 *
1524 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
1525 *
1526 * This option set is experimental and likely to change.
1527 * Requires memcached.
1528 */
1529 $wgRateLimits = array(
1530 'edit' => array(
1531 'anon' => null, // for any and all anonymous edits (aggregate)
1532 'user' => null, // for each logged-in user
1533 'newbie' => null, // for each recent account; overrides 'user'
1534 'ip' => null, // for each anon and recent account
1535 'subnet' => null, // ... with final octet removed
1536 ),
1537 'move' => array(
1538 'user' => null,
1539 'newbie' => null,
1540 'ip' => null,
1541 'subnet' => null,
1542 ),
1543 );
1544
1545 /**
1546 * Set to a filename to log rate limiter hits.
1547 */
1548 $wgRateLimitLog = null;
1549
1550 /**
1551 * On Special:Unusedimages, consider images "used", if they are put
1552 * into a category. Default (false) is not to count those as used.
1553 */
1554 $wgCountCategorizedImagesAsUsed = false;
1555
1556 /**
1557 * External stores allow including content
1558 * from non database sources following URL links
1559 *
1560 * Short names of ExternalStore classes may be specified in an array here:
1561 * $wgExternalStores = array("http","file","custom")...
1562 *
1563 * CAUTION: Access to database might lead to code execution
1564 */
1565 $wgExternalStores = false;
1566
1567 /**
1568 * An array of external mysql servers, e.g.
1569 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1570 */
1571 $wgExternalServers = array();
1572
1573 /**
1574 * list of trusted media-types and mime types.
1575 * Use the MEDIATYPE_xxx constants to represent media types.
1576 * This list is used by Image::isSafeFile
1577 *
1578 * Types not listed here will have a warning about unsafe content
1579 * displayed on the images description page. It would also be possible
1580 * to use this for further restrictions, like disabling direct
1581 * [[media:...]] links for non-trusted formats.
1582 */
1583 $wgTrustedMediaFormats= array(
1584 MEDIATYPE_BITMAP, //all bitmap formats
1585 MEDIATYPE_AUDIO, //all audio formats
1586 MEDIATYPE_VIDEO, //all plain video formats
1587 "image/svg", //svg (only needed if inline rendering of svg is not supported)
1588 "application/pdf", //PDF files
1589 #"application/x-shockwafe-flash", //flash/shockwave movie
1590 );
1591
1592 /**
1593 * Allow special page inclusions such as {{Special:Allpages}}
1594 */
1595 $wgAllowSpecialInclusion = true;
1596
1597 /**
1598 * Timeout for HTTP requests done via CURL
1599 */
1600 $wgHTTPTimeout = 3;
1601
1602 /**
1603 * Proxy to use for CURL requests.
1604 */
1605 $wgHTTPProxy = false;
1606
1607 /**
1608 * Enable interwiki transcluding. Only when iw_trans=1.
1609 */
1610 $wgEnableScaryTranscluding = false;
1611
1612 /**
1613 * Support blog-style "trackbacks" for articles. See
1614 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
1615 */
1616 $wgUseTrackbacks = false;
1617
1618 ?>