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