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