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