Committing various live hacks from Wikimedia servers
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 /**
3 * DO NOT EDIT THIS FILE!
4 *
5 * To customize your installation, edit "LocalSettings.php".
6 *
7 * Note that since all these string interpolations are expanded
8 * before LocalSettings is included, if you localize something
9 * like $wgScriptPath, you must also localize everything that
10 * depends on it.
11 *
12 * Documentation is in the source and on:
13 * http://meta.wikimedia.org/wiki/Help:Configuration_settings_index
14 *
15 * @package MediaWiki
16 */
17
18 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
19 if( !defined( 'MEDIAWIKI' ) ) {
20 die( "This file is part of MediaWiki and is not a valid entry point\n" );
21 }
22
23 /**
24 * Create a site configuration object
25 * Not used for much in a default install
26 */
27 require_once( 'includes/SiteConfiguration.php' );
28 $wgConf = new SiteConfiguration;
29
30 /** MediaWiki version number */
31 $wgVersion = '1.6alpha';
32
33 /** Name of the site. It must be changed in LocalSettings.php */
34 $wgSitename = 'MediaWiki';
35
36 /** Will be same as you set @see $wgSitename */
37 $wgMetaNamespace = FALSE;
38
39
40 /** URL of the server. It will be automaticly build including https mode */
41 $wgServer = '';
42
43 if( isset( $_SERVER['SERVER_NAME'] ) ) {
44 $wgServerName = $_SERVER['SERVER_NAME'];
45 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
46 $wgServerName = $_SERVER['HOSTNAME'];
47 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
48 $wgServerName = $_SERVER['HTTP_HOST'];
49 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
50 $wgServerName = $_SERVER['SERVER_ADDR'];
51 } else {
52 $wgServerName = 'localhost';
53 }
54
55 # check if server use https:
56 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
57
58 $wgServer = $wgProto.'://' . $wgServerName;
59 # If the port is a non-standard one, add it to the URL
60 if( isset( $_SERVER['SERVER_PORT'] )
61 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
62 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
63
64 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
65 }
66 unset($wgProto);
67
68
69 /**
70 * The path we should point to.
71 * It might be a virtual path in case with use apache mod_rewrite for example
72 */
73 $wgScriptPath = '/wiki';
74
75 /**
76 * Whether to support URLs like index.php/Page_title
77 * @global bool $wgUsePathInfo
78 */
79 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
80
81
82 /**#@+
83 * Script users will request to get articles
84 * ATTN: Old installations used wiki.phtml and redirect.phtml -
85 * make sure that LocalSettings.php is correctly set!
86 * @deprecated
87 */
88 /**
89 * @global string $wgScript
90 */
91 $wgScript = "{$wgScriptPath}/index.php";
92 /**
93 * @global string $wgRedirectScript
94 */
95 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
96 /**#@-*/
97
98
99 /**#@+
100 * @global string
101 */
102 /**
103 * style path as seen by users
104 * @global string $wgStylePath
105 */
106 $wgStylePath = "{$wgScriptPath}/skins";
107 /**
108 * filesystem stylesheets directory
109 * @global string $wgStyleDirectory
110 */
111 $wgStyleDirectory = "{$IP}/skins";
112 $wgStyleSheetPath = &$wgStylePath;
113 $wgArticlePath = "{$wgScript}?title=$1";
114 $wgUploadPath = "{$wgScriptPath}/upload";
115 $wgUploadDirectory = "{$IP}/upload";
116 $wgHashedUploadDirectory = true;
117 $wgLogo = "{$wgUploadPath}/wiki.png";
118 $wgMathPath = "{$wgUploadPath}/math";
119 $wgMathDirectory = "{$wgUploadDirectory}/math";
120 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
121 $wgUploadBaseUrl = "";
122 /**#@-*/
123
124 /**
125 * Allowed title characters -- regex character class
126 * Don't change this unless you know what you're doing
127 *
128 * Problematic punctuation:
129 * []{}|# Are needed for link syntax, never enable these
130 * % Enabled by default, minor problems with path to query rewrite rules, see below
131 * + Doesn't work with path to query rewrite rules, corrupted by apache
132 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
133 *
134 * All three of these punctuation problems can be avoided by using an alias, instead of a
135 * rewrite rule of either variety.
136 *
137 * The problem with % is that when using a path to query rewrite rule, URLs are
138 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
139 * %253F, for example, becomes "?". Our code does not double-escape to compensate
140 * for this, indeed double escaping would break if the double-escaped title was
141 * passed in the query string rather than the path. This is a minor security issue
142 * because articles can be created such that they are hard to view or edit.
143 *
144 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
145 * this breaks interlanguage links
146 */
147 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF";
148
149
150 /**
151 * The external URL protocols (regexp)
152 */
153 $wgUrlProtocols = 'http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:';
154
155 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
156 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
157 * @global string $wgAntivirus
158 */
159 $wgAntivirus= NULL;
160
161 /** Configuration for different virus scanners. This an associative array of associative arrays:
162 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
163 * valid values for $wgAntivirus are the keys defined in this array.
164 *
165 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
166 *
167 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
168 * file to scan. If not present, the filename will be appended to the command. Note that this must be
169 * overwritten if the scanner is not in the system path; in that case, plase set
170 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
171 *
172 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
173 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
174 * the file if $wgAntivirusRequired is not set.
175 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
176 * which is probably imune to virusses. This causes the file to pass.
177 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
178 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
179 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
180 *
181 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
182 * output. The relevant part should be matched as group one (\1).
183 * If not defined or the pattern does not match, the full message is shown to the user.
184 *
185 * @global array $wgAntivirusSetup
186 */
187 $wgAntivirusSetup= array(
188
189 #setup for clamav
190 'clamav' => array (
191 'command' => "clamscan --no-summary ",
192
193 'codemap'=> array (
194 "0"=> AV_NO_VIRUS, #no virus
195 "1"=> AV_VIRUS_FOUND, #virus found
196 "52"=> AV_SCAN_ABORTED, #unsupported file format (probably imune)
197 "*"=> AV_SCAN_FAILED, #else scan failed
198 ),
199
200 'messagepattern'=> '/.*?:(.*)/sim',
201 ),
202
203 #setup for f-prot
204 'f-prot' => array (
205 'command' => "f-prot ",
206
207 'codemap'=> array (
208 "0"=> AV_NO_VIRUS, #no virus
209 "3"=> AV_VIRUS_FOUND, #virus found
210 "6"=> AV_VIRUS_FOUND, #virus found
211 "*"=> AV_SCAN_FAILED, #else scan failed
212 ),
213
214 'messagepattern'=> '/.*?Infection:(.*)$/m',
215 ),
216 );
217
218
219 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
220 * @global boolean $wgAntivirusRequired
221 */
222 $wgAntivirusRequired= true;
223
224 /** Determines if the mime type of uploaded files should be checked
225 * @global boolean $wgVerifyMimeType
226 */
227 $wgVerifyMimeType= true;
228
229 /** Sets the mime type definition file to use by MimeMagic.php.
230 * @global string $wgMimeTypeFile
231 */
232 #$wgMimeTypeFile= "/etc/mime.types";
233 $wgMimeTypeFile= "includes/mime.types";
234 #$wgMimeTypeFile= NULL; #use build in defaults only.
235
236 /** Sets the mime type info file to use by MimeMagic.php.
237 * @global string $wgMimeInfoFile
238 */
239 $wgMimeInfoFile= "includes/mime.info";
240 #$wgMimeInfoFile= NULL; #use build in defaults only.
241
242 /** Switch for loading the FileInfo extension by PECL at runtime.
243 * This should be used only if fileinfo is installed as a shared object / dynamic libary
244 * @global string $wgLoadFileinfoExtension
245 */
246 $wgLoadFileinfoExtension= false;
247
248 /** Sets an external mime detector program. The command must print only the mime type to standard output.
249 * the name of the file to process will be appended to the command given here.
250 * If not set or NULL, mime_content_type will be used if available.
251 */
252 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
253 #$wgMimeDetectorCommand= "file -bi" #use external mime detector (linux)
254
255 /** Switch for trivial mime detection. Used by thumb.php to disable all fance things,
256 * because only a few types of images are needed and file extensions can be trusted.
257 */
258 $wgTrivialMimeDetection= false;
259
260 /**
261 * Produce hashed HTML article paths. Used internally, do not set.
262 */
263 $wgMakeDumpLinks = false;
264
265 /**
266 * To set 'pretty' URL paths for actions other than
267 * plain page views, add to this array. For instance:
268 * 'edit' => "$wgScriptPath/edit/$1"
269 *
270 * There must be an appropriate script or rewrite rule
271 * in place to handle these URLs.
272 */
273 $wgActionPaths = array();
274
275 /**
276 * If you operate multiple wikis, you can define a shared upload path here.
277 * Uploads to this wiki will NOT be put there - they will be put into
278 * $wgUploadDirectory.
279 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
280 * no file of the given name is found in the local repository (for [[Image:..]],
281 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
282 * directory.
283 */
284 $wgUseSharedUploads = false;
285 /** Full path on the web server where shared uploads can be found */
286 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
287 /** Fetch commons image description pages and display them on the local wiki? */
288 $wgFetchCommonsDescriptions = false;
289 /** Path on the file system where shared uploads can be found. */
290 $wgSharedUploadDirectory = "/var/www/wiki3/images";
291 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
292 $wgSharedUploadDBname = false;
293 /** Optional table prefix used in database. */
294 $wgSharedUploadDBprefix = '';
295 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
296 $wgCacheSharedUploads = true;
297
298 /**
299 * Point the upload navigation link to an external URL
300 * Useful if you want to use a shared repository by default
301 * without disabling local uploads (use $wgEnableUploads = false for that)
302 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
303 */
304 $wgUploadNavigationUrl = false;
305
306 /**
307 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
308 * generating them on render and outputting a static URL. This is necessary if some of your
309 * apache servers don't have read/write access to the thumbnail path.
310 *
311 * Example:
312 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
313 */
314 $wgThumbnailScriptPath = false;
315 $wgSharedThumbnailScriptPath = false;
316
317 /**
318 * Set the following to false especially if you have a set of files that need to
319 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
320 * directory layout.
321 */
322 $wgHashedSharedUploadDirectory = true;
323
324 /**
325 * Base URL for a repository wiki. Leave this blank if uploads are just stored
326 * in a shared directory and not meant to be accessible through a separate wiki.
327 * Otherwise the image description pages on the local wiki will link to the
328 * image description page on this wiki.
329 *
330 * Please specify the namespace, as in the example below.
331 */
332 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
333
334
335 #
336 # Email settings
337 #
338
339 /**
340 * Site admin email address
341 * Default to wikiadmin@SERVER_NAME
342 * @global string $wgEmergencyContact
343 */
344 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
345
346 /**
347 * Password reminder email address
348 * The address we should use as sender when a user is requesting his password
349 * Default to apache@SERVER_NAME
350 * @global string $wgPasswordSender
351 */
352 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
353
354 /**
355 * dummy address which should be accepted during mail send action
356 * It might be necessay to adapt the address or to set it equal
357 * to the $wgEmergencyContact address
358 */
359 #$wgNoReplyAddress = $wgEmergencyContact;
360 $wgNoReplyAddress = 'reply@not.possible';
361
362 /**
363 * Set to true to enable the e-mail basic features:
364 * Password reminders, etc. If sending e-mail on your
365 * server doesn't work, you might want to disable this.
366 * @global bool $wgEnableEmail
367 */
368 $wgEnableEmail = true;
369
370 /**
371 * Set to true to enable user-to-user e-mail.
372 * This can potentially be abused, as it's hard to track.
373 * @global bool $wgEnableUserEmail
374 */
375 $wgEnableUserEmail = true;
376
377 /**
378 * SMTP Mode
379 * For using a direct (authenticated) SMTP server connection.
380 * Default to false or fill an array :
381 * <code>
382 * "host" => 'SMTP domain',
383 * "IDHost" => 'domain for MessageID',
384 * "port" => "25",
385 * "auth" => true/false,
386 * "username" => user,
387 * "password" => password
388 * </code>
389 *
390 * @global mixed $wgSMTP
391 */
392 $wgSMTP = false;
393
394
395 /**#@+
396 * Database settings
397 */
398 /** database host name or ip address */
399 $wgDBserver = 'localhost';
400 /** name of the database */
401 $wgDBname = 'wikidb';
402 /** */
403 $wgDBconnection = '';
404 /** Database username */
405 $wgDBuser = 'wikiuser';
406 /** Database type
407 * "mysql" for working code and "PostgreSQL" for development/broken code
408 */
409 $wgDBtype = "mysql";
410 /** Search type
411 * Leave as null to select the default search engine for the
412 * selected database type (eg SearchMySQL4), or set to a class
413 * name to override to a custom search engine.
414 */
415 $wgSearchType = null;
416 /** Table name prefix */
417 $wgDBprefix = '';
418 /** Database schema
419 * on some databases this allows separate
420 * logical namespace for application data
421 */
422 $wgDBschema = 'mediawiki';
423 /**#@-*/
424
425
426
427 /**
428 * Shared database for multiple wikis. Presently used for storing a user table
429 * for single sign-on. The server for this database must be the same as for the
430 * main database.
431 * EXPERIMENTAL
432 */
433 $wgSharedDB = null;
434
435 # Database load balancer
436 # This is a two-dimensional array, an array of server info structures
437 # Fields are:
438 # host: Host name
439 # dbname: Default database name
440 # user: DB user
441 # password: DB password
442 # type: "mysql" or "pgsql"
443 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
444 # groupLoads: array of load ratios, the key is the query group name. A query may belong
445 # to several groups, the most specific group defined here is used.
446 #
447 # flags: bit field
448 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
449 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
450 # DBO_TRX -- wrap entire request in a transaction
451 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
452 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
453 #
454 # Leave at false to use the single-server variables above
455 $wgDBservers = false;
456
457 /** How long to wait for a slave to catch up to the master */
458 $wgMasterWaitTimeout = 10;
459
460 /** File to log MySQL errors to */
461 $wgDBerrorLog = false;
462
463 /** When to give an error message */
464 $wgDBClusterTimeout = 10;
465
466 /**
467 * wgDBminWordLen :
468 * MySQL 3.x : used to discard words that MySQL will not return any results for
469 * shorter values configure mysql directly.
470 * MySQL 4.x : ignore it and configure mySQL
471 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
472 */
473 $wgDBminWordLen = 4;
474 /** Set to true if using InnoDB tables */
475 $wgDBtransactions = false;
476 /** Set to true for compatibility with extensions that might be checking.
477 * MySQL 3.23.x is no longer supported. */
478 $wgDBmysql4 = true;
479
480 /**
481 * Other wikis on this site, can be administered from a single developer
482 * account.
483 * Array, interwiki prefix => database name
484 */
485 $wgLocalDatabases = array();
486
487 /**
488 * Object cache settings
489 * See Defines.php for types
490 */
491 $wgMainCacheType = CACHE_NONE;
492 $wgMessageCacheType = CACHE_ANYTHING;
493 $wgParserCacheType = CACHE_ANYTHING;
494
495 $wgSessionsInMemcached = false;
496 $wgLinkCacheMemcached = false; # Not fully tested
497
498 /**
499 * Memcached-specific settings
500 * See docs/memcached.txt
501 */
502 $wgUseMemCached = false;
503 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
504 $wgMemCachedServers = array( '127.0.0.1:11000' );
505 $wgMemCachedDebug = false;
506
507
508
509 # Language settings
510 #
511 /** Site language code, should be one of ./languages/Language(.*).php */
512 $wgLanguageCode = 'en';
513
514 /** Treat language links as magic connectors, not inline links */
515 $wgInterwikiMagic = true;
516
517 /** Hide interlanguage links from the sidebar */
518 $wgHideInterlanguageLinks = false;
519
520
521 /** We speak UTF-8 all the time now, unless some oddities happen */
522 $wgInputEncoding = 'UTF-8';
523 $wgOutputEncoding = 'UTF-8';
524 $wgEditEncoding = '';
525
526 # Set this to eg 'ISO-8859-1' to perform character set
527 # conversion when loading old revisions not marked with
528 # "utf-8" flag. Use this when converting wiki to UTF-8
529 # without the burdensome mass conversion of old text data.
530 #
531 # NOTE! This DOES NOT touch any fields other than old_text.
532 # Titles, comments, user names, etc still must be converted
533 # en masse in the database before continuing as a UTF-8 wiki.
534 $wgLegacyEncoding = false;
535
536 /**
537 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
538 * create stub reference rows in the text table instead of copying
539 * the full text of all current entries from 'cur' to 'text'.
540 *
541 * This will speed up the conversion step for large sites, but
542 * requires that the cur table be kept around for those revisions
543 * to remain viewable.
544 *
545 * maintenance/migrateCurStubs.php can be used to complete the
546 * migration in the background once the wiki is back online.
547 *
548 * This option affects the updaters *only*. Any present cur stub
549 * revisions will be readable at runtime regardless of this setting.
550 */
551 $wgLegacySchemaConversion = false;
552
553 $wgMimeType = 'text/html';
554 $wgJsMimeType = 'text/javascript';
555 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
556 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
557
558 /** Enable to allow rewriting dates in page text.
559 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
560 $wgUseDynamicDates = false;
561 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
562 * the interface is set to English
563 */
564 $wgAmericanDates = false;
565 /**
566 * For Hindi and Arabic use local numerals instead of Western style (0-9)
567 * numerals in interface.
568 */
569 $wgTranslateNumerals = true;
570
571
572 # Translation using MediaWiki: namespace
573 # This will increase load times by 25-60% unless memcached is installed
574 # Interface messages will be loaded from the database.
575 $wgUseDatabaseMessages = true;
576 $wgMsgCacheExpiry = 86400;
577
578 # Whether to enable language variant conversion.
579 $wgDisableLangConversion = false;
580
581 # Use article validation feature; turned off by default
582 $wgUseValidation = false;
583 $wgValidationForAnons = true ;
584
585 # Whether to use zhdaemon to perform Chinese text processing
586 # zhdaemon is under developement, so normally you don't want to
587 # use it unless for testing
588 $wgUseZhdaemon = false;
589 $wgZhdaemonHost="localhost";
590 $wgZhdaemonPort=2004;
591
592 /** Normally you can ignore this and it will be something
593 like $wgMetaNamespace . "_talk". In some languages, you
594 may want to set this manually for grammatical reasons.
595 It is currently only respected by those languages
596 where it might be relevant and where no automatic
597 grammar converter exists.
598 */
599 $wgMetaNamespaceTalk = false;
600
601 # Miscellaneous configuration settings
602 #
603
604 $wgLocalInterwiki = 'w';
605 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
606
607 /**
608 * If local interwikis are set up which allow redirects,
609 * set this regexp to restrict URLs which will be displayed
610 * as 'redirected from' links.
611 *
612 * It might look something like this:
613 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
614 *
615 * Leave at false to avoid displaying any incoming redirect markers.
616 * This does not affect intra-wiki redirects, which don't change
617 * the URL.
618 */
619 $wgRedirectSources = false;
620
621
622 $wgShowIPinHeader = true; # For non-logged in users
623 $wgMaxNameChars = 255; # Maximum number of bytes in username
624
625 $wgExtraSubtitle = '';
626 $wgSiteSupportPage = ''; # A page where you users can receive donations
627
628 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
629
630 /**
631 * The debug log file should be not be publicly accessible if it is used, as it
632 * may contain private data. */
633 $wgDebugLogFile = '';
634
635 /**#@+
636 * @global bool
637 */
638 $wgDebugRedirects = false;
639 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
640
641 $wgDebugComments = false;
642 $wgReadOnly = false;
643 $wgLogQueries = false;
644 $wgDebugDumpSql = false;
645
646 /**
647 * Set to an array of log group keys to filenames.
648 * If set, wfDebugLog() output for that group will go to that file instead
649 * of the regular $wgDebugLogFile. Useful for enabling selective logging
650 * in production.
651 */
652 $wgDebugLogGroups = array();
653
654 /**
655 * Whether to show "we're sorry, but there has been a database error" pages.
656 * Displaying errors aids in debugging, but may display information useful
657 * to an attacker.
658 */
659 $wgShowSQLErrors = false;
660
661 # Should [[Category:Dog]] on a page associate it with the
662 # category "Dog"? (a link to that category page will be
663 # added to the article, clicking it reveals a list of
664 # all articles in the category)
665 $wgUseCategoryMagic = true;
666
667 /**
668 * disable experimental dmoz-like category browsing. Output things like:
669 * Encyclopedia > Music > Style of Music > Jazz
670 */
671 $wgUseCategoryBrowser = false;
672
673 /**
674 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
675 * to speed up output of the same page viewed by another user with the
676 * same options.
677 *
678 * This can provide a significant speedup for medium to large pages,
679 * so you probably want to keep it on.
680 */
681 $wgEnableParserCache = true;
682
683 /**
684 * Under which condition should a page in the main namespace be counted
685 * as a valid article? If $wgUseCommaCount is set to true, it will be
686 * counted if it contains at least one comma. If it is set to false
687 * (default), it will only be counted if it contains at least one [[wiki
688 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
689 *
690 * Retroactively changing this variable will not affect
691 * the existing count (cf. maintenance/recount.sql).
692 */
693 $wgUseCommaCount = false;
694
695 /**#@-*/
696
697 /**
698 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
699 * values are easier on the database. A value of 1 causes the counters to be
700 * updated on every hit, any higher value n cause them to update *on average*
701 * every n hits. Should be set to either 1 or something largish, eg 1000, for
702 * maximum efficiency.
703 */
704 $wgHitcounterUpdateFreq = 1;
705
706 # Basic user rights and block settings
707 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
708 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
709 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
710 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
711 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
712
713 # Pages anonymous user may see as an array, e.g.:
714 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
715 # NOTE: This will only work if $wgGroupPermissions['*']['read']
716 # is false -- see below. Otherwise, ALL pages are accessible,
717 # regardless of this setting.
718 $wgWhitelistRead = false;
719
720 /**
721 * Permission keys given to users in each group.
722 * All users are implicitly in the '*' group including anonymous visitors;
723 * logged-in users are all implicitly in the 'user' group. These will be
724 * combined with the permissions of all groups that a given user is listed
725 * in in the user_groups table.
726 *
727 * Functionality to make pages inaccessible has not been extensively tested
728 * for security. Use at your own risk!
729 *
730 * This replaces wgWhitelistAccount and wgWhitelistEdit
731 */
732 $wgGroupPermissions = array();
733
734 $wgGroupPermissions['*' ]['createaccount'] = true;
735 $wgGroupPermissions['*' ]['read'] = true;
736 $wgGroupPermissions['*' ]['edit'] = true;
737
738 $wgGroupPermissions['user' ]['move'] = true;
739 $wgGroupPermissions['user' ]['read'] = true;
740 $wgGroupPermissions['user' ]['edit'] = true;
741 $wgGroupPermissions['user' ]['upload'] = true;
742 $wgGroupPermissions['user' ]['reupload'] = true;
743 $wgGroupPermissions['user' ]['reupload-shared'] = true;
744
745 $wgGroupPermissions['bot' ]['bot'] = true;
746
747 $wgGroupPermissions['sysop']['block'] = true;
748 $wgGroupPermissions['sysop']['createaccount'] = true;
749 $wgGroupPermissions['sysop']['delete'] = true;
750 $wgGroupPermissions['sysop']['editinterface'] = true;
751 $wgGroupPermissions['sysop']['import'] = true;
752 $wgGroupPermissions['sysop']['importupload'] = true;
753 $wgGroupPermissions['sysop']['move'] = true;
754 $wgGroupPermissions['sysop']['patrol'] = true;
755 $wgGroupPermissions['sysop']['protect'] = true;
756 $wgGroupPermissions['sysop']['rollback'] = true;
757 $wgGroupPermissions['sysop']['upload'] = true;
758 $wgGroupPermissions['sysop']['reupload'] = true;
759 $wgGroupPermissions['sysop']['reupload-shared'] = true;
760
761 $wgGroupPermissions['bureaucrat']['userrights'] = true;
762
763 /**
764 * The developer group is deprecated, but can be activated if need be
765 * to use the 'lockdb' and 'unlockdb' special pages. Those require
766 * that a lock file be defined and creatable/removable by the web
767 * server.
768 */
769 # $wgGroupPermissions['developer']['siteadmin'] = true;
770
771
772
773 # Proxy scanner settings
774 #
775
776 /**
777 * If you enable this, every editor's IP address will be scanned for open HTTP
778 * proxies.
779 *
780 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
781 * ISP and ask for your server to be shut down.
782 *
783 * You have been warned.
784 */
785 $wgBlockOpenProxies = false;
786 /** Port we want to scan for a proxy */
787 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
788 /** Script used to scan */
789 $wgProxyScriptPath = "$IP/proxy_check.php";
790 /** */
791 $wgProxyMemcExpiry = 86400;
792 /** This should always be customised in LocalSettings.php */
793 $wgSecretKey = false;
794 /** big list of banned IP addresses, in the keys not the values */
795 $wgProxyList = array();
796 /** deprecated */
797 $wgProxyKey = false;
798
799 /** Number of accounts each IP address may create, 0 to disable.
800 * Requires memcached */
801 $wgAccountCreationThrottle = 0;
802
803 # Client-side caching:
804
805 /** Allow client-side caching of pages */
806 $wgCachePages = true;
807
808 /**
809 * Set this to current time to invalidate all prior cached pages. Affects both
810 * client- and server-side caching.
811 */
812 $wgCacheEpoch = '20030516000000';
813
814
815 # Server-side caching:
816
817 /**
818 * This will cache static pages for non-logged-in users to reduce
819 * database traffic on public sites.
820 * Must set $wgShowIPinHeader = false
821 */
822 $wgUseFileCache = false;
823 /** Directory where the cached page will be saved */
824 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
825
826 /**
827 * When using the file cache, we can store the cached HTML gzipped to save disk
828 * space. Pages will then also be served compressed to clients that support it.
829 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
830 * the default LocalSettings.php! If you enable this, remove that setting first.
831 *
832 * Requires zlib support enabled in PHP.
833 */
834 $wgUseGzip = false;
835
836 # Email notification settings
837 #
838
839 /** For email notification on page changes */
840 $wgPasswordSender = $wgEmergencyContact;
841
842 # true: from page editor if s/he opted-in
843 # false: Enotif mails appear to come from $wgEmergencyContact
844 $wgEnotifFromEditor = false;
845
846 // TODO move UPO to preferences probably ?
847 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
848 # If set to false, the corresponding input form on the user preference page is suppressed
849 # It call this to be a "user-preferences-option (UPO)"
850 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
851 $wgEnotifWatchlist = false; # UPO
852 $wgEnotifUserTalk = false; # UPO
853 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
854 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
855 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
856
857
858 /** Show watching users in recent changes, watchlist and page history views */
859 $wgRCShowWatchingUsers = false; # UPO
860 /** Show watching users in Page views */
861 $wgPageShowWatchingUsers = false;
862 /**
863 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
864 * view for watched pages with new changes */
865 $wgShowUpdatedMarker = true;
866
867 $wgCookieExpiration = 2592000;
868
869 /** Clock skew or the one-second resolution of time() can occasionally cause cache
870 * problems when the user requests two pages within a short period of time. This
871 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
872 * a grace period.
873 */
874 $wgClockSkewFudge = 5;
875
876 # Squid-related settings
877 #
878
879 /** Enable/disable Squid */
880 $wgUseSquid = false;
881
882 /** If you run Squid3 with ESI support, enable this (default:false): */
883 $wgUseESI = false;
884
885 /** Internal server name as known to Squid, if different */
886 # $wgInternalServer = 'http://yourinternal.tld:8000';
887 $wgInternalServer = $wgServer;
888
889 /**
890 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
891 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
892 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
893 * days
894 */
895 $wgSquidMaxage = 18000;
896
897 /**
898 * A list of proxy servers (ips if possible) to purge on changes don't specify
899 * ports here (80 is default)
900 */
901 # $wgSquidServers = array('127.0.0.1');
902 $wgSquidServers = array();
903 $wgSquidServersNoPurge = array();
904
905 /** Maximum number of titles to purge in any one client operation */
906 $wgMaxSquidPurgeTitles = 400;
907
908 /** HTCP multicast purging */
909 $wgHTCPPort = 4827;
910 $wgHTCPMulticastTTL = 1;
911 # $wgHTCPMulticastAddress = "224.0.0.85";
912
913 # Cookie settings:
914 #
915 /**
916 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
917 * or ".any.subdomain.net"
918 */
919 $wgCookieDomain = '';
920 $wgCookiePath = '/';
921 $wgDisableCookieCheck = false;
922
923 /** Whether to allow inline image pointing to other websites */
924 $wgAllowExternalImages = true;
925
926 /** Disable database-intensive features */
927 $wgMiserMode = false;
928 /** Disable all query pages if miser mode is on, not just some */
929 $wgDisableQueryPages = false;
930 /** Generate a watchlist once every hour or so */
931 $wgUseWatchlistCache = false;
932 /** The hour or so mentioned above */
933 $wgWLCacheTimeout = 3600;
934
935 /**
936 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
937 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
938 * (ImageMagick) installed and available in the PATH.
939 * Please see math/README for more information.
940 */
941 $wgUseTeX = false;
942 /** Location of the texvc binary */
943 $wgTexvc = './math/texvc';
944
945 #
946 # Profiling / debugging
947 #
948
949 /** Enable for more detailed by-function times in debug log */
950 $wgProfiling = false;
951 /** Only record profiling info for pages that took longer than this */
952 $wgProfileLimit = 0.0;
953 /** Don't put non-profiling info into log file */
954 $wgProfileOnly = false;
955 /** Log sums from profiling into "profiling" table in db. */
956 $wgProfileToDatabase = false;
957 /** Only profile every n requests when profiling is turned on */
958 $wgProfileSampleRate = 1;
959 /** If true, print a raw call tree instead of per-function report */
960 $wgProfileCallTree = false;
961
962 /** Detects non-matching wfProfileIn/wfProfileOut calls */
963 $wgDebugProfiling = false;
964 /** Output debug message on every wfProfileIn/wfProfileOut */
965 $wgDebugFunctionEntry = 0;
966 /** Lots of debugging output from SquidUpdate.php */
967 $wgDebugSquid = false;
968
969 $wgDisableCounters = false;
970 $wgDisableTextSearch = false;
971 $wgDisableSearchContext = false;
972 /**
973 * If you've disabled search semi-permanently, this also disables updates to the
974 * table. If you ever re-enable, be sure to rebuild the search table.
975 */
976 $wgDisableSearchUpdate = false;
977 /** Uploads have to be specially set up to be secure */
978 $wgEnableUploads = false;
979 /**
980 * Show EXIF data, on by default if available.
981 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
982 */
983 $wgShowEXIF = function_exists( 'exif_read_data' );
984
985 /**
986 * Set to true to enable the upload _link_ while local uploads are disabled.
987 * Assumes that the special page link will be bounced to another server where
988 * uploads do work.
989 */
990 $wgRemoteUploads = false;
991 $wgDisableAnonTalk = false;
992 /**
993 * Do DELETE/INSERT for link updates instead of incremental
994 */
995 $wgUseDumbLinkUpdate = false;
996
997 /**
998 * Anti-lock flags - bitfield
999 * ALF_PRELOAD_LINKS
1000 * Preload links during link update for save
1001 * ALF_PRELOAD_EXISTENCE
1002 * Preload cur_id during replaceLinkHolders
1003 * ALF_NO_LINK_LOCK
1004 * Don't use locking reads when updating the link table. This is
1005 * necessary for wikis with a high edit rate for performance
1006 * reasons, but may cause link table inconsistency
1007 * ALF_NO_BLOCK_LOCK
1008 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1009 * wikis.
1010 */
1011 $wgAntiLockFlags = 0;
1012
1013 /**
1014 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1015 * fall back to the old behaviour (no merging).
1016 */
1017 $wgDiff3 = '/usr/bin/diff3';
1018
1019 /**
1020 * We can also compress text in the old revisions table. If this is set on, old
1021 * revisions will be compressed on page save if zlib support is available. Any
1022 * compressed revisions will be decompressed on load regardless of this setting
1023 * *but will not be readable at all* if zlib support is not available.
1024 */
1025 $wgCompressRevisions = false;
1026
1027 /**
1028 * This is the list of preferred extensions for uploading files. Uploading files
1029 * with extensions not in this list will trigger a warning.
1030 */
1031 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1032
1033 /** Files with these extensions will never be allowed as uploads. */
1034 $wgFileBlacklist = array(
1035 # HTML may contain cookie-stealing JavaScript and web bugs
1036 'html', 'htm', 'js', 'jsb',
1037 # PHP scripts may execute arbitrary code on the server
1038 'php', 'phtml', 'php3', 'php4', 'phps',
1039 # Other types that may be interpreted by some servers
1040 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1041 # May contain harmful executables for Windows victims
1042 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1043
1044 /** Files with these mime types will never be allowed as uploads
1045 * if $wgVerifyMimeType is enabled.
1046 */
1047 $wgMimeTypeBlacklist= array(
1048 # HTML may contain cookie-stealing JavaScript and web bugs
1049 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1050 # PHP scripts may execute arbitrary code on the server
1051 'application/x-php', 'text/x-php',
1052 # Other types that may be interpreted by some servers
1053 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh'
1054 );
1055
1056 /** This is a flag to determine whether or not to check file extensions on upload. */
1057 $wgCheckFileExtensions = true;
1058
1059 /**
1060 * If this is turned off, users may override the warning for files not covered
1061 * by $wgFileExtensions.
1062 */
1063 $wgStrictFileExtensions = true;
1064
1065 /** Warn if uploaded files are larger than this */
1066 $wgUploadSizeWarning = 150 * 1024;
1067
1068 /** For compatibility with old installations set to false */
1069 $wgPasswordSalt = true;
1070
1071 /** Which namespaces should support subpages?
1072 * See Language.php for a list of namespaces.
1073 */
1074 $wgNamespacesWithSubpages = array(
1075 NS_TALK => true,
1076 NS_USER => true,
1077 NS_USER_TALK => true,
1078 NS_PROJECT_TALK => true,
1079 NS_IMAGE_TALK => true,
1080 NS_MEDIAWIKI_TALK => true,
1081 NS_TEMPLATE_TALK => true,
1082 NS_HELP_TALK => true,
1083 NS_CATEGORY_TALK => true
1084 );
1085
1086 $wgNamespacesToBeSearchedDefault = array(
1087 NS_MAIN => true,
1088 );
1089
1090 /** If set, a bold ugly notice will show up at the top of every page. */
1091 $wgSiteNotice = '';
1092
1093
1094 #
1095 # Images settings
1096 #
1097
1098 /** dynamic server side image resizing ("Thumbnails") */
1099 $wgUseImageResize = false;
1100
1101 /**
1102 * Resizing can be done using PHP's internal image libraries or using
1103 * ImageMagick. The later supports more file formats than PHP, which only
1104 * supports PNG, GIF, JPG, XBM and WBMP.
1105 *
1106 * Use Image Magick instead of PHP builtin functions.
1107 */
1108 $wgUseImageMagick = false;
1109 /** The convert command shipped with ImageMagick */
1110 $wgImageMagickConvertCommand = '/usr/bin/convert';
1111
1112 # Scalable Vector Graphics (SVG) may be uploaded as images.
1113 # Since SVG support is not yet standard in browsers, it is
1114 # necessary to rasterize SVGs to PNG as a fallback format.
1115 #
1116 # An external program is required to perform this conversion:
1117 $wgSVGConverters = array(
1118 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1119 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1120 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1121 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1122 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1123 );
1124 /** Pick one of the above */
1125 $wgSVGConverter = 'ImageMagick';
1126 /** If not in the executable PATH, specify */
1127 $wgSVGConverterPath = '';
1128 /** Don't scale a SVG larger than this unless its native size is larger */
1129 $wgSVGMaxSize = 1024;
1130 /**
1131 * Don't thumbnail an image if it will use too much working memory
1132 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1133 * 12.5 million pixels or 3500x3500
1134 */
1135 $wgMaxImageArea = 1.25e7;
1136
1137 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1138 if( !isset( $wgCommandLineMode ) ) {
1139 $wgCommandLineMode = false;
1140 }
1141
1142
1143 #
1144 # Recent changes settings
1145 #
1146
1147 /** Log IP addresses in the recentchanges table */
1148 $wgPutIPinRC = false;
1149
1150 /**
1151 * Recentchanges items are periodically purged; entries older than this many
1152 * seconds will go.
1153 * For one week : 7 * 24 * 3600
1154 */
1155 $wgRCMaxAge = 7 * 24 * 3600;
1156
1157
1158 # Send RC updates via UDP
1159 $wgRC2UDPAddress = false;
1160 $wgRC2UDPPort = false;
1161 $wgRC2UDPPrefix = '';
1162
1163 #
1164 # Copyright and credits settings
1165 #
1166
1167 /** RDF metadata toggles */
1168 $wgEnableDublinCoreRdf = false;
1169 $wgEnableCreativeCommonsRdf = false;
1170
1171 /** Override for copyright metadata.
1172 * TODO: these options need documentation
1173 */
1174 $wgRightsPage = NULL;
1175 $wgRightsUrl = NULL;
1176 $wgRightsText = NULL;
1177 $wgRightsIcon = NULL;
1178
1179 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1180 $wgCopyrightIcon = NULL;
1181
1182 /** Set this to true if you want detailed copyright information forms on Upload. */
1183 $wgUseCopyrightUpload = false;
1184
1185 /** Set this to false if you want to disable checking that detailed copyright
1186 * information values are not empty. */
1187 $wgCheckCopyrightUpload = true;
1188
1189 /**
1190 * Set this to the number of authors that you want to be credited below an
1191 * article text. Set it to zero to hide the attribution block, and a negative
1192 * number (like -1) to show all authors. Note that this will require 2-3 extra
1193 * database hits, which can have a not insignificant impact on performance for
1194 * large wikis.
1195 */
1196 $wgMaxCredits = 0;
1197
1198 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1199 * Otherwise, link to a separate credits page. */
1200 $wgShowCreditsIfMax = true;
1201
1202
1203
1204 /**
1205 * Set this to false to avoid forcing the first letter of links to capitals.
1206 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1207 * appearing with a capital at the beginning of a sentence will *not* go to the
1208 * same place as links in the middle of a sentence using a lowercase initial.
1209 */
1210 $wgCapitalLinks = true;
1211
1212 /**
1213 * List of interwiki prefixes for wikis we'll accept as sources for
1214 * Special:Import (for sysops). Since complete page history can be imported,
1215 * these should be 'trusted'.
1216 *
1217 * If a user has the 'import' permission but not the 'importupload' permission,
1218 * they will only be able to run imports through this transwiki interface.
1219 */
1220 $wgImportSources = array();
1221
1222
1223
1224 /** Text matching this regular expression will be recognised as spam
1225 * See http://en.wikipedia.org/wiki/Regular_expression */
1226 $wgSpamRegex = false;
1227 /** Similarly if this function returns true */
1228 $wgFilterCallback = false;
1229
1230 /** Go button goes straight to the edit screen if the article doesn't exist. */
1231 $wgGoToEdit = false;
1232
1233 /** Allow limited user-specified HTML in wiki pages?
1234 * It will be run through a whitelist for security. Set this to false if you
1235 * want wiki pages to consist only of wiki markup. Note that replacements do not
1236 * yet exist for all HTML constructs.*/
1237 $wgUserHtml = true;
1238
1239 /** Allow raw, unchecked HTML in <html>...</html> sections.
1240 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1241 * TO RESTRICT EDITING to only those that you trust
1242 */
1243 $wgRawHtml = false;
1244
1245 /**
1246 * $wgUseTidy: use tidy to make sure HTML output is sane.
1247 * This should only be enabled if $wgUserHtml is true.
1248 * tidy is a free tool that fixes broken HTML.
1249 * See http://www.w3.org/People/Raggett/tidy/
1250 * $wgTidyBin should be set to the path of the binary and
1251 * $wgTidyConf to the path of the configuration file.
1252 * $wgTidyOpts can include any number of parameters.
1253 *
1254 * $wgTidyInternal controls the use of the PECL extension to use an in-
1255 * process tidy library instead of spawning a separate program.
1256 * Normally you shouldn't need to override the setting except for
1257 * debugging. To install, use 'pear install tidy' and add a line
1258 * 'extension=tidy.so' to php.ini.
1259 */
1260 $wgUseTidy = false;
1261 $wgTidyBin = 'tidy';
1262 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1263 $wgTidyOpts = '';
1264 $wgTidyInternal = function_exists( 'tidy_load_config' );
1265
1266 /** See list of skins and their symbolic names in languages/Language.php */
1267 $wgDefaultSkin = 'monobook';
1268
1269 /**
1270 * Settings added to this array will override the language globals for the user
1271 * preferences used by anonymous visitors and newly created accounts. (See names
1272 * and sample values in languages/Language.php)
1273 * For instance, to disable section editing links:
1274 * $wgDefaultUserOptions ['editsection'] = 0;
1275 *
1276 */
1277 $wgDefaultUserOptions = array();
1278
1279 /** Whether or not to allow and use real name fields. Defaults to true. */
1280 $wgAllowRealName = true;
1281
1282 /** Use XML parser? */
1283 $wgUseXMLparser = false ;
1284
1285 /** Extensions */
1286 $wgSkinExtensionFunctions = array();
1287 $wgExtensionFunctions = array();
1288 /**
1289 * An array of extension types and inside that their names, versions, authors
1290 * and urls, note that the version and url key can be omitted.
1291 *
1292 * <code>
1293 * $wgExtensionCredits[$type][] = array(
1294 * 'name' => 'Example extension',
1295 * 'version' => 1.9,
1296 * 'author' => 'Foo Barstein',
1297 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1298 * );
1299 * </code>
1300 *
1301 * Where $type is 'specialpage', 'parserhook', or 'other'.
1302 */
1303 $wgExtensionCredits = array();
1304
1305 /**
1306 * Allow user Javascript page?
1307 * This enables a lot of neat customizations, but may
1308 * increase security risk to users and server load.
1309 */
1310 $wgAllowUserJs = false;
1311
1312 /**
1313 * Allow user Cascading Style Sheets (CSS)?
1314 * This enables a lot of neat customizations, but may
1315 * increase security risk to users and server load.
1316 */
1317 $wgAllowUserCss = false;
1318
1319 /** Use the site's Javascript page? */
1320 $wgUseSiteJs = true;
1321
1322 /** Use the site's Cascading Style Sheets (CSS)? */
1323 $wgUseSiteCss = true;
1324
1325 /** Filter for Special:Randompage. Part of a WHERE clause */
1326 $wgExtraRandompageSQL = false;
1327
1328 /**
1329 * Enable the Special:Unwatchedpages special page, turned off by default since
1330 * most would consider this privelaged information as it could be used as a
1331 * list of pages to vandalize.
1332 */
1333 $wgEnableUnwatchedpages = false;
1334
1335 /** Allow the "info" action, very inefficient at the moment */
1336 $wgAllowPageInfo = false;
1337
1338 /** Maximum indent level of toc. */
1339 $wgMaxTocLevel = 999;
1340
1341 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1342 $wgUseExternalDiffEngine = false;
1343
1344 /** Use RC Patrolling to check for vandalism */
1345 $wgUseRCPatrol = true;
1346
1347 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1348 * eg Recentchanges, Newpages. */
1349 $wgFeedLimit = 50;
1350
1351 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1352 * A cached version will continue to be served out even if changes
1353 * are made, until this many seconds runs out since the last render. */
1354 $wgFeedCacheTimeout = 60;
1355
1356 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1357 * pages larger than this size. */
1358 $wgFeedDiffCutoff = 32768;
1359
1360
1361 /**
1362 * Additional namespaces. If the namespaces defined in Language.php and
1363 * Namespace.php are insufficient, you can create new ones here, for example,
1364 * to import Help files in other languages.
1365 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1366 * no longer be accessible. If you rename it, then you can access them through
1367 * the new namespace name.
1368 *
1369 * Custom namespaces should start at 100 to avoid conflicting with standard
1370 * namespaces, and should always follow the even/odd main/talk pattern.
1371 */
1372 #$wgExtraNamespaces =
1373 # array(100 => "Hilfe",
1374 # 101 => "Hilfe_Diskussion",
1375 # 102 => "Aide",
1376 # 103 => "Discussion_Aide"
1377 # );
1378 $wgExtraNamespaces = NULL;
1379
1380 /**
1381 * Limit images on image description pages to a user-selectable limit. In order
1382 * to reduce disk usage, limits can only be selected from a list. This is the
1383 * list of settings the user can choose from:
1384 */
1385 $wgImageLimits = array (
1386 array(320,240),
1387 array(640,480),
1388 array(800,600),
1389 array(1024,768),
1390 array(1280,1024),
1391 array(10000,10000) );
1392
1393 /**
1394 * Adjust thumbnails on image pages according to a user setting. In order to
1395 * reduce disk usage, the values can only be selected from a list. This is the
1396 * list of settings the user can choose from:
1397 */
1398 $wgThumbLimits = array(
1399 120,
1400 150,
1401 180,
1402 200,
1403 250,
1404 300
1405 );
1406
1407 /**
1408 * On category pages, show thumbnail gallery for images belonging to that
1409 * category instead of listing them as articles.
1410 */
1411 $wgCategoryMagicGallery = true;
1412
1413 /**
1414 * Browser Blacklist for unicode non compliant browsers
1415 * Contains a list of regexps : "/regexp/" matching problematic browsers
1416 */
1417 $wgBrowserBlackList = array(
1418 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1419 /**
1420 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1421 *
1422 * Known useragents:
1423 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1424 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1425 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1426 * - [...]
1427 *
1428 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1429 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1430 */
1431 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1432 );
1433
1434 /**
1435 * Fake out the timezone that the server thinks it's in. This will be used for
1436 * date display and not for what's stored in the DB. Leave to null to retain
1437 * your server's OS-based timezone value. This is the same as the timezone.
1438 *
1439 * This variable is currently used ONLY for signature formatting, not for
1440 * anything else.
1441 */
1442 # $wgLocaltimezone = 'GMT';
1443 # $wgLocaltimezone = 'PST8PDT';
1444 # $wgLocaltimezone = 'Europe/Sweden';
1445 # $wgLocaltimezone = 'CET';
1446 $wgLocaltimezone = null;
1447
1448 /**
1449 * Set an offset from UTC in hours to use for the default timezone setting
1450 * for anonymous users and new user accounts.
1451 *
1452 * This setting is used for most date/time displays in the software, and is
1453 * overrideable in user preferences. It is *not* used for signature timestamps.
1454 *
1455 * You can set it to match the configured server timezone like this:
1456 * $wgLocalTZoffset = date("Z") / 3600;
1457 *
1458 * If your server is not configured for the timezone you want, you can set
1459 * this in conjunction with the signature timezone and override the TZ
1460 * environment variable like so:
1461 * $wgLocaltimezone="Europe/Berlin";
1462 * putenv("TZ=$wgLocaltimezone");
1463 * $wgLocalTZoffset = date("Z") / 3600;
1464 *
1465 * Leave at NULL to show times in universal time (UTC/GMT).
1466 */
1467 $wgLocalTZoffset = null;
1468
1469
1470 /**
1471 * When translating messages with wfMsg(), it is not always clear what should be
1472 * considered UI messages and what shoud be content messages.
1473 *
1474 * For example, for regular wikipedia site like en, there should be only one
1475 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1476 * it as content of the site and call wfMsgForContent(), while for rendering the
1477 * text of the link, we call wfMsg(). The code in default behaves this way.
1478 * However, sites like common do offer different versions of 'mainpage' and the
1479 * like for different languages. This array provides a way to override the
1480 * default behavior. For example, to allow language specific mainpage and
1481 * community portal, set
1482 *
1483 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1484 */
1485 $wgForceUIMsgAsContentMsg = array();
1486
1487
1488 /**
1489 * Authentication plugin.
1490 */
1491 $wgAuth = null;
1492
1493 /**
1494 * Global list of hooks.
1495 * Add a hook by doing:
1496 * $wgHooks['event_name'][] = $function;
1497 * or:
1498 * $wgHooks['event_name'][] = array($function, $data);
1499 * or:
1500 * $wgHooks['event_name'][] = array($object, 'method');
1501 */
1502 $wgHooks = array();
1503
1504 /**
1505 * Experimental preview feature to fetch rendered text
1506 * over an XMLHttpRequest from JavaScript instead of
1507 * forcing a submit and reload of the whole page.
1508 * Leave disabled unless you're testing it.
1509 */
1510 $wgLivePreview = false;
1511
1512 /**
1513 * Disable the internal MySQL-based search, to allow it to be
1514 * implemented by an extension instead.
1515 */
1516 $wgDisableInternalSearch = false;
1517
1518 /**
1519 * Set this to a URL to forward search requests to some external location.
1520 * If the URL includes '$1', this will be replaced with the URL-encoded
1521 * search term.
1522 *
1523 * For example, to forward to Google you'd have something like:
1524 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1525 * '&domains=http://example.com' .
1526 * '&sitesearch=http://example.com' .
1527 * '&ie=utf-8&oe=utf-8';
1528 */
1529 $wgSearchForwardUrl = null;
1530
1531 /**
1532 * If true, external URL links in wiki text will be given the
1533 * rel="nofollow" attribute as a hint to search engines that
1534 * they should not be followed for ranking purposes as they
1535 * are user-supplied and thus subject to spamming.
1536 */
1537 $wgNoFollowLinks = true;
1538
1539 /**
1540 * Specifies the minimal length of a user password. If set to
1541 * 0, empty passwords are allowed.
1542 */
1543 $wgMinimalPasswordLength = 0;
1544
1545 /**
1546 * Activate external editor interface for files and pages
1547 * See http://meta.wikimedia.org/wiki/Help:External_editors
1548 */
1549 $wgUseExternalEditor = true;
1550
1551 /** Whether or not to sort special pages in Special:Specialpages */
1552
1553 $wgSortSpecialPages = true;
1554
1555 /**
1556 * Specify the name of a skin that should not be presented in the
1557 * list of available skins.
1558 * Use for blacklisting a skin which you do not want to remove
1559 * from the .../skins/ directory
1560 */
1561 $wgSkipSkin = '';
1562 $wgSkipSkins = array(); # More of the same
1563
1564 /**
1565 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1566 */
1567 $wgDisabledActions = array();
1568
1569 /**
1570 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1571 */
1572 $wgDisableHardRedirects = false;
1573
1574 /**
1575 * Use http.dnsbl.sorbs.net to check for open proxies
1576 */
1577 $wgEnableSorbs = false;
1578
1579 /**
1580 * Use opm.blitzed.org to check for open proxies.
1581 * Not yet actually used.
1582 */
1583 $wgEnableOpm = false;
1584
1585 /**
1586 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1587 * methods might say
1588 */
1589 $wgProxyWhitelist = array();
1590
1591 /**
1592 * Simple rate limiter options to brake edit floods.
1593 * Maximum number actions allowed in the given number of seconds;
1594 * after that the violating client receives HTTP 500 error pages
1595 * until the period elapses.
1596 *
1597 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
1598 *
1599 * This option set is experimental and likely to change.
1600 * Requires memcached.
1601 */
1602 $wgRateLimits = array(
1603 'edit' => array(
1604 'anon' => null, // for any and all anonymous edits (aggregate)
1605 'user' => null, // for each logged-in user
1606 'newbie' => null, // for each recent account; overrides 'user'
1607 'ip' => null, // for each anon and recent account
1608 'subnet' => null, // ... with final octet removed
1609 ),
1610 'move' => array(
1611 'user' => null,
1612 'newbie' => null,
1613 'ip' => null,
1614 'subnet' => null,
1615 ),
1616 );
1617
1618 /**
1619 * Set to a filename to log rate limiter hits.
1620 */
1621 $wgRateLimitLog = null;
1622
1623 /**
1624 * On Special:Unusedimages, consider images "used", if they are put
1625 * into a category. Default (false) is not to count those as used.
1626 */
1627 $wgCountCategorizedImagesAsUsed = false;
1628
1629 /**
1630 * External stores allow including content
1631 * from non database sources following URL links
1632 *
1633 * Short names of ExternalStore classes may be specified in an array here:
1634 * $wgExternalStores = array("http","file","custom")...
1635 *
1636 * CAUTION: Access to database might lead to code execution
1637 */
1638 $wgExternalStores = false;
1639
1640 /**
1641 * An array of external mysql servers, e.g.
1642 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1643 */
1644 $wgExternalServers = array();
1645
1646 /**
1647 * list of trusted media-types and mime types.
1648 * Use the MEDIATYPE_xxx constants to represent media types.
1649 * This list is used by Image::isSafeFile
1650 *
1651 * Types not listed here will have a warning about unsafe content
1652 * displayed on the images description page. It would also be possible
1653 * to use this for further restrictions, like disabling direct
1654 * [[media:...]] links for non-trusted formats.
1655 */
1656 $wgTrustedMediaFormats= array(
1657 MEDIATYPE_BITMAP, //all bitmap formats
1658 MEDIATYPE_AUDIO, //all audio formats
1659 MEDIATYPE_VIDEO, //all plain video formats
1660 "image/svg", //svg (only needed if inline rendering of svg is not supported)
1661 "application/pdf", //PDF files
1662 #"application/x-shockwafe-flash", //flash/shockwave movie
1663 );
1664
1665 /**
1666 * Allow special page inclusions such as {{Special:Allpages}}
1667 */
1668 $wgAllowSpecialInclusion = true;
1669
1670 /**
1671 * Timeout for HTTP requests done via CURL
1672 */
1673 $wgHTTPTimeout = 3;
1674
1675 /**
1676 * Proxy to use for CURL requests.
1677 */
1678 $wgHTTPProxy = false;
1679
1680 /**
1681 * Enable interwiki transcluding. Only when iw_trans=1.
1682 */
1683 $wgEnableScaryTranscluding = false;
1684
1685 /**
1686 * Support blog-style "trackbacks" for articles. See
1687 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
1688 */
1689 $wgUseTrackbacks = false;
1690
1691 /**
1692 * Enable filtering of robots in Special:Watchlist
1693 */
1694
1695 $wgFilterRobotsWL = false;
1696
1697 ?>