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