* Support SVG rendering with rsvg
[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
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 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
503 $wgMemCachedServers = array( '127.0.0.1:11000' );
504 $wgMemCachedDebug = false;
505
506
507
508 # Language settings
509 #
510 /** Site language code, should be one of ./languages/Language(.*).php */
511 $wgLanguageCode = 'en';
512
513 /** Treat language links as magic connectors, not inline links */
514 $wgInterwikiMagic = true;
515
516 /** Hide interlanguage links from the sidebar */
517 $wgHideInterlanguageLinks = false;
518
519
520 /** We speak UTF-8 all the time now, unless some oddities happen */
521 $wgInputEncoding = 'UTF-8';
522 $wgOutputEncoding = 'UTF-8';
523 $wgEditEncoding = '';
524
525 # Set this to eg 'ISO-8859-1' to perform character set
526 # conversion when loading old revisions not marked with
527 # "utf-8" flag. Use this when converting wiki to UTF-8
528 # without the burdensome mass conversion of old text data.
529 #
530 # NOTE! This DOES NOT touch any fields other than old_text.
531 # Titles, comments, user names, etc still must be converted
532 # en masse in the database before continuing as a UTF-8 wiki.
533 $wgLegacyEncoding = false;
534
535 /**
536 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
537 * create stub reference rows in the text table instead of copying
538 * the full text of all current entries from 'cur' to 'text'.
539 *
540 * This will speed up the conversion step for large sites, but
541 * requires that the cur table be kept around for those revisions
542 * to remain viewable.
543 *
544 * maintenance/migrateCurStubs.php can be used to complete the
545 * migration in the background once the wiki is back online.
546 *
547 * This option affects the updaters *only*. Any present cur stub
548 * revisions will be readable at runtime regardless of this setting.
549 */
550 $wgLegacySchemaConversion = false;
551
552 $wgMimeType = 'text/html';
553 $wgJsMimeType = 'text/javascript';
554 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
555 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
556
557 /** Enable to allow rewriting dates in page text.
558 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
559 $wgUseDynamicDates = false;
560 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
561 * the interface is set to English
562 */
563 $wgAmericanDates = false;
564 /**
565 * For Hindi and Arabic use local numerals instead of Western style (0-9)
566 * numerals in interface.
567 */
568 $wgTranslateNumerals = true;
569
570
571 # Translation using MediaWiki: namespace
572 # This will increase load times by 25-60% unless memcached is installed
573 # Interface messages will be loaded from the database.
574 $wgUseDatabaseMessages = true;
575 $wgMsgCacheExpiry = 86400;
576
577 # Whether to enable language variant conversion.
578 $wgDisableLangConversion = false;
579
580 # Use article validation feature; turned off by default
581 $wgUseValidation = false;
582 $wgValidationForAnons = true ;
583
584 # Whether to use zhdaemon to perform Chinese text processing
585 # zhdaemon is under developement, so normally you don't want to
586 # use it unless for testing
587 $wgUseZhdaemon = false;
588 $wgZhdaemonHost="localhost";
589 $wgZhdaemonPort=2004;
590
591 /** Normally you can ignore this and it will be something
592 like $wgMetaNamespace . "_talk". In some languages, you
593 may want to set this manually for grammatical reasons.
594 It is currently only respected by those languages
595 where it might be relevant and where no automatic
596 grammar converter exists.
597 */
598 $wgMetaNamespaceTalk = false;
599
600 # Miscellaneous configuration settings
601 #
602
603 $wgLocalInterwiki = 'w';
604 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
605
606 /**
607 * If local interwikis are set up which allow redirects,
608 * set this regexp to restrict URLs which will be displayed
609 * as 'redirected from' links.
610 *
611 * It might look something like this:
612 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
613 *
614 * Leave at false to avoid displaying any incoming redirect markers.
615 * This does not affect intra-wiki redirects, which don't change
616 * the URL.
617 */
618 $wgRedirectSources = false;
619
620
621 $wgShowIPinHeader = true; # For non-logged in users
622 $wgMaxNameChars = 255; # Maximum number of bytes in username
623
624 $wgExtraSubtitle = '';
625 $wgSiteSupportPage = ''; # A page where you users can receive donations
626
627 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
628
629 /**
630 * The debug log file should be not be publicly accessible if it is used, as it
631 * may contain private data. */
632 $wgDebugLogFile = '';
633
634 /**#@+
635 * @global bool
636 */
637 $wgDebugRedirects = false;
638 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
639
640 $wgDebugComments = false;
641 $wgReadOnly = false;
642 $wgLogQueries = false;
643 $wgDebugDumpSql = false;
644
645 /**
646 * Set to an array of log group keys to filenames.
647 * If set, wfDebugLog() output for that group will go to that file instead
648 * of the regular $wgDebugLogFile. Useful for enabling selective logging
649 * in production.
650 */
651 $wgDebugLogGroups = array();
652
653 /**
654 * Whether to show "we're sorry, but there has been a database error" pages.
655 * Displaying errors aids in debugging, but may display information useful
656 * to an attacker.
657 */
658 $wgShowSQLErrors = false;
659
660 # Should [[Category:Dog]] on a page associate it with the
661 # category "Dog"? (a link to that category page will be
662 # added to the article, clicking it reveals a list of
663 # all articles in the category)
664 $wgUseCategoryMagic = true;
665
666 /**
667 * disable experimental dmoz-like category browsing. Output things like:
668 * Encyclopedia > Music > Style of Music > Jazz
669 */
670 $wgUseCategoryBrowser = false;
671
672 /**
673 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
674 * to speed up output of the same page viewed by another user with the
675 * same options.
676 *
677 * This can provide a significant speedup for medium to large pages,
678 * so you probably want to keep it on.
679 */
680 $wgEnableParserCache = true;
681
682 /**
683 * Under which condition should a page in the main namespace be counted
684 * as a valid article? If $wgUseCommaCount is set to true, it will be
685 * counted if it contains at least one comma. If it is set to false
686 * (default), it will only be counted if it contains at least one [[wiki
687 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
688 *
689 * Retroactively changing this variable will not affect
690 * the existing count (cf. maintenance/recount.sql).
691 */
692 $wgUseCommaCount = false;
693
694 /**#@-*/
695
696 /**
697 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
698 * values are easier on the database. A value of 1 causes the counters to be
699 * updated on every hit, any higher value n cause them to update *on average*
700 * every n hits. Should be set to either 1 or something largish, eg 1000, for
701 * maximum efficiency.
702 */
703 $wgHitcounterUpdateFreq = 1;
704
705 # User rights settings
706 #
707 # It's not 100% safe, there could be security hole using that one. Use at your
708 # own risks.
709
710 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
711
712 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
713
714 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
715 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
716
717 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
718 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
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 * This replaces wgWhitelistAccount and wgWhitelistEdit
728 */
729 $wgGroupPermissions = array();
730
731 $wgGroupPermissions['*' ]['createaccount'] = true;
732 $wgGroupPermissions['*' ]['read'] = true;
733 $wgGroupPermissions['*' ]['edit'] = true;
734
735 $wgGroupPermissions['user' ]['move'] = true;
736 $wgGroupPermissions['user' ]['read'] = true;
737 $wgGroupPermissions['user' ]['edit'] = true;
738 $wgGroupPermissions['user' ]['upload'] = true;
739 $wgGroupPermissions['user' ]['reupload'] = true;
740 $wgGroupPermissions['user' ]['reupload-shared'] = true;
741
742 $wgGroupPermissions['bot' ]['bot'] = true;
743
744 $wgGroupPermissions['sysop']['block'] = true;
745 $wgGroupPermissions['sysop']['createaccount'] = true;
746 $wgGroupPermissions['sysop']['delete'] = true;
747 $wgGroupPermissions['sysop']['editinterface'] = true;
748 $wgGroupPermissions['sysop']['import'] = true;
749 $wgGroupPermissions['sysop']['importupload'] = true;
750 $wgGroupPermissions['sysop']['move'] = true;
751 $wgGroupPermissions['sysop']['patrol'] = true;
752 $wgGroupPermissions['sysop']['protect'] = true;
753 $wgGroupPermissions['sysop']['rollback'] = true;
754 $wgGroupPermissions['sysop']['upload'] = true;
755 $wgGroupPermissions['sysop']['reupload'] = true;
756 $wgGroupPermissions['sysop']['reupload-shared'] = true;
757
758 $wgGroupPermissions['bureaucrat']['userrights'] = true;
759 // Used by the Special:Renameuser extension
760 $wgGroupPermissions['bureaucrat']['renameuser'] = true;
761
762 /**
763 * The developer group is deprecated, but can be activated if need be
764 * to use the 'lockdb' and 'unlockdb' special pages. Those require
765 * that a lock file be defined and creatable/removable by the web
766 * server.
767 */
768 # $wgGroupPermissions['developer']['siteadmin'] = true;
769
770
771
772 # Proxy scanner settings
773 #
774
775 /**
776 * If you enable this, every editor's IP address will be scanned for open HTTP
777 * proxies.
778 *
779 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
780 * ISP and ask for your server to be shut down.
781 *
782 * You have been warned.
783 */
784 $wgBlockOpenProxies = false;
785 /** Port we want to scan for a proxy */
786 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
787 /** Script used to scan */
788 $wgProxyScriptPath = "$IP/proxy_check.php";
789 /** */
790 $wgProxyMemcExpiry = 86400;
791 /** This should always be customised in LocalSettings.php */
792 $wgSecretKey = false;
793 /** big list of banned IP addresses, in the keys not the values */
794 $wgProxyList = array();
795 /** deprecated */
796 $wgProxyKey = false;
797
798 /** Number of accounts each IP address may create, 0 to disable.
799 * Requires memcached */
800 $wgAccountCreationThrottle = 0;
801
802 # Client-side caching:
803
804 /** Allow client-side caching of pages */
805 $wgCachePages = true;
806
807 /**
808 * Set this to current time to invalidate all prior cached pages. Affects both
809 * client- and server-side caching.
810 */
811 $wgCacheEpoch = '20030516000000';
812
813
814 # Server-side caching:
815
816 /**
817 * This will cache static pages for non-logged-in users to reduce
818 * database traffic on public sites.
819 * Must set $wgShowIPinHeader = false
820 */
821 $wgUseFileCache = false;
822 /** Directory where the cached page will be saved */
823 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
824
825 /**
826 * When using the file cache, we can store the cached HTML gzipped to save disk
827 * space. Pages will then also be served compressed to clients that support it.
828 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
829 * the default LocalSettings.php! If you enable this, remove that setting first.
830 *
831 * Requires zlib support enabled in PHP.
832 */
833 $wgUseGzip = false;
834
835 # Email notification settings
836 #
837
838 /** For email notification on page changes */
839 $wgPasswordSender = $wgEmergencyContact;
840
841 # true: from page editor if s/he opted-in
842 # false: Enotif mails appear to come from $wgEmergencyContact
843 $wgEnotifFromEditor = false;
844
845 // TODO move UPO to preferences probably ?
846 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
847 # If set to false, the corresponding input form on the user preference page is suppressed
848 # It call this to be a "user-preferences-option (UPO)"
849 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
850 $wgEnotifWatchlist = false; # UPO
851 $wgEnotifUserTalk = false; # UPO
852 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
853 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
854 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
855
856
857 /** Show watching users in recent changes, watchlist and page history views */
858 $wgRCShowWatchingUsers = false; # UPO
859 /** Show watching users in Page views */
860 $wgPageShowWatchingUsers = false;
861 /**
862 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
863 * view for watched pages with new changes */
864 $wgShowUpdatedMarker = true;
865
866 $wgCookieExpiration = 2592000;
867
868 /** Clock skew or the one-second resolution of time() can occasionally cause cache
869 * problems when the user requests two pages within a short period of time. This
870 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
871 * a grace period.
872 */
873 $wgClockSkewFudge = 5;
874
875 # Squid-related settings
876 #
877
878 /** Enable/disable Squid */
879 $wgUseSquid = false;
880
881 /** If you run Squid3 with ESI support, enable this (default:false): */
882 $wgUseESI = false;
883
884 /** Internal server name as known to Squid, if different */
885 # $wgInternalServer = 'http://yourinternal.tld:8000';
886 $wgInternalServer = $wgServer;
887
888 /**
889 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
890 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
891 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
892 * days
893 */
894 $wgSquidMaxage = 18000;
895
896 /**
897 * A list of proxy servers (ips if possible) to purge on changes don't specify
898 * ports here (80 is default)
899 */
900 # $wgSquidServers = array('127.0.0.1');
901 $wgSquidServers = array();
902 $wgSquidServersNoPurge = array();
903
904 /** Maximum number of titles to purge in any one client operation */
905 $wgMaxSquidPurgeTitles = 400;
906
907 /** HTCP multicast purging */
908 $wgHTCPPort = 4827;
909 $wgHTCPMulticastTTL = 1;
910 # $wgHTCPMulticastAddress = "224.0.0.85";
911
912 # Cookie settings:
913 #
914 /**
915 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
916 * or ".any.subdomain.net"
917 */
918 $wgCookieDomain = '';
919 $wgCookiePath = '/';
920 $wgDisableCookieCheck = false;
921
922 /** Whether to allow inline image pointing to other websites */
923 $wgAllowExternalImages = true;
924
925 /** Disable database-intensive features */
926 $wgMiserMode = false;
927 /** Disable all query pages if miser mode is on, not just some */
928 $wgDisableQueryPages = false;
929 /** Generate a watchlist once every hour or so */
930 $wgUseWatchlistCache = false;
931 /** The hour or so mentioned above */
932 $wgWLCacheTimeout = 3600;
933
934 /**
935 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
936 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
937 * (ImageMagick) installed and available in the PATH.
938 * Please see math/README for more information.
939 */
940 $wgUseTeX = false;
941 /** Location of the texvc binary */
942 $wgTexvc = './math/texvc';
943
944 #
945 # Profiling / debugging
946 #
947
948 /** Enable for more detailed by-function times in debug log */
949 $wgProfiling = false;
950 /** Only record profiling info for pages that took longer than this */
951 $wgProfileLimit = 0.0;
952 /** Don't put non-profiling info into log file */
953 $wgProfileOnly = false;
954 /** Log sums from profiling into "profiling" table in db. */
955 $wgProfileToDatabase = false;
956 /** Only profile every n requests when profiling is turned on */
957 $wgProfileSampleRate = 1;
958 /** If true, print a raw call tree instead of per-function report */
959 $wgProfileCallTree = false;
960
961 /** Detects non-matching wfProfileIn/wfProfileOut calls */
962 $wgDebugProfiling = false;
963 /** Output debug message on every wfProfileIn/wfProfileOut */
964 $wgDebugFunctionEntry = 0;
965 /** Lots of debugging output from SquidUpdate.php */
966 $wgDebugSquid = false;
967
968 $wgDisableCounters = false;
969 $wgDisableTextSearch = false;
970 /**
971 * If you've disabled search semi-permanently, this also disables updates to the
972 * table. If you ever re-enable, be sure to rebuild the search table.
973 */
974 $wgDisableSearchUpdate = false;
975 /** Uploads have to be specially set up to be secure */
976 $wgEnableUploads = false;
977 /**
978 * Show EXIF data, on by default if available.
979 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
980 */
981 $wgShowEXIF = function_exists( 'exif_read_data' );
982
983 /**
984 * Set to true to enable the upload _link_ while local uploads are disabled.
985 * Assumes that the special page link will be bounced to another server where
986 * uploads do work.
987 */
988 $wgRemoteUploads = false;
989 $wgDisableAnonTalk = false;
990 /**
991 * Do DELETE/INSERT for link updates instead of incremental
992 */
993 $wgUseDumbLinkUpdate = false;
994
995 /**
996 * Anti-lock flags - bitfield
997 * ALF_PRELOAD_LINKS
998 * Preload links during link update for save
999 * ALF_PRELOAD_EXISTENCE
1000 * Preload cur_id during replaceLinkHolders
1001 * ALF_NO_LINK_LOCK
1002 * Don't use locking reads when updating the link table. This is
1003 * necessary for wikis with a high edit rate for performance
1004 * reasons, but may cause link table inconsistency
1005 * ALF_NO_BLOCK_LOCK
1006 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1007 * wikis.
1008 */
1009 $wgAntiLockFlags = 0;
1010
1011 /**
1012 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1013 * fall back to the old behaviour (no merging).
1014 */
1015 $wgDiff3 = '/usr/bin/diff3';
1016
1017 /**
1018 * We can also compress text in the old revisions table. If this is set on, old
1019 * revisions will be compressed on page save if zlib support is available. Any
1020 * compressed revisions will be decompressed on load regardless of this setting
1021 * *but will not be readable at all* if zlib support is not available.
1022 */
1023 $wgCompressRevisions = false;
1024
1025 /**
1026 * This is the list of preferred extensions for uploading files. Uploading files
1027 * with extensions not in this list will trigger a warning.
1028 */
1029 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1030
1031 /** Files with these extensions will never be allowed as uploads. */
1032 $wgFileBlacklist = array(
1033 # HTML may contain cookie-stealing JavaScript and web bugs
1034 'html', 'htm', 'js', 'jsb',
1035 # PHP scripts may execute arbitrary code on the server
1036 'php', 'phtml', 'php3', 'php4', 'phps',
1037 # Other types that may be interpreted by some servers
1038 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1039 # May contain harmful executables for Windows victims
1040 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1041
1042 /** Files with these mime types will never be allowed as uploads
1043 * if $wgVerifyMimeType is enabled.
1044 */
1045 $wgMimeTypeBlacklist= array(
1046 # HTML may contain cookie-stealing JavaScript and web bugs
1047 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1048 # PHP scripts may execute arbitrary code on the server
1049 'application/x-php', 'text/x-php',
1050 # Other types that may be interpreted by some servers
1051 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh'
1052 );
1053
1054 /** This is a flag to determine whether or not to check file extensions on upload. */
1055 $wgCheckFileExtensions = true;
1056
1057 /**
1058 * If this is turned off, users may override the warning for files not covered
1059 * by $wgFileExtensions.
1060 */
1061 $wgStrictFileExtensions = true;
1062
1063 /** Warn if uploaded files are larger than this */
1064 $wgUploadSizeWarning = 150 * 1024;
1065
1066 /** For compatibility with old installations set to false */
1067 $wgPasswordSalt = true;
1068
1069 /** Which namespaces should support subpages?
1070 * See Language.php for a list of namespaces.
1071 */
1072 $wgNamespacesWithSubpages = array(
1073 NS_TALK => true,
1074 NS_USER => true,
1075 NS_USER_TALK => true,
1076 NS_PROJECT_TALK => true,
1077 NS_IMAGE_TALK => true,
1078 NS_MEDIAWIKI_TALK => true,
1079 NS_TEMPLATE_TALK => true,
1080 NS_HELP_TALK => true,
1081 NS_CATEGORY_TALK => true
1082 );
1083
1084 $wgNamespacesToBeSearchedDefault = array(
1085 NS_MAIN => true,
1086 );
1087
1088 /** If set, a bold ugly notice will show up at the top of every page. */
1089 $wgSiteNotice = '';
1090
1091
1092 #
1093 # Images settings
1094 #
1095
1096 /** dynamic server side image resizing ("Thumbnails") */
1097 $wgUseImageResize = false;
1098
1099 /**
1100 * Resizing can be done using PHP's internal image libraries or using
1101 * ImageMagick. The later supports more file formats than PHP, which only
1102 * supports PNG, GIF, JPG, XBM and WBMP.
1103 *
1104 * Use Image Magick instead of PHP builtin functions.
1105 */
1106 $wgUseImageMagick = false;
1107 /** The convert command shipped with ImageMagick */
1108 $wgImageMagickConvertCommand = '/usr/bin/convert';
1109
1110 # Scalable Vector Graphics (SVG) may be uploaded as images.
1111 # Since SVG support is not yet standard in browsers, it is
1112 # necessary to rasterize SVGs to PNG as a fallback format.
1113 #
1114 # An external program is required to perform this conversion:
1115 $wgSVGConverters = array(
1116 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1117 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1118 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1119 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1120 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1121 );
1122 /** Pick one of the above */
1123 $wgSVGConverter = 'ImageMagick';
1124 /** If not in the executable PATH, specify */
1125 $wgSVGConverterPath = '';
1126 /** Don't scale a SVG larger than this unless its native size is larger */
1127 $wgSVGMaxSize = 1024;
1128
1129 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1130 if( !isset( $wgCommandLineMode ) ) {
1131 $wgCommandLineMode = false;
1132 }
1133
1134
1135 #
1136 # Recent changes settings
1137 #
1138
1139 /** Log IP addresses in the recentchanges table */
1140 $wgPutIPinRC = false;
1141
1142 /**
1143 * Recentchanges items are periodically purged; entries older than this many
1144 * seconds will go.
1145 * For one week : 7 * 24 * 3600
1146 */
1147 $wgRCMaxAge = 7 * 24 * 3600;
1148
1149
1150 # Send RC updates via UDP
1151 $wgRC2UDPAddress = false;
1152 $wgRC2UDPPort = false;
1153 $wgRC2UDPPrefix = '';
1154
1155 #
1156 # Copyright and credits settings
1157 #
1158
1159 /** RDF metadata toggles */
1160 $wgEnableDublinCoreRdf = false;
1161 $wgEnableCreativeCommonsRdf = false;
1162
1163 /** Override for copyright metadata.
1164 * TODO: these options need documentation
1165 */
1166 $wgRightsPage = NULL;
1167 $wgRightsUrl = NULL;
1168 $wgRightsText = NULL;
1169 $wgRightsIcon = NULL;
1170
1171 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1172 $wgCopyrightIcon = NULL;
1173
1174 /** Set this to true if you want detailed copyright information forms on Upload. */
1175 $wgUseCopyrightUpload = false;
1176
1177 /** Set this to false if you want to disable checking that detailed copyright
1178 * information values are not empty. */
1179 $wgCheckCopyrightUpload = true;
1180
1181 /**
1182 * Set this to the number of authors that you want to be credited below an
1183 * article text. Set it to zero to hide the attribution block, and a negative
1184 * number (like -1) to show all authors. Note that this will require 2-3 extra
1185 * database hits, which can have a not insignificant impact on performance for
1186 * large wikis.
1187 */
1188 $wgMaxCredits = 0;
1189
1190 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1191 * Otherwise, link to a separate credits page. */
1192 $wgShowCreditsIfMax = true;
1193
1194
1195
1196 /**
1197 * Set this to false to avoid forcing the first letter of links to capitals.
1198 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1199 * appearing with a capital at the beginning of a sentence will *not* go to the
1200 * same place as links in the middle of a sentence using a lowercase initial.
1201 */
1202 $wgCapitalLinks = true;
1203
1204 /**
1205 * List of interwiki prefixes for wikis we'll accept as sources for
1206 * Special:Import (for sysops). Since complete page history can be imported,
1207 * these should be 'trusted'.
1208 *
1209 * If a user has the 'import' permission but not the 'importupload' permission,
1210 * they will only be able to run imports through this transwiki interface.
1211 */
1212 $wgImportSources = array();
1213
1214
1215
1216 /** Text matching this regular expression will be recognised as spam
1217 * See http://en.wikipedia.org/wiki/Regular_expression */
1218 $wgSpamRegex = false;
1219 /** Similarly if this function returns true */
1220 $wgFilterCallback = false;
1221
1222 /** Go button goes straight to the edit screen if the article doesn't exist. */
1223 $wgGoToEdit = false;
1224
1225 /** Allow limited user-specified HTML in wiki pages?
1226 * It will be run through a whitelist for security. Set this to false if you
1227 * want wiki pages to consist only of wiki markup. Note that replacements do not
1228 * yet exist for all HTML constructs.*/
1229 $wgUserHtml = true;
1230
1231 /** Allow raw, unchecked HTML in <html>...</html> sections.
1232 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1233 * TO RESTRICT EDITING to only those that you trust
1234 */
1235 $wgRawHtml = false;
1236
1237 /**
1238 * $wgUseTidy: use tidy to make sure HTML output is sane.
1239 * This should only be enabled if $wgUserHtml is true.
1240 * tidy is a free tool that fixes broken HTML.
1241 * See http://www.w3.org/People/Raggett/tidy/
1242 * $wgTidyBin should be set to the path of the binary and
1243 * $wgTidyConf to the path of the configuration file.
1244 * $wgTidyOpts can include any number of parameters.
1245 *
1246 * $wgTidyInternal controls the use of the PECL extension to use an in-
1247 * process tidy library instead of spawning a separate program.
1248 * Normally you shouldn't need to override the setting except for
1249 * debugging. To install, use 'pear install tidy' and add a line
1250 * 'extension=tidy.so' to php.ini.
1251 */
1252 $wgUseTidy = false;
1253 $wgTidyBin = 'tidy';
1254 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1255 $wgTidyOpts = '';
1256 $wgTidyInternal = function_exists( 'tidy_load_config' );
1257
1258 /** See list of skins and their symbolic names in languages/Language.php */
1259 $wgDefaultSkin = 'monobook';
1260
1261 /**
1262 * Settings added to this array will override the language globals for the user
1263 * preferences used by anonymous visitors and newly created accounts. (See names
1264 * and sample values in languages/Language.php)
1265 * For instance, to disable section editing links:
1266 * $wgDefaultUserOptions ['editsection'] = 0;
1267 *
1268 */
1269 $wgDefaultUserOptions = array();
1270
1271 /** Whether or not to allow and use real name fields. Defaults to true. */
1272 $wgAllowRealName = true;
1273
1274 /** Use XML parser? */
1275 $wgUseXMLparser = false ;
1276
1277 /** Extensions */
1278 $wgSkinExtensionFunctions = array();
1279 $wgExtensionFunctions = array();
1280 /**
1281 * An array of extension types and inside that their names, versions, authors
1282 * and urls, note that the version and url key can be omitted.
1283 *
1284 * <code>
1285 * $wgExtensionCredits[$type][] = array(
1286 * 'name' => 'Example extension',
1287 * 'version' => 1.9,
1288 * 'author' => 'Foo Barstein',
1289 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1290 * );
1291 * </code>
1292 *
1293 * Where $type is 'specialpage', 'parserhook', or 'other'.
1294 */
1295 $wgExtensionCredits = array();
1296
1297 /**
1298 * Allow user Javascript page?
1299 * This enables a lot of neat customizations, but may
1300 * increase security risk to users and server load.
1301 */
1302 $wgAllowUserJs = false;
1303
1304 /**
1305 * Allow user Cascading Style Sheets (CSS)?
1306 * This enables a lot of neat customizations, but may
1307 * increase security risk to users and server load.
1308 */
1309 $wgAllowUserCss = false;
1310
1311 /** Use the site's Javascript page? */
1312 $wgUseSiteJs = true;
1313
1314 /** Use the site's Cascading Style Sheets (CSS)? */
1315 $wgUseSiteCss = true;
1316
1317 /** Filter for Special:Randompage. Part of a WHERE clause */
1318 $wgExtraRandompageSQL = false;
1319
1320 /** Allow the "info" action, very inefficient at the moment */
1321 $wgAllowPageInfo = false;
1322
1323 /** Maximum indent level of toc. */
1324 $wgMaxTocLevel = 999;
1325
1326 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1327 $wgUseExternalDiffEngine = false;
1328
1329 /** Use RC Patrolling to check for vandalism */
1330 $wgUseRCPatrol = true;
1331
1332 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1333 * eg Recentchanges, Newpages. */
1334 $wgFeedLimit = 50;
1335
1336 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1337 * A cached version will continue to be served out even if changes
1338 * are made, until this many seconds runs out since the last render. */
1339 $wgFeedCacheTimeout = 60;
1340
1341 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1342 * pages larger than this size. */
1343 $wgFeedDiffCutoff = 32768;
1344
1345
1346 /**
1347 * Additional namespaces. If the namespaces defined in Language.php and
1348 * Namespace.php are insufficient, you can create new ones here, for example,
1349 * to import Help files in other languages.
1350 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1351 * no longer be accessible. If you rename it, then you can access them through
1352 * the new namespace name.
1353 *
1354 * Custom namespaces should start at 100 to avoid conflicting with standard
1355 * namespaces, and should always follow the even/odd main/talk pattern.
1356 */
1357 #$wgExtraNamespaces =
1358 # array(100 => "Hilfe",
1359 # 101 => "Hilfe_Diskussion",
1360 # 102 => "Aide",
1361 # 103 => "Discussion_Aide"
1362 # );
1363 $wgExtraNamespaces = NULL;
1364
1365 /**
1366 * Limit images on image description pages to a user-selectable limit. In order
1367 * to reduce disk usage, limits can only be selected from a list. This is the
1368 * list of settings the user can choose from:
1369 */
1370 $wgImageLimits = array (
1371 array(320,240),
1372 array(640,480),
1373 array(800,600),
1374 array(1024,768),
1375 array(1280,1024),
1376 array(10000,10000) );
1377
1378 /**
1379 * Adjust thumbnails on image pages according to a user setting. In order to
1380 * reduce disk usage, the values can only be selected from a list. This is the
1381 * list of settings the user can choose from:
1382 */
1383 $wgThumbLimits = array(
1384 120,
1385 150,
1386 180,
1387 200,
1388 250,
1389 300
1390 );
1391
1392 /**
1393 * On category pages, show thumbnail gallery for images belonging to that
1394 * category instead of listing them as articles.
1395 */
1396 $wgCategoryMagicGallery = true;
1397
1398 /**
1399 * Browser Blacklist for unicode non compliant browsers
1400 * Contains a list of regexps : "/regexp/" matching problematic browsers
1401 */
1402 $wgBrowserBlackList = array(
1403 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1404 /**
1405 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1406 *
1407 * Known useragents:
1408 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1409 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1410 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1411 * - [...]
1412 *
1413 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1414 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1415 */
1416 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1417 );
1418
1419 /**
1420 * Fake out the timezone that the server thinks it's in. This will be used for
1421 * date display and not for what's stored in the DB. Leave to null to retain
1422 * your server's OS-based timezone value. This is the same as the timezone.
1423 *
1424 * This variable is currently used ONLY for signature formatting, not for
1425 * anything else.
1426 */
1427 # $wgLocaltimezone = 'GMT';
1428 # $wgLocaltimezone = 'PST8PDT';
1429 # $wgLocaltimezone = 'Europe/Sweden';
1430 # $wgLocaltimezone = 'CET';
1431 $wgLocaltimezone = null;
1432
1433 /**
1434 * Set an offset from UTC in hours to use for the default timezone setting
1435 * for anonymous users and new user accounts.
1436 *
1437 * This setting is used for most date/time displays in the software, and is
1438 * overrideable in user preferences. It is *not* used for signature timestamps.
1439 *
1440 * You can set it to match the configured server timezone like this:
1441 * $wgLocalTZoffset = date("Z") / 3600;
1442 *
1443 * If your server is not configured for the timezone you want, you can set
1444 * this in conjunction with the signature timezone and override the TZ
1445 * environment variable like so:
1446 * $wgLocaltimezone="Europe/Berlin";
1447 * putenv("TZ=$wgLocaltimezone");
1448 * $wgLocalTZoffset = date("Z") / 3600;
1449 *
1450 * Leave at NULL to show times in universal time (UTC/GMT).
1451 */
1452 $wgLocalTZoffset = null;
1453
1454
1455 /**
1456 * When translating messages with wfMsg(), it is not always clear what should be
1457 * considered UI messages and what shoud be content messages.
1458 *
1459 * For example, for regular wikipedia site like en, there should be only one
1460 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1461 * it as content of the site and call wfMsgForContent(), while for rendering the
1462 * text of the link, we call wfMsg(). The code in default behaves this way.
1463 * However, sites like common do offer different versions of 'mainpage' and the
1464 * like for different languages. This array provides a way to override the
1465 * default behavior. For example, to allow language specific mainpage and
1466 * community portal, set
1467 *
1468 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1469 */
1470 $wgForceUIMsgAsContentMsg = array();
1471
1472
1473 /**
1474 * Authentication plugin.
1475 */
1476 $wgAuth = null;
1477
1478 /**
1479 * Global list of hooks.
1480 * Add a hook by doing:
1481 * $wgHooks['event_name'][] = $function;
1482 * or:
1483 * $wgHooks['event_name'][] = array($function, $data);
1484 * or:
1485 * $wgHooks['event_name'][] = array($object, 'method');
1486 */
1487 $wgHooks = array();
1488
1489 /**
1490 * Experimental preview feature to fetch rendered text
1491 * over an XMLHttpRequest from JavaScript instead of
1492 * forcing a submit and reload of the whole page.
1493 * Leave disabled unless you're testing it.
1494 */
1495 $wgLivePreview = false;
1496
1497 /**
1498 * Disable the internal MySQL-based search, to allow it to be
1499 * implemented by an extension instead.
1500 */
1501 $wgDisableInternalSearch = false;
1502
1503 /**
1504 * Set this to a URL to forward search requests to some external location.
1505 * If the URL includes '$1', this will be replaced with the URL-encoded
1506 * search term.
1507 *
1508 * For example, to forward to Google you'd have something like:
1509 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1510 * '&domains=http://example.com' .
1511 * '&sitesearch=http://example.com' .
1512 * '&ie=utf-8&oe=utf-8';
1513 */
1514 $wgSearchForwardUrl = null;
1515
1516 /**
1517 * If true, external URL links in wiki text will be given the
1518 * rel="nofollow" attribute as a hint to search engines that
1519 * they should not be followed for ranking purposes as they
1520 * are user-supplied and thus subject to spamming.
1521 */
1522 $wgNoFollowLinks = true;
1523
1524 /**
1525 * Specifies the minimal length of a user password. If set to
1526 * 0, empty passwords are allowed.
1527 */
1528 $wgMinimalPasswordLength = 0;
1529
1530 /**
1531 * Activate external editor interface for files and pages
1532 * See http://meta.wikimedia.org/wiki/Help:External_editors
1533 */
1534 $wgUseExternalEditor = true;
1535
1536 /** Whether or not to sort special pages in Special:Specialpages */
1537
1538 $wgSortSpecialPages = true;
1539
1540 /**
1541 * Specify the name of a skin that should not be presented in the
1542 * list of available skins.
1543 * Use for blacklisting a skin which you do not want to remove
1544 * from the .../skins/ directory
1545 */
1546 $wgSkipSkin = '';
1547 $wgSkipSkins = array(); # More of the same
1548
1549 /**
1550 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1551 */
1552 $wgDisabledActions = array();
1553
1554 /**
1555 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1556 */
1557 $wgDisableHardRedirects = false;
1558
1559 /**
1560 * Use http.dnsbl.sorbs.net to check for open proxies
1561 */
1562 $wgEnableSorbs = false;
1563
1564 /**
1565 * Use opm.blitzed.org to check for open proxies.
1566 * Not yet actually used.
1567 */
1568 $wgEnableOpm = false;
1569
1570 /**
1571 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1572 * methods might say
1573 */
1574 $wgProxyWhitelist = array();
1575
1576 /**
1577 * Simple rate limiter options to brake edit floods.
1578 * Maximum number actions allowed in the given number of seconds;
1579 * after that the violating client receives HTTP 500 error pages
1580 * until the period elapses.
1581 *
1582 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
1583 *
1584 * This option set is experimental and likely to change.
1585 * Requires memcached.
1586 */
1587 $wgRateLimits = array(
1588 'edit' => array(
1589 'anon' => null, // for any and all anonymous edits (aggregate)
1590 'user' => null, // for each logged-in user
1591 'newbie' => null, // for each recent account; overrides 'user'
1592 'ip' => null, // for each anon and recent account
1593 'subnet' => null, // ... with final octet removed
1594 ),
1595 'move' => array(
1596 'user' => null,
1597 'newbie' => null,
1598 'ip' => null,
1599 'subnet' => null,
1600 ),
1601 );
1602
1603 /**
1604 * Set to a filename to log rate limiter hits.
1605 */
1606 $wgRateLimitLog = null;
1607
1608 /**
1609 * On Special:Unusedimages, consider images "used", if they are put
1610 * into a category. Default (false) is not to count those as used.
1611 */
1612 $wgCountCategorizedImagesAsUsed = false;
1613
1614 /**
1615 * External stores allow including content
1616 * from non database sources following URL links
1617 *
1618 * Short names of ExternalStore classes may be specified in an array here:
1619 * $wgExternalStores = array("http","file","custom")...
1620 *
1621 * CAUTION: Access to database might lead to code execution
1622 */
1623 $wgExternalStores = false;
1624
1625 /**
1626 * An array of external mysql servers, e.g.
1627 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1628 */
1629 $wgExternalServers = array();
1630
1631 /**
1632 * list of trusted media-types and mime types.
1633 * Use the MEDIATYPE_xxx constants to represent media types.
1634 * This list is used by Image::isSafeFile
1635 *
1636 * Types not listed here will have a warning about unsafe content
1637 * displayed on the images description page. It would also be possible
1638 * to use this for further restrictions, like disabling direct
1639 * [[media:...]] links for non-trusted formats.
1640 */
1641 $wgTrustedMediaFormats= array(
1642 MEDIATYPE_BITMAP, //all bitmap formats
1643 MEDIATYPE_AUDIO, //all audio formats
1644 MEDIATYPE_VIDEO, //all plain video formats
1645 "image/svg", //svg (only needed if inline rendering of svg is not supported)
1646 "application/pdf", //PDF files
1647 #"application/x-shockwafe-flash", //flash/shockwave movie
1648 );
1649
1650 /**
1651 * Allow special page inclusions such as {{Special:Allpages}}
1652 */
1653 $wgAllowSpecialInclusion = true;
1654
1655 /**
1656 * Timeout for HTTP requests done via CURL
1657 */
1658 $wgHTTPTimeout = 3;
1659
1660 /**
1661 * Proxy to use for CURL requests.
1662 */
1663 $wgHTTPProxy = false;
1664
1665 /**
1666 * Enable interwiki transcluding. Only when iw_trans=1.
1667 */
1668 $wgEnableScaryTranscluding = false;
1669
1670 /**
1671 * Support blog-style "trackbacks" for articles. See
1672 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
1673 */
1674 $wgUseTrackbacks = false;
1675
1676 /**
1677 * Enable filtering of robots in Special:Watchlist
1678 */
1679
1680 $wgFilterRobotsWL = false;
1681
1682 ?>