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