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