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