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