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