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