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