* Add createpage and createtalk permission keys, allowing a quick
[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 $wgGroupPermissions['*' ]['createpage'] = true;
775 $wgGroupPermissions['*' ]['createtalk'] = true;
776
777 $wgGroupPermissions['user' ]['move'] = true;
778 $wgGroupPermissions['user' ]['read'] = true;
779 $wgGroupPermissions['user' ]['edit'] = true;
780 $wgGroupPermissions['user' ]['createpage'] = true;
781 $wgGroupPermissions['user' ]['createtalk'] = true;
782 $wgGroupPermissions['user' ]['upload'] = true;
783 $wgGroupPermissions['user' ]['reupload'] = true;
784 $wgGroupPermissions['user' ]['reupload-shared'] = true;
785
786 $wgGroupPermissions['bot' ]['bot'] = true;
787
788 $wgGroupPermissions['sysop']['block'] = true;
789 $wgGroupPermissions['sysop']['createaccount'] = true;
790 $wgGroupPermissions['sysop']['delete'] = true;
791 $wgGroupPermissions['sysop']['editinterface'] = true;
792 $wgGroupPermissions['sysop']['import'] = true;
793 $wgGroupPermissions['sysop']['importupload'] = true;
794 $wgGroupPermissions['sysop']['move'] = true;
795 $wgGroupPermissions['sysop']['patrol'] = true;
796 $wgGroupPermissions['sysop']['protect'] = true;
797 $wgGroupPermissions['sysop']['rollback'] = true;
798 $wgGroupPermissions['sysop']['upload'] = true;
799 $wgGroupPermissions['sysop']['reupload'] = true;
800 $wgGroupPermissions['sysop']['reupload-shared'] = true;
801
802 $wgGroupPermissions['bureaucrat']['userrights'] = true;
803
804 /**
805 * The developer group is deprecated, but can be activated if need be
806 * to use the 'lockdb' and 'unlockdb' special pages. Those require
807 * that a lock file be defined and creatable/removable by the web
808 * server.
809 */
810 # $wgGroupPermissions['developer']['siteadmin'] = true;
811
812
813
814 # Proxy scanner settings
815 #
816
817 /**
818 * If you enable this, every editor's IP address will be scanned for open HTTP
819 * proxies.
820 *
821 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
822 * ISP and ask for your server to be shut down.
823 *
824 * You have been warned.
825 */
826 $wgBlockOpenProxies = false;
827 /** Port we want to scan for a proxy */
828 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
829 /** Script used to scan */
830 $wgProxyScriptPath = "$IP/proxy_check.php";
831 /** */
832 $wgProxyMemcExpiry = 86400;
833 /** This should always be customised in LocalSettings.php */
834 $wgSecretKey = false;
835 /** big list of banned IP addresses, in the keys not the values */
836 $wgProxyList = array();
837 /** deprecated */
838 $wgProxyKey = false;
839
840 /** Number of accounts each IP address may create, 0 to disable.
841 * Requires memcached */
842 $wgAccountCreationThrottle = 0;
843
844 # Client-side caching:
845
846 /** Allow client-side caching of pages */
847 $wgCachePages = true;
848
849 /**
850 * Set this to current time to invalidate all prior cached pages. Affects both
851 * client- and server-side caching.
852 */
853 $wgCacheEpoch = '20030516000000';
854
855
856 # Server-side caching:
857
858 /**
859 * This will cache static pages for non-logged-in users to reduce
860 * database traffic on public sites.
861 * Must set $wgShowIPinHeader = false
862 */
863 $wgUseFileCache = false;
864 /** Directory where the cached page will be saved */
865 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
866
867 /**
868 * When using the file cache, we can store the cached HTML gzipped to save disk
869 * space. Pages will then also be served compressed to clients that support it.
870 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
871 * the default LocalSettings.php! If you enable this, remove that setting first.
872 *
873 * Requires zlib support enabled in PHP.
874 */
875 $wgUseGzip = false;
876
877 # Email notification settings
878 #
879
880 /** For email notification on page changes */
881 $wgPasswordSender = $wgEmergencyContact;
882
883 # true: from page editor if s/he opted-in
884 # false: Enotif mails appear to come from $wgEmergencyContact
885 $wgEnotifFromEditor = false;
886
887 // TODO move UPO to preferences probably ?
888 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
889 # If set to false, the corresponding input form on the user preference page is suppressed
890 # It call this to be a "user-preferences-option (UPO)"
891 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
892 $wgEnotifWatchlist = false; # UPO
893 $wgEnotifUserTalk = false; # UPO
894 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
895 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
896 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
897
898
899 /** Show watching users in recent changes, watchlist and page history views */
900 $wgRCShowWatchingUsers = false; # UPO
901 /** Show watching users in Page views */
902 $wgPageShowWatchingUsers = false;
903 /**
904 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
905 * view for watched pages with new changes */
906 $wgShowUpdatedMarker = true;
907
908 $wgCookieExpiration = 2592000;
909
910 /** Clock skew or the one-second resolution of time() can occasionally cause cache
911 * problems when the user requests two pages within a short period of time. This
912 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
913 * a grace period.
914 */
915 $wgClockSkewFudge = 5;
916
917 # Squid-related settings
918 #
919
920 /** Enable/disable Squid */
921 $wgUseSquid = false;
922
923 /** If you run Squid3 with ESI support, enable this (default:false): */
924 $wgUseESI = false;
925
926 /** Internal server name as known to Squid, if different */
927 # $wgInternalServer = 'http://yourinternal.tld:8000';
928 $wgInternalServer = $wgServer;
929
930 /**
931 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
932 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
933 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
934 * days
935 */
936 $wgSquidMaxage = 18000;
937
938 /**
939 * A list of proxy servers (ips if possible) to purge on changes don't specify
940 * ports here (80 is default)
941 */
942 # $wgSquidServers = array('127.0.0.1');
943 $wgSquidServers = array();
944 $wgSquidServersNoPurge = array();
945
946 /** Maximum number of titles to purge in any one client operation */
947 $wgMaxSquidPurgeTitles = 400;
948
949 /** HTCP multicast purging */
950 $wgHTCPPort = 4827;
951 $wgHTCPMulticastTTL = 1;
952 # $wgHTCPMulticastAddress = "224.0.0.85";
953
954 # Cookie settings:
955 #
956 /**
957 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
958 * or ".any.subdomain.net"
959 */
960 $wgCookieDomain = '';
961 $wgCookiePath = '/';
962 $wgDisableCookieCheck = false;
963
964 /** Whether to allow inline image pointing to other websites */
965 $wgAllowExternalImages = true;
966
967 /** If the above is false, you can specify an exception here. Image URLs
968 * that start with this string are then rendered, while all others are not.
969 * You can use this to set up a trusted, simple repository of images.
970 *
971 * Example:
972 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
973 */
974 $wgAllowExternalImagesFrom = '';
975
976 /** Disable database-intensive features */
977 $wgMiserMode = false;
978 /** Disable all query pages if miser mode is on, not just some */
979 $wgDisableQueryPages = false;
980 /** Generate a watchlist once every hour or so */
981 $wgUseWatchlistCache = false;
982 /** The hour or so mentioned above */
983 $wgWLCacheTimeout = 3600;
984
985 /**
986 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
987 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
988 * (ImageMagick) installed and available in the PATH.
989 * Please see math/README for more information.
990 */
991 $wgUseTeX = false;
992 /** Location of the texvc binary */
993 $wgTexvc = './math/texvc';
994
995 #
996 # Profiling / debugging
997 #
998
999 /** Enable for more detailed by-function times in debug log */
1000 $wgProfiling = false;
1001 /** Only record profiling info for pages that took longer than this */
1002 $wgProfileLimit = 0.0;
1003 /** Don't put non-profiling info into log file */
1004 $wgProfileOnly = false;
1005 /** Log sums from profiling into "profiling" table in db. */
1006 $wgProfileToDatabase = false;
1007 /** Only profile every n requests when profiling is turned on */
1008 $wgProfileSampleRate = 1;
1009 /** If true, print a raw call tree instead of per-function report */
1010 $wgProfileCallTree = false;
1011
1012 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1013 $wgDebugProfiling = false;
1014 /** Output debug message on every wfProfileIn/wfProfileOut */
1015 $wgDebugFunctionEntry = 0;
1016 /** Lots of debugging output from SquidUpdate.php */
1017 $wgDebugSquid = false;
1018
1019 $wgDisableCounters = false;
1020 $wgDisableTextSearch = false;
1021 $wgDisableSearchContext = false;
1022 /**
1023 * If you've disabled search semi-permanently, this also disables updates to the
1024 * table. If you ever re-enable, be sure to rebuild the search table.
1025 */
1026 $wgDisableSearchUpdate = false;
1027 /** Uploads have to be specially set up to be secure */
1028 $wgEnableUploads = false;
1029 /**
1030 * Show EXIF data, on by default if available.
1031 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1032 */
1033 $wgShowEXIF = function_exists( 'exif_read_data' );
1034
1035 /**
1036 * Set to true to enable the upload _link_ while local uploads are disabled.
1037 * Assumes that the special page link will be bounced to another server where
1038 * uploads do work.
1039 */
1040 $wgRemoteUploads = false;
1041 $wgDisableAnonTalk = false;
1042 /**
1043 * Do DELETE/INSERT for link updates instead of incremental
1044 */
1045 $wgUseDumbLinkUpdate = false;
1046
1047 /**
1048 * Anti-lock flags - bitfield
1049 * ALF_PRELOAD_LINKS
1050 * Preload links during link update for save
1051 * ALF_PRELOAD_EXISTENCE
1052 * Preload cur_id during replaceLinkHolders
1053 * ALF_NO_LINK_LOCK
1054 * Don't use locking reads when updating the link table. This is
1055 * necessary for wikis with a high edit rate for performance
1056 * reasons, but may cause link table inconsistency
1057 * ALF_NO_BLOCK_LOCK
1058 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1059 * wikis.
1060 */
1061 $wgAntiLockFlags = 0;
1062
1063 /**
1064 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1065 * fall back to the old behaviour (no merging).
1066 */
1067 $wgDiff3 = '/usr/bin/diff3';
1068
1069 /**
1070 * We can also compress text in the old revisions table. If this is set on, old
1071 * revisions will be compressed on page save if zlib support is available. Any
1072 * compressed revisions will be decompressed on load regardless of this setting
1073 * *but will not be readable at all* if zlib support is not available.
1074 */
1075 $wgCompressRevisions = false;
1076
1077 /**
1078 * This is the list of preferred extensions for uploading files. Uploading files
1079 * with extensions not in this list will trigger a warning.
1080 */
1081 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1082
1083 /** Files with these extensions will never be allowed as uploads. */
1084 $wgFileBlacklist = array(
1085 # HTML may contain cookie-stealing JavaScript and web bugs
1086 'html', 'htm', 'js', 'jsb',
1087 # PHP scripts may execute arbitrary code on the server
1088 'php', 'phtml', 'php3', 'php4', 'phps',
1089 # Other types that may be interpreted by some servers
1090 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1091 # May contain harmful executables for Windows victims
1092 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1093
1094 /** Files with these mime types will never be allowed as uploads
1095 * if $wgVerifyMimeType is enabled.
1096 */
1097 $wgMimeTypeBlacklist= array(
1098 # HTML may contain cookie-stealing JavaScript and web bugs
1099 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1100 # PHP scripts may execute arbitrary code on the server
1101 'application/x-php', 'text/x-php',
1102 # Other types that may be interpreted by some servers
1103 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh'
1104 );
1105
1106 /** This is a flag to determine whether or not to check file extensions on upload. */
1107 $wgCheckFileExtensions = true;
1108
1109 /**
1110 * If this is turned off, users may override the warning for files not covered
1111 * by $wgFileExtensions.
1112 */
1113 $wgStrictFileExtensions = true;
1114
1115 /** Warn if uploaded files are larger than this */
1116 $wgUploadSizeWarning = 150 * 1024;
1117
1118 /** For compatibility with old installations set to false */
1119 $wgPasswordSalt = true;
1120
1121 /** Which namespaces should support subpages?
1122 * See Language.php for a list of namespaces.
1123 */
1124 $wgNamespacesWithSubpages = array(
1125 NS_TALK => true,
1126 NS_USER => true,
1127 NS_USER_TALK => true,
1128 NS_PROJECT_TALK => true,
1129 NS_IMAGE_TALK => true,
1130 NS_MEDIAWIKI_TALK => true,
1131 NS_TEMPLATE_TALK => true,
1132 NS_HELP_TALK => true,
1133 NS_CATEGORY_TALK => true
1134 );
1135
1136 $wgNamespacesToBeSearchedDefault = array(
1137 NS_MAIN => true,
1138 );
1139
1140 /** If set, a bold ugly notice will show up at the top of every page. */
1141 $wgSiteNotice = '';
1142
1143
1144 #
1145 # Images settings
1146 #
1147
1148 /** dynamic server side image resizing ("Thumbnails") */
1149 $wgUseImageResize = false;
1150
1151 /**
1152 * Resizing can be done using PHP's internal image libraries or using
1153 * ImageMagick. The later supports more file formats than PHP, which only
1154 * supports PNG, GIF, JPG, XBM and WBMP.
1155 *
1156 * Use Image Magick instead of PHP builtin functions.
1157 */
1158 $wgUseImageMagick = false;
1159 /** The convert command shipped with ImageMagick */
1160 $wgImageMagickConvertCommand = '/usr/bin/convert';
1161
1162 # Scalable Vector Graphics (SVG) may be uploaded as images.
1163 # Since SVG support is not yet standard in browsers, it is
1164 # necessary to rasterize SVGs to PNG as a fallback format.
1165 #
1166 # An external program is required to perform this conversion:
1167 $wgSVGConverters = array(
1168 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
1169 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1170 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1171 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1172 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1173 );
1174 /** Pick one of the above */
1175 $wgSVGConverter = 'ImageMagick';
1176 /** If not in the executable PATH, specify */
1177 $wgSVGConverterPath = '';
1178 /** Don't scale a SVG larger than this unless its native size is larger */
1179 $wgSVGMaxSize = 1024;
1180 /**
1181 * Don't thumbnail an image if it will use too much working memory
1182 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1183 * 12.5 million pixels or 3500x3500
1184 */
1185 $wgMaxImageArea = 1.25e7;
1186 /**
1187 * If rendered thumbnail files are older than this timestamp, they
1188 * will be rerendered on demand as if the file didn't already exist.
1189 * Update if there is some need to force thumbs and SVG rasterizations
1190 * to rerender, such as fixes to rendering bugs.
1191 */
1192 $wgThumbnailEpoch = '20030516000000';
1193
1194
1195
1196 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1197 if( !isset( $wgCommandLineMode ) ) {
1198 $wgCommandLineMode = false;
1199 }
1200
1201
1202 #
1203 # Recent changes settings
1204 #
1205
1206 /** Log IP addresses in the recentchanges table */
1207 $wgPutIPinRC = false;
1208
1209 /**
1210 * Recentchanges items are periodically purged; entries older than this many
1211 * seconds will go.
1212 * For one week : 7 * 24 * 3600
1213 */
1214 $wgRCMaxAge = 7 * 24 * 3600;
1215
1216
1217 # Send RC updates via UDP
1218 $wgRC2UDPAddress = false;
1219 $wgRC2UDPPort = false;
1220 $wgRC2UDPPrefix = '';
1221
1222 #
1223 # Copyright and credits settings
1224 #
1225
1226 /** RDF metadata toggles */
1227 $wgEnableDublinCoreRdf = false;
1228 $wgEnableCreativeCommonsRdf = false;
1229
1230 /** Override for copyright metadata.
1231 * TODO: these options need documentation
1232 */
1233 $wgRightsPage = NULL;
1234 $wgRightsUrl = NULL;
1235 $wgRightsText = NULL;
1236 $wgRightsIcon = NULL;
1237
1238 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1239 $wgCopyrightIcon = NULL;
1240
1241 /** Set this to true if you want detailed copyright information forms on Upload. */
1242 $wgUseCopyrightUpload = false;
1243
1244 /** Set this to false if you want to disable checking that detailed copyright
1245 * information values are not empty. */
1246 $wgCheckCopyrightUpload = true;
1247
1248 /**
1249 * Set this to the number of authors that you want to be credited below an
1250 * article text. Set it to zero to hide the attribution block, and a negative
1251 * number (like -1) to show all authors. Note that this will require 2-3 extra
1252 * database hits, which can have a not insignificant impact on performance for
1253 * large wikis.
1254 */
1255 $wgMaxCredits = 0;
1256
1257 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1258 * Otherwise, link to a separate credits page. */
1259 $wgShowCreditsIfMax = true;
1260
1261
1262
1263 /**
1264 * Set this to false to avoid forcing the first letter of links to capitals.
1265 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1266 * appearing with a capital at the beginning of a sentence will *not* go to the
1267 * same place as links in the middle of a sentence using a lowercase initial.
1268 */
1269 $wgCapitalLinks = true;
1270
1271 /**
1272 * List of interwiki prefixes for wikis we'll accept as sources for
1273 * Special:Import (for sysops). Since complete page history can be imported,
1274 * these should be 'trusted'.
1275 *
1276 * If a user has the 'import' permission but not the 'importupload' permission,
1277 * they will only be able to run imports through this transwiki interface.
1278 */
1279 $wgImportSources = array();
1280
1281
1282
1283 /** Text matching this regular expression will be recognised as spam
1284 * See http://en.wikipedia.org/wiki/Regular_expression */
1285 $wgSpamRegex = false;
1286 /** Similarly if this function returns true */
1287 $wgFilterCallback = false;
1288
1289 /** Go button goes straight to the edit screen if the article doesn't exist. */
1290 $wgGoToEdit = false;
1291
1292 /** Allow limited user-specified HTML in wiki pages?
1293 * It will be run through a whitelist for security. Set this to false if you
1294 * want wiki pages to consist only of wiki markup. Note that replacements do not
1295 * yet exist for all HTML constructs.*/
1296 $wgUserHtml = true;
1297
1298 /** Allow raw, unchecked HTML in <html>...</html> sections.
1299 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1300 * TO RESTRICT EDITING to only those that you trust
1301 */
1302 $wgRawHtml = false;
1303
1304 /**
1305 * $wgUseTidy: use tidy to make sure HTML output is sane.
1306 * This should only be enabled if $wgUserHtml is true.
1307 * tidy is a free tool that fixes broken HTML.
1308 * See http://www.w3.org/People/Raggett/tidy/
1309 * $wgTidyBin should be set to the path of the binary and
1310 * $wgTidyConf to the path of the configuration file.
1311 * $wgTidyOpts can include any number of parameters.
1312 *
1313 * $wgTidyInternal controls the use of the PECL extension to use an in-
1314 * process tidy library instead of spawning a separate program.
1315 * Normally you shouldn't need to override the setting except for
1316 * debugging. To install, use 'pear install tidy' and add a line
1317 * 'extension=tidy.so' to php.ini.
1318 */
1319 $wgUseTidy = false;
1320 $wgTidyBin = 'tidy';
1321 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
1322 $wgTidyOpts = '';
1323 $wgTidyInternal = function_exists( 'tidy_load_config' );
1324
1325 /** See list of skins and their symbolic names in languages/Language.php */
1326 $wgDefaultSkin = 'monobook';
1327
1328 /**
1329 * Settings added to this array will override the language globals for the user
1330 * preferences used by anonymous visitors and newly created accounts. (See names
1331 * and sample values in languages/Language.php)
1332 * For instance, to disable section editing links:
1333 * $wgDefaultUserOptions ['editsection'] = 0;
1334 *
1335 */
1336 $wgDefaultUserOptions = array();
1337
1338 /** Whether or not to allow and use real name fields. Defaults to true. */
1339 $wgAllowRealName = true;
1340
1341 /** Use XML parser? */
1342 $wgUseXMLparser = false ;
1343
1344 /** Extensions */
1345 $wgSkinExtensionFunctions = array();
1346 $wgExtensionFunctions = array();
1347 /**
1348 * An array of extension types and inside that their names, versions, authors
1349 * and urls, note that the version and url key can be omitted.
1350 *
1351 * <code>
1352 * $wgExtensionCredits[$type][] = array(
1353 * 'name' => 'Example extension',
1354 * 'version' => 1.9,
1355 * 'author' => 'Foo Barstein',
1356 * 'url' => 'http://wwww.example.com/Example%20Extension/',
1357 * );
1358 * </code>
1359 *
1360 * Where $type is 'specialpage', 'parserhook', or 'other'.
1361 */
1362 $wgExtensionCredits = array();
1363
1364 /**
1365 * Allow user Javascript page?
1366 * This enables a lot of neat customizations, but may
1367 * increase security risk to users and server load.
1368 */
1369 $wgAllowUserJs = false;
1370
1371 /**
1372 * Allow user Cascading Style Sheets (CSS)?
1373 * This enables a lot of neat customizations, but may
1374 * increase security risk to users and server load.
1375 */
1376 $wgAllowUserCss = false;
1377
1378 /** Use the site's Javascript page? */
1379 $wgUseSiteJs = true;
1380
1381 /** Use the site's Cascading Style Sheets (CSS)? */
1382 $wgUseSiteCss = true;
1383
1384 /** Filter for Special:Randompage. Part of a WHERE clause */
1385 $wgExtraRandompageSQL = false;
1386
1387 /**
1388 * Enable the Special:Unwatchedpages special page, turned off by default since
1389 * most would consider this privelaged information as it could be used as a
1390 * list of pages to vandalize.
1391 */
1392 $wgEnableUnwatchedpages = false;
1393
1394 /** Allow the "info" action, very inefficient at the moment */
1395 $wgAllowPageInfo = false;
1396
1397 /** Maximum indent level of toc. */
1398 $wgMaxTocLevel = 999;
1399
1400 /** Use external C++ diff engine (module wikidiff from the extensions package) */
1401 $wgUseExternalDiffEngine = false;
1402
1403 /** Use RC Patrolling to check for vandalism */
1404 $wgUseRCPatrol = true;
1405
1406 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
1407 * eg Recentchanges, Newpages. */
1408 $wgFeedLimit = 50;
1409
1410 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
1411 * A cached version will continue to be served out even if changes
1412 * are made, until this many seconds runs out since the last render.
1413 *
1414 * If set to 0, feed caching is disabled. Use this for debugging only;
1415 * feed generation can be pretty slow with diffs.
1416 */
1417 $wgFeedCacheTimeout = 60;
1418
1419 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
1420 * pages larger than this size. */
1421 $wgFeedDiffCutoff = 32768;
1422
1423
1424 /**
1425 * Additional namespaces. If the namespaces defined in Language.php and
1426 * Namespace.php are insufficient, you can create new ones here, for example,
1427 * to import Help files in other languages.
1428 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
1429 * no longer be accessible. If you rename it, then you can access them through
1430 * the new namespace name.
1431 *
1432 * Custom namespaces should start at 100 to avoid conflicting with standard
1433 * namespaces, and should always follow the even/odd main/talk pattern.
1434 */
1435 #$wgExtraNamespaces =
1436 # array(100 => "Hilfe",
1437 # 101 => "Hilfe_Diskussion",
1438 # 102 => "Aide",
1439 # 103 => "Discussion_Aide"
1440 # );
1441 $wgExtraNamespaces = NULL;
1442
1443 /**
1444 * Limit images on image description pages to a user-selectable limit. In order
1445 * to reduce disk usage, limits can only be selected from a list. This is the
1446 * list of settings the user can choose from:
1447 */
1448 $wgImageLimits = array (
1449 array(320,240),
1450 array(640,480),
1451 array(800,600),
1452 array(1024,768),
1453 array(1280,1024),
1454 array(10000,10000) );
1455
1456 /**
1457 * Adjust thumbnails on image pages according to a user setting. In order to
1458 * reduce disk usage, the values can only be selected from a list. This is the
1459 * list of settings the user can choose from:
1460 */
1461 $wgThumbLimits = array(
1462 120,
1463 150,
1464 180,
1465 200,
1466 250,
1467 300
1468 );
1469
1470 /**
1471 * On category pages, show thumbnail gallery for images belonging to that
1472 * category instead of listing them as articles.
1473 */
1474 $wgCategoryMagicGallery = true;
1475
1476 /**
1477 * Browser Blacklist for unicode non compliant browsers
1478 * Contains a list of regexps : "/regexp/" matching problematic browsers
1479 */
1480 $wgBrowserBlackList = array(
1481 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/",
1482 /**
1483 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
1484 *
1485 * Known useragents:
1486 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
1487 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
1488 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
1489 * - [...]
1490 *
1491 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
1492 * @link http://en.wikipedia.org/wiki/Template%3AOS9
1493 */
1494 "/Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/"
1495 );
1496
1497 /**
1498 * Fake out the timezone that the server thinks it's in. This will be used for
1499 * date display and not for what's stored in the DB. Leave to null to retain
1500 * your server's OS-based timezone value. This is the same as the timezone.
1501 *
1502 * This variable is currently used ONLY for signature formatting, not for
1503 * anything else.
1504 */
1505 # $wgLocaltimezone = 'GMT';
1506 # $wgLocaltimezone = 'PST8PDT';
1507 # $wgLocaltimezone = 'Europe/Sweden';
1508 # $wgLocaltimezone = 'CET';
1509 $wgLocaltimezone = null;
1510
1511 /**
1512 * Set an offset from UTC in hours to use for the default timezone setting
1513 * for anonymous users and new user accounts.
1514 *
1515 * This setting is used for most date/time displays in the software, and is
1516 * overrideable in user preferences. It is *not* used for signature timestamps.
1517 *
1518 * You can set it to match the configured server timezone like this:
1519 * $wgLocalTZoffset = date("Z") / 3600;
1520 *
1521 * If your server is not configured for the timezone you want, you can set
1522 * this in conjunction with the signature timezone and override the TZ
1523 * environment variable like so:
1524 * $wgLocaltimezone="Europe/Berlin";
1525 * putenv("TZ=$wgLocaltimezone");
1526 * $wgLocalTZoffset = date("Z") / 3600;
1527 *
1528 * Leave at NULL to show times in universal time (UTC/GMT).
1529 */
1530 $wgLocalTZoffset = null;
1531
1532
1533 /**
1534 * When translating messages with wfMsg(), it is not always clear what should be
1535 * considered UI messages and what shoud be content messages.
1536 *
1537 * For example, for regular wikipedia site like en, there should be only one
1538 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1539 * it as content of the site and call wfMsgForContent(), while for rendering the
1540 * text of the link, we call wfMsg(). The code in default behaves this way.
1541 * However, sites like common do offer different versions of 'mainpage' and the
1542 * like for different languages. This array provides a way to override the
1543 * default behavior. For example, to allow language specific mainpage and
1544 * community portal, set
1545 *
1546 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1547 */
1548 $wgForceUIMsgAsContentMsg = array();
1549
1550
1551 /**
1552 * Authentication plugin.
1553 */
1554 $wgAuth = null;
1555
1556 /**
1557 * Global list of hooks.
1558 * Add a hook by doing:
1559 * $wgHooks['event_name'][] = $function;
1560 * or:
1561 * $wgHooks['event_name'][] = array($function, $data);
1562 * or:
1563 * $wgHooks['event_name'][] = array($object, 'method');
1564 */
1565 $wgHooks = array();
1566
1567 /**
1568 * Experimental preview feature to fetch rendered text
1569 * over an XMLHttpRequest from JavaScript instead of
1570 * forcing a submit and reload of the whole page.
1571 * Leave disabled unless you're testing it.
1572 */
1573 $wgLivePreview = false;
1574
1575 /**
1576 * Disable the internal MySQL-based search, to allow it to be
1577 * implemented by an extension instead.
1578 */
1579 $wgDisableInternalSearch = false;
1580
1581 /**
1582 * Set this to a URL to forward search requests to some external location.
1583 * If the URL includes '$1', this will be replaced with the URL-encoded
1584 * search term.
1585 *
1586 * For example, to forward to Google you'd have something like:
1587 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1588 * '&domains=http://example.com' .
1589 * '&sitesearch=http://example.com' .
1590 * '&ie=utf-8&oe=utf-8';
1591 */
1592 $wgSearchForwardUrl = null;
1593
1594 /**
1595 * If true, external URL links in wiki text will be given the
1596 * rel="nofollow" attribute as a hint to search engines that
1597 * they should not be followed for ranking purposes as they
1598 * are user-supplied and thus subject to spamming.
1599 */
1600 $wgNoFollowLinks = true;
1601
1602 /**
1603 * Specifies the minimal length of a user password. If set to
1604 * 0, empty passwords are allowed.
1605 */
1606 $wgMinimalPasswordLength = 0;
1607
1608 /**
1609 * Activate external editor interface for files and pages
1610 * See http://meta.wikimedia.org/wiki/Help:External_editors
1611 */
1612 $wgUseExternalEditor = true;
1613
1614 /** Whether or not to sort special pages in Special:Specialpages */
1615
1616 $wgSortSpecialPages = true;
1617
1618 /**
1619 * Specify the name of a skin that should not be presented in the
1620 * list of available skins.
1621 * Use for blacklisting a skin which you do not want to remove
1622 * from the .../skins/ directory
1623 */
1624 $wgSkipSkin = '';
1625 $wgSkipSkins = array(); # More of the same
1626
1627 /**
1628 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
1629 */
1630 $wgDisabledActions = array();
1631
1632 /**
1633 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
1634 */
1635 $wgDisableHardRedirects = false;
1636
1637 /**
1638 * Use http.dnsbl.sorbs.net to check for open proxies
1639 */
1640 $wgEnableSorbs = false;
1641
1642 /**
1643 * Use opm.blitzed.org to check for open proxies.
1644 * Not yet actually used.
1645 */
1646 $wgEnableOpm = false;
1647
1648 /**
1649 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
1650 * methods might say
1651 */
1652 $wgProxyWhitelist = array();
1653
1654 /**
1655 * Simple rate limiter options to brake edit floods.
1656 * Maximum number actions allowed in the given number of seconds;
1657 * after that the violating client receives HTTP 500 error pages
1658 * until the period elapses.
1659 *
1660 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
1661 *
1662 * This option set is experimental and likely to change.
1663 * Requires memcached.
1664 */
1665 $wgRateLimits = array(
1666 'edit' => array(
1667 'anon' => null, // for any and all anonymous edits (aggregate)
1668 'user' => null, // for each logged-in user
1669 'newbie' => null, // for each recent account; overrides 'user'
1670 'ip' => null, // for each anon and recent account
1671 'subnet' => null, // ... with final octet removed
1672 ),
1673 'move' => array(
1674 'user' => null,
1675 'newbie' => null,
1676 'ip' => null,
1677 'subnet' => null,
1678 ),
1679 );
1680
1681 /**
1682 * Set to a filename to log rate limiter hits.
1683 */
1684 $wgRateLimitLog = null;
1685
1686 /**
1687 * On Special:Unusedimages, consider images "used", if they are put
1688 * into a category. Default (false) is not to count those as used.
1689 */
1690 $wgCountCategorizedImagesAsUsed = false;
1691
1692 /**
1693 * External stores allow including content
1694 * from non database sources following URL links
1695 *
1696 * Short names of ExternalStore classes may be specified in an array here:
1697 * $wgExternalStores = array("http","file","custom")...
1698 *
1699 * CAUTION: Access to database might lead to code execution
1700 */
1701 $wgExternalStores = false;
1702
1703 /**
1704 * An array of external mysql servers, e.g.
1705 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
1706 */
1707 $wgExternalServers = array();
1708
1709 /**
1710 * list of trusted media-types and mime types.
1711 * Use the MEDIATYPE_xxx constants to represent media types.
1712 * This list is used by Image::isSafeFile
1713 *
1714 * Types not listed here will have a warning about unsafe content
1715 * displayed on the images description page. It would also be possible
1716 * to use this for further restrictions, like disabling direct
1717 * [[media:...]] links for non-trusted formats.
1718 */
1719 $wgTrustedMediaFormats= array(
1720 MEDIATYPE_BITMAP, //all bitmap formats
1721 MEDIATYPE_AUDIO, //all audio formats
1722 MEDIATYPE_VIDEO, //all plain video formats
1723 "image/svg", //svg (only needed if inline rendering of svg is not supported)
1724 "application/pdf", //PDF files
1725 #"application/x-shockwafe-flash", //flash/shockwave movie
1726 );
1727
1728 /**
1729 * Allow special page inclusions such as {{Special:Allpages}}
1730 */
1731 $wgAllowSpecialInclusion = true;
1732
1733 /**
1734 * Timeout for HTTP requests done via CURL
1735 */
1736 $wgHTTPTimeout = 3;
1737
1738 /**
1739 * Proxy to use for CURL requests.
1740 */
1741 $wgHTTPProxy = false;
1742
1743 /**
1744 * Enable interwiki transcluding. Only when iw_trans=1.
1745 */
1746 $wgEnableScaryTranscluding = false;
1747
1748 /**
1749 * Support blog-style "trackbacks" for articles. See
1750 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
1751 */
1752 $wgUseTrackbacks = false;
1753
1754 /**
1755 * Enable filtering of robots in Special:Watchlist
1756 */
1757
1758 $wgFilterRobotsWL = false;
1759
1760 ?>