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