3 * DO NOT EDIT THIS FILE!
5 * To customize your installation, edit "LocalSettings.php".
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
15 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
16 if( defined( 'MEDIAWIKI' ) ) {
18 /** MediaWiki version number */
19 $wgVersion = '1.5pre-alpha';
21 /** Name of the site. It must be changed in LocalSettings.php */
22 $wgSitename = 'MediaWiki';
24 /** Will be same as you set @see $wgSitename */
25 $wgMetaNamespace = FALSE;
27 /** URL of the server. It will be automaticly build including https mode */
30 if( isset( $_SERVER['SERVER_NAME'] ) ) {
31 $wgServerName = $_SERVER['SERVER_NAME'];
32 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
33 $wgServerName = $_SERVER['HOSTNAME'];
35 # FIXME: Fall back on... something else?
36 $wgServerName = 'localhost';
39 # check if server use https:
40 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
42 $wgServer = $wgProto.'://' . $wgServerName;
43 if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
44 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
50 * The path we should point to.
51 * It might be a virtual path in case with use apache mod_rewrite for example
53 $wgScriptPath = '/wiki';
56 * Whether to support URLs like index.php/Page_title
57 * @global bool $wgUsePathInfo
59 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
63 * Script users will request to get articles
64 * ATTN: Old installations used wiki.phtml and redirect.phtml -
65 * make sure that LocalSettings.php is correctly set!
69 * @global string $wgScript
71 $wgScript = "{$wgScriptPath}/index.php";
73 * @global string $wgRedirectScript
75 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
83 * style path as seen by users
84 * @global string $wgStylePath
86 $wgStylePath = "{$wgScriptPath}/skins";
88 * filesystem stylesheets directory
89 * @global string $wgStyleDirectory
91 $wgStyleDirectory = "{$IP}/skins";
92 $wgStyleSheetPath = &$wgStylePath;
93 $wgStyleSheetDirectory = &$wgStyleDirectory;
94 $wgArticlePath = "{$wgScript}?title=$1";
95 $wgUploadPath = "{$wgScriptPath}/upload";
96 $wgUploadDirectory = "{$IP}/upload";
97 $wgHashedUploadDirectory = true;
98 $wgLogo = "{$wgUploadPath}/wiki.png";
99 $wgMathPath = "{$wgUploadPath}/math";
100 $wgMathDirectory = "{$wgUploadDirectory}/math";
101 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
102 $wgUploadBaseUrl = "";
106 * If you operate multiple wikis, you can define a shared upload path here.
107 * Uploads to this wiki will NOT be put there - they will be put into
108 * $wgUploadDirectory.
109 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
110 * no file of the given name is found in the local repository (for [[Image:..]],
111 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
114 $wgUseSharedUploads = false;
115 /** Full path on the web server where shared uploads can be found */
116 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
117 /** Path on the file system where shared uploads can be found */
118 $wgSharedUploadDirectory = "/var/www/wiki3/images";
121 * Set the following to false especially if you have a set of files that need to
122 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
125 $wgHashedSharedUploadDirectory = true;
127 /** set true if the repository uses latin1 filenames */
128 $wgSharedLatin1=false;
131 * Base URL for a repository wiki. Leave this blank if uploads are just stored
132 * in a shared directory and not meant to be accessible through a separate wiki.
133 * Otherwise the image description pages on the local wiki will link to the
134 * image description page on this wiki.
136 * Please specify the namespace, as in the example below.
138 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
146 * Site admin email address
147 * Default to wikiadmin@SERVER_NAME
148 * @global string $wgEmergencyContact
150 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
153 * Password reminder email address
154 * The address we should use as sender when a user is requesting his password
155 * Default to apache@SERVER_NAME
156 * @global string $wgPasswordSender
158 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
161 * dummy address which should be accepted during mail send action
162 * It might be necessay to adapt the address or to set it equal
163 * to the $wgEmergencyContact address
165 #$wgNoReplyAddress = $wgEmergencyContact;
166 $wgNoReplyAddress = 'reply@not.possible';
169 * Set to true to enable the e-mail basic features:
170 * Password reminders, etc. If sending e-mail on your
171 * server doesn't work, you might want to disable this.
172 * @global bool $wgEnableEmail
174 $wgEnableEmail = true;
177 * Set to true to enable user-to-user e-mail.
178 * This can potentially be abused, as it's hard to track.
179 * @global bool $wgEnableUserEmail
181 $wgEnableUserEmail = true;
185 * For using a direct (authenticated) SMTP server connection.
186 * Default to false or fill an array :
188 * "host" => 'SMTP domain',
189 * "IDHost" => 'domain for MessageID',
191 * "auth" => true/false,
192 * "username" => user,
193 * "password" => password
196 * @global mixed $wgSMTP
204 /** database host name or ip address */
205 $wgDBserver = 'localhost';
206 /** name of the database */
207 $wgDBname = 'wikidb';
209 $wgDBconnection = '';
210 /** Database username */
211 $wgDBuser = 'wikiuser';
213 * "mysql" for working code and "PostgreSQL" for development/broken code
217 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
218 * based search engine
220 $wgSearchType = "MyISAM";
221 /** Table name prefix */
224 * on some databases this allows separate
225 * logical namespace for application data
227 $wgDBschema = 'mediawiki';
233 * Shared database for multiple wikis. Presently used for storing a user table
234 * for single sign-on. The server for this database must be the same as for the
240 # Database load balancer
241 # This is a two-dimensional array, an array of server info structures
244 # dbname: Default database name
246 # password: DB password
247 # type: "mysql" or "pgsql"
248 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
250 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
251 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
252 # DBO_TRX -- wrap entire request in a transaction
253 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
254 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
256 # Leave at false to use the single-server variables above
257 $wgDBservers = false;
259 /** How long to wait for a slave to catch up to the master */
260 $wgMasterWaitTimeout = 10;
262 /** File to log MySQL errors to */
263 $wgDBerrorLog = false;
267 * MySQL 3.x : used to discard words that MySQL will not return any results for
268 * shorter values configure mysql directly.
269 * MySQL 4.x : ignore it and configure mySQL
270 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
273 /** Set to true if using InnoDB tables */
274 $wgDBtransactions = false;
275 /** Set to true to use enhanced fulltext search */
280 * Other wikis on this site, can be administered from a single developer
282 * Array, interwiki prefix => database name
284 $wgLocalDatabases = array();
288 # See docs/memcached.doc
290 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
291 $wgUseMemCached = false;
292 $wgMemCachedServers = array( '127.0.0.1:11000' );
293 $wgMemCachedDebug = false;
294 $wgSessionsInMemcached = false;
295 $wgLinkCacheMemcached = false; # Not fully tested
298 * Turck MMCache shared memory
299 * You can use this for persistent caching where your wiki runs on a single
300 * server. Enabled by default if Turck is installed. Mutually exclusive with
301 * memcached, memcached is used if both are specified.
303 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
305 $wgUseTurckShm = false;
310 /** Site language code, should be one of ./language/Language(.*).php */
311 $wgLanguageCode = 'en';
313 /** Filename of a language file generated by dumpMessages.php */
314 $wgLanguageFile = false;
316 /** Treat language links as magic connectors, not inline links */
317 $wgInterwikiMagic = true;
319 /** LanguageUtf8.php normally overrides this */
320 $wgInputEncoding = 'ISO-8859-1';
321 /** unless you set the next option to true: */
322 $wgOutputEncoding = 'ISO-8859-1';
323 /** Enable ISO-8859-1 compatibility mode */
324 $wgUseLatin1 = false;
325 $wgEditEncoding = '';
327 # Set this to eg 'ISO-8859-1' to perform character set
328 # conversion when loading old revisions not marked with
329 # "utf-8" flag. Use this when converting wiki to UTF-8
330 # without the burdensome mass conversion of old text data.
332 # NOTE! This DOES NOT touch any fields other than old_text.
333 # Titles, comments, user names, etc still must be converted
334 # en masse in the database before continuing as a UTF-8 wiki.
335 $wgLegacyEncoding = false;
337 $wgMimeType = 'text/html';
338 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
339 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
341 /** Enable to allow rewriting dates in page text.
342 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
343 $wgUseDynamicDates = false;
344 /** Enable for English module to print dates as eg 'May 12' instead of '12 May' */
345 $wgAmericanDates = false;
347 * For Hindi and Arabic use local numerals instead of Western style (0-9)
348 * numerals in interface.
350 $wgTranslateNumerals = true;
353 # Translation using MediaWiki: namespace
354 # This will increase load times by 25-60% unless memcached is installed
355 # Interface messages will be get from the database.
356 $wgUseDatabaseMessages = true;
357 $wgMsgCacheExpiry = 86400;
358 $wgPartialMessageCache = false;
360 # Whether to enable language variant conversion. Currently only zh
361 # supports this function, to convert between Traditional and Simplified
362 # Chinese. This flag is meant to isolate the (untested) conversion
363 # code, so that if it breaks, only zh will be affected
364 $wgDisableLangConversion = false;
366 # Whether to use zhdaemon to perform Chinese text processing
367 # zhdaemon is under developement, so normally you don't want to
368 # use it unless for testing
369 $wgUseZhdaemon = false;
370 $wgZhdaemonHost="localhost";
371 $wgZhdaemonPort=2004;
373 # Miscellaneous configuration settings
376 $wgLocalInterwiki = 'w';
377 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
379 $wgShowIPinHeader = true; # For non-logged in users
380 $wgMaxNameChars = 32; # Maximum number of bytes in username
382 $wgExtraSubtitle = '';
383 $wgSiteSupportPage = ''; # A page where you users can receive donations
385 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
388 * The debug log file should be not be publicly accessible if it is used, as it
389 * may contain private data. */
390 $wgDebugLogFile = '';
395 $wgDebugRedirects = false;
396 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
398 $wgDebugComments = false;
400 $wgLogQueries = false;
401 $wgDebugDumpSql = false;
404 * Whether to show "we're sorry, but there has been a database error" pages.
405 * Displaying errors aids in debugging, but may display information useful
408 $wgShowSQLErrors = false;
410 # Should [[Category:Dog]] on a page associate it with the
411 # category "Dog"? (a link to that category page will be
412 # added to the article, clicking it reveals a list of
413 # all articles in the category)
414 $wgUseCategoryMagic = true;
417 * disable experimental dmoz-like category browsing. Output things like:
418 * Encyclopedia > Music > Style of Music > Jazz
420 $wgUseCategoryBrowser = false;
422 $wgEnablePersistentLC = false; # Obsolete, do not use
423 $wgCompressedPersistentLC = true; # use gzcompressed blobs
424 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
427 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
428 * to speed up output of the same page viewed by another user with the
431 * This can provide a significant speedup for medium to large pages,
432 * so you probably want to keep it on.
434 $wgEnableParserCache = true;
439 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
440 * values are easier on the database. A value of 1 causes the counters to be
441 * updated on every hit, any higher value n cause them to update *on average*
442 * every n hits. Should be set to either 1 or something largish, eg 1000, for
443 * maximum efficiency.
445 $wgHitcounterUpdateFreq = 1;
447 # User rights settings
449 # It's not 100% safe, there could be security hole using that one. Use at your
452 $wgWhitelistEdit = false; # true = user must login to edit.
453 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
454 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
456 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
458 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
459 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
460 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
461 # strtotime format, or "infinite" for an infinite block
462 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
464 # Proxy scanner settings
468 * If you enable this, every editor's IP address will be scanned for open HTTP
471 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
472 * ISP and ask for your server to be shut down.
474 * You have been warned.
476 $wgBlockOpenProxies = false;
477 /** Port we want to scan for a proxy */
478 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
479 /** Script used to scan */
480 $wgProxyScriptPath = "$IP/proxy_check.php";
482 $wgProxyMemcExpiry = 86400;
484 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
485 /** big list of banned IP addresses, in the keys not the values */
486 $wgProxyList = array();
488 /** Number of accounts each IP address may create, 0 to disable.
489 * Requires memcached */
490 $wgAccountCreationThrottle = 0;
492 # Client-side caching:
494 /** Allow client-side caching of pages */
495 $wgCachePages = true;
498 * Set this to current time to invalidate all prior cached pages. Affects both
499 * client- and server-side caching.
501 $wgCacheEpoch = '20030516000000';
504 # Server-side caching:
507 * This will cache static pages for non-logged-in users to reduce
508 * database traffic on public sites.
509 * Must set $wgShowIPinHeader = false
511 $wgUseFileCache = false;
512 /** Directory where the cached page will be saved */
513 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
516 * When using the file cache, we can store the cached HTML gzipped to save disk
517 * space. Pages will then also be served compressed to clients that support it.
518 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
519 * the default LocalSettings.php! If you enable this, remove that setting first.
521 * Requires zlib support enabled in PHP.
525 # Email notification settings
529 * Program to run when the email is actually sent out. You might want to make
530 * your server beep for example. Usermailer.php will make a system() call with
531 * exactly that string as parameter.
533 # $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
534 $wgEmailNotificationSystembeep = '';
536 /** For email notification on page changes */
537 $wgPasswordSender = $wgEmergencyContact;
539 # true: from PageEditor if s/he opted-in
540 # false: Enotif mails appear to come from $wgEmergencyContact
541 $wgEmailNotificationMailsSentFromPageEditor = false;
543 // TODO move UPO to preferences probably ?
544 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
545 # If set to false, the corresponding input form on the user preference page is suppressed
546 # It call this to be a "user-preferences-option (UPO)"
547 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
548 $wgEmailNotificationForWatchlistPages = false; # UPO
549 $wgEmailNotificationForUserTalkPages = false; # UPO
550 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
551 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
552 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
555 /** Show watching users in recent changes, watchlist and page history views */
556 $wgRCShowWatchingUsers = false; # UPO
557 /** Show watching users in Page views */
558 $wgPageShowWatchingUsers = false;
560 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
561 * view for watched pages with new changes */
562 $wgShowUpdatedMarker = true; # UPO
564 $wgCookieExpiration = 2592000;
566 # Squid-related settings
569 /** Enable/disable Squid */
572 /** If you run Squid3 with ESI support, enable this (default:false): */
575 /** Internal server name as known to Squid, if different */
576 # $wgInternalServer = 'http://yourinternal.tld:8000';
577 $wgInternalServer = $wgServer;
580 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
581 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
582 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
585 $wgSquidMaxage = 18000;
588 * A list of proxy servers (ips if possible) to purge on changes don't specify
589 * ports here (80 is default)
591 # $wgSquidServers = array('127.0.0.1');
592 $wgSquidServers = array();
593 $wgSquidServersNoPurge = array();
595 /** Maximum number of titles to purge in any one client operation */
596 $wgMaxSquidPurgeTitles = 400;
602 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
603 * or ".any.subdomain.net"
605 $wgCookieDomain = '';
607 $wgDisableCookieCheck = false;
609 /** Whether to allow inline image pointing to other websites */
610 $wgAllowExternalImages = true;
612 /** Disable database-intensive features */
613 $wgMiserMode = false;
614 /** Disable all query pages if miser mode is on, not just some */
615 $wgDisableQueryPages = false;
616 /** Generate a watchlist once every hour or so */
617 $wgUseWatchlistCache = false;
618 /** The hour or so mentioned above */
619 $wgWLCacheTimeout = 3600;
622 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
623 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
624 * (ImageMagick) installed and available in the PATH.
625 * Please see math/README for more information.
628 /** Location of the texvc binary */
629 $wgTexvc = './math/texvc';
632 # Profiling / debugging
635 /** Enable for more detailed by-function times in debug log */
636 $wgProfiling = false;
637 /** Only record profiling info for pages that took longer than this */
638 $wgProfileLimit = 0.0;
639 /** Don't put non-profiling info into log file */
640 $wgProfileOnly = false;
641 /** Log sums from profiling into "profiling" table in db. */
642 $wgProfileToDatabase = false;
643 /** Only profile every n requests when profiling is turned on */
644 $wgProfileSampleRate = 1;
645 /** If true, print a raw call tree instead of per-function report */
646 $wgProfileCallTree = false;
648 /** Detects non-matching wfProfileIn/wfProfileOut calls */
649 $wgDebugProfiling = false;
650 /** Output debug message on every wfProfileIn/wfProfileOut */
651 $wgDebugFunctionEntry = 0;
652 /** Lots of debugging output from SquidUpdate.php */
653 $wgDebugSquid = false;
655 $wgDisableCounters = false;
656 $wgDisableTextSearch = false;
658 * If you've disabled search semi-permanently, this also disables updates to the
659 * table. If you ever re-enable, be sure to rebuild the search table.
661 $wgDisableSearchUpdate = false;
662 /** Uploads have to be specially set up to be secure */
663 $wgDisableUploads = true;
665 * Set to true to enable the upload _link_ while local uploads are disabled.
666 * Assumes that the special page link will be bounced to another server where
669 $wgRemoteUploads = false;
670 $wgDisableAnonTalk = false;
673 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
674 * fall back to the old behaviour (no merging).
676 $wgDiff3 = '/usr/bin/diff3';
679 * We can also compress text in the old revisions table. If this is set on, old
680 * revisions will be compressed on page save if zlib support is available. Any
681 * compressed revisions will be decompressed on load regardless of this setting
682 * *but will not be readable at all* if zlib support is not available.
684 $wgCompressRevisions = false;
687 * This is the list of preferred extensions for uploading files. Uploading files
688 * with extensions not in this list will trigger a warning.
690 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
692 /** Files with these extensions will never be allowed as uploads. */
693 $wgFileBlacklist = array(
694 # HTML may contain cookie-stealing JavaScript and web bugs
696 # PHP scripts may execute arbitrary code on the server
697 'php', 'phtml', 'php3', 'php4', 'phps',
698 # Other types that may be interpreted by some servers
699 'shtml', 'jhtml', 'pl', 'py', 'cgi',
700 # May contain harmful executables for Windows victims
701 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
703 /** This is a flag to determine whether or not to check file extensions on upload. */
704 $wgCheckFileExtensions = true;
707 * If this is turned off, users may override the warning for files not covered
708 * by $wgFileExtensions.
710 $wgStrictFileExtensions = true;
712 /** Warn if uploaded files are larger than this */
713 $wgUploadSizeWarning = 150000;
715 /** For compatibility with old installations set to false */
716 $wgPasswordSalt = true;
718 /** Which namespaces should support subpages?
719 * See Language.php for a list of namespaces.
721 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
722 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
724 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
725 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
727 /** If set, a bold ugly notice will show up at the top of every page. */
735 /** dynamic server side image resizing ("Thumbnails") */
736 $wgUseImageResize = false;
739 * Resizing can be done using PHP's internal image libraries or using
740 * ImageMagick. The later supports more file formats than PHP, which only
741 * supports PNG, GIF, JPG, XBM and WBMP.
743 * Use Image Magick instead of PHP builtin functions.
745 $wgUseImageMagick = false;
746 /** The convert command shipped with ImageMagick */
747 $wgImageMagickConvertCommand = '/usr/bin/convert';
749 # Scalable Vector Graphics (SVG) may be uploaded as images.
750 # Since SVG support is not yet standard in browsers, it is
751 # necessary to rasterize SVGs to PNG as a fallback format.
753 # An external program is required to perform this conversion:
754 $wgSVGConverters = array(
755 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
756 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
757 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
758 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
760 /** Pick one of the above */
761 $wgSVGConverter = 'ImageMagick';
762 /** If not in the executable PATH, specify */
763 $wgSVGConverterPath = '';
765 /** @todo FIXME what does it do here ?? [ashar] */
766 if( !isset( $wgCommandLineMode ) ) {
767 $wgCommandLineMode = false;
772 # Recent changes settings
775 /** Show seconds in Recent Changes */
776 $wgRCSeconds = false;
778 /** Log IP addresses in the recentchanges table */
779 $wgPutIPinRC = false;
782 * Recentchanges items are periodically purged; entries older than this many
784 * For one week : 7 * 24 * 3600
786 $wgRCMaxAge = 7 * 24 * 3600;
790 # Copyright and credits settings
793 /** RDF metadata toggles */
794 $wgEnableDublinCoreRdf = false;
795 $wgEnableCreativeCommonsRdf = false;
797 /** Override for copyright metadata.
798 * TODO: these options need documentation
800 $wgRightsPage = NULL;
802 $wgRightsText = NULL;
803 $wgRightsIcon = NULL;
805 /** Set this to some HTML to override the rights icon with an arbitrary logo */
806 $wgCopyrightIcon = NULL;
808 /** Set this to true if you want detailed copyright information forms on Upload. */
809 $wgUseCopyrightUpload = false;
811 /** Set this to false if you want to disable checking that detailed copyright
812 * information values are not empty. */
813 $wgCheckCopyrightUpload = true;
816 * Set this to the number of authors that you want to be credited below an
817 * article text. Set it to zero to hide the attribution block, and a negative
818 * number (like -1) to show all authors. Note that this will# require 2-3 extra
819 * database hits, which can have a not insignificant impact on performance for
824 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
825 * Otherwise, link to a separate credits page. */
826 $wgShowCreditsIfMax = true;
831 * Set this to false to avoid forcing the first letter of links to capitals.
832 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
833 * appearing with a capital at the beginning of a sentence will *not* go to the
834 * same place as links in the middle of a sentence using a lowercase initial.
836 $wgCapitalLinks = true;
839 * List of interwiki prefixes for wikis we'll accept as sources for
840 * Special:Import (for sysops). Since complete page history# can be imported,
841 * these should be 'trusted'.
843 $wgImportSources = array();
847 /** Text matching this regular expression will be recognised as spam
848 * See http://en.wikipedia.org/wiki/Regular_expression */
849 $wgSpamRegex = false;
850 /** Similarly if this function returns true */
851 $wgFilterCallback = false;
853 /** Go button goes straight to the edit screen if the article doesn't exist. */
856 /** Allow limited user-specified HTML in wiki pages?
857 * It will be run through a whitelist for security. Set this to false if you
858 * want wiki pages to consist only of wiki markup. Note that replacements do not
859 * yet exist for all HTML constructs.*/
862 /** Allow raw, unchecked HTML in <html>...</html> sections.
863 * THIS IS VERY DANGEROUS on a publically editable site, so you can't enable it
864 * unless you've restricted editing to trusted users only with $wgWhitelistEdit.
869 * $wgUseTidy: use tidy to make sure HTML output is sane.
870 * This should only be enabled if $wgUserHtml is true.
871 * tidy is a free tool that fixes broken HTML.
872 * See http://www.w3.org/People/Raggett/tidy/
873 * $wgTidyBin should be set to the path of the binary and
874 * $wgTidyConf to the path of the configuration file.
875 * $wgTidyOpts can include any number of parameters.
879 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
882 /** See list of skins and their symbolic names in languagel/Language.php */
883 $wgDefaultSkin = 'monobook';
886 * Settings added to this array will override the language globals for the user
887 * preferences used by anonymous visitors and newly created accounts. (See names
888 * and sample values in languages/Language.php)
889 * For instance, to disable section editing links:
890 * $wgDefaultUserOptions ['editsection'] = 0;
893 $wgDefaultUserOptions = array();
895 /** Whether or not to allow and use real name fields. Defaults to true. */
896 $wgAllowRealName = true;
898 /** Use XML parser? */
899 $wgUseXMLparser = false ;
902 $wgSkinExtensionFunctions = array();
903 $wgExtensionFunctions = array();
906 * Allow user Javascript page?
907 * This enables a lot of neat customizations, but may
908 * increase security risk to users and server load.
910 $wgAllowUserJs = false;
913 * Allow user Cascading Style Sheets (CSS)?
914 * This enables a lot of neat customizations, but may
915 * increase security risk to users and server load.
917 $wgAllowUserCss = false;
919 /** Use the site's Javascript page? */
922 /** Use the site's Cascading Style Sheets (CSS)? */
923 $wgUseSiteCss = true;
925 /** Filter for Special:Randompage. Part of a WHERE clause */
926 $wgExtraRandompageSQL = false;
928 /** Allow the "info" action, very inefficient at the moment */
929 $wgAllowPageInfo = false;
931 /** Maximum indent level of toc. */
932 $wgMaxTocLevel = 999;
934 /** Use external C++ diff engine (module wikidiff from the extensions package) */
935 $wgUseExternalDiffEngine = false;
937 /** Use RC Patrolling to check for vandalism */
938 $wgUseRCPatrol = true;
940 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
941 * eg Recentchanges, Newpages. */
944 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
945 * A cached version will continue to be served out even if changes
946 * are made, until this many seconds runs out since the last render. */
947 $wgFeedCacheTimeout = 60;
949 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
950 * pages larger than this size. */
951 $wgFeedDiffCutoff = 32768;
955 * Additional namespaces. If the namespaces defined in Language.php and
956 * Namespace.php are insufficient,# you can create new ones here, for example,
957 * to import Help files in other languages.
958 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
959 * no longer be accessible. If you rename it, then you can access them through
960 * the new namespace name.
962 * Custom namespaces should start at 100 and stop at 255 (hard limit set by
965 #$wgExtraNamespaces =
966 # array(100 => "Hilfe",
967 # 101 => "Hilfe_Diskussion",
969 # 103 => "Discussion_Aide"
971 $wgExtraNamespaces = NULL;
974 * Enable SOAP interface. Off by default
975 * SOAP is a protocoll for remote procedure calls (RPC) using http as
976 * middleware. This interface can be used by bots or special clients to receive
977 * articles from a wiki.
978 * Most bots use the normal HTTP interface and don't use SOAP.
979 * If unsure, set to false.
981 $wgEnableSOAP = false;
984 * Limit images on image description pages to a user-selectable limit. In order
985 * to reduce disk usage, limits can only be selected from a list. This is the
986 * list of settings the user can choose from:
988 $wgImageLimits = array (
994 array(10000,10000) );
997 /** Navigation links for the user sidebar.
998 * 'text' is the name of the MediaWiki message that contains the label of this link
999 * 'href' is the name of the MediaWiki message that contains the link target of this link.
1000 * Link targets starting with http are considered remote links. Ones not starting with
1001 * http are considered as names of local wiki pages.
1003 $wgNavigationLinks = array (
1004 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
1005 array( 'text'=>'portal', 'href'=>'portal-url' ),
1006 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
1007 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
1008 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
1009 array( 'text'=>'help', 'href'=>'helppage' ),
1010 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
1014 * On category pages, show thumbnail gallery for images belonging to that
1015 * category instead of listing them as articles.
1017 $wgCategoryMagicGallery = true;
1020 * Browser Blacklist for unicode non compliant browsers
1021 * Contains a list of regexps : "/regexp/" matching problematic browsers
1023 $wgBrowserBlackList = array(
1024 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
1025 // FIXME: Add some accurate, true things here
1029 * Fake out the timezone that the server thinks it's in. This will be used for
1030 * date display and not for what's stored in the DB. Leave to null to retain
1031 * your server's OS-based timezone value. This is the same as the timezone.
1033 # $wgLocaltimezone = 'GMT';
1034 # $wgLocaltimezone = 'PST8PDT';
1035 # $wgLocaltimezone = 'Europe/Sweden';
1036 # $wgLocaltimezone = 'CET';
1037 $wgLocaltimezone = null;
1040 * User level management
1041 * The number is the database id of a group you want users to be attached by
1042 * default. A better interface should be coded [av]
1045 $wgLoggedInGroupId = 2;
1046 $wgSysopGroupId = 3;
1047 $wgBureaucratGroupId = 4;
1050 * When translating messages with wfMsg(), it is not always clear what should be
1051 * considered UI messages and what shoud be content messages.
1053 * For example, for regular wikipedia site like en, there should be only one
1054 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1055 * it as content of the site and call wfMsgForContent(), while for rendering the
1056 * text of the link, we call wfMsg(). The code in default behaves this way.
1057 * However, sites like common do offer different versions of 'mainpage' and the
1058 * like for different languages. This array provides a way to override the
1059 * default behavior. For example, to allow language specific mainpage and
1060 * community portal, set
1062 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1064 $wgForceUIMsgAsContentMsg = array();
1068 * Authentication plugin.
1073 * Global list of hooks.
1074 * Add a hook by doing:
1075 * $wgHooks['event_name'][] = $function;
1077 * $wgHooks['event_name'][] = array($function, $data);
1079 * $wgHooks['event_name'][] = array($object, 'method');
1084 * Experimental preview feature to fetch rendered text
1085 * over an XMLHttpRequest from JavaScript instead of
1086 * forcing a submit and reload of the whole page.
1087 * Leave disabled unless you're testing it.
1089 $wgLivePreview = false;
1092 * Disable the internal MySQL-based search, to allow it to be
1093 * implemented by an extension instead.
1095 $wgDisableInternalSearch = false;
1098 * Set this to a URL to forward search requests to some external location.
1099 * If the URL includes '$1', this will be replaced with the URL-encoded
1102 * For example, to forward to Google you'd have something like:
1103 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1104 * '&domains=http://example.com' .
1105 * '&sitesearch=http://example.com' .
1106 * '&ie=utf-8&oe=utf-8';
1108 $wgSearchForwardUrl = null;
1111 * If true, external URL links in wiki text will be given the
1112 * rel="nofollow" attribute as a hint to search engines that
1113 * they should not be followed for ranking purposes as they
1114 * are user-supplied and thus subject to spamming.
1116 $wgNoFollowLinks = true;
1119 * Specifies the minimal length of a user password. If set to
1120 * 0, empty passwords are allowed.
1122 $wgMinimalPasswordLength = 0;