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