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