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