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