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