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' ) ) {
19 * MediaWiki version number
20 * @global string $wgVersion
22 $wgVersion = '1.5alpha';
26 * It must be changed in LocalSettings.php
27 * @global string $wgSitename
29 $wgSitename = 'MediaWiki';
32 * Will be same as you set @see $wgSitename
33 * @global mixed $wgMetaNamespace
35 $wgMetaNamespace = FALSE;
40 * It will be automaticly build including https mode
41 * @global string $wgServer
45 if( isset( $_SERVER['SERVER_NAME'] ) ) {
46 $wgServerName = $_SERVER['SERVER_NAME'];
47 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
48 $wgServerName = $_SERVER['HOSTNAME'];
50 # FIXME: Fall back on... something else?
51 $wgServerName = 'localhost';
54 # check if server use https:
55 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
57 $wgServer = $wgProto.'://' . $wgServerName;
58 if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
59 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
65 * The path we should point to.
66 * It might be a virtual path in case with use apache mod_rewrite for example
67 * @global string $wgScriptPath
69 $wgScriptPath = '/wiki';
72 * Whether to support URLs like index.php/Page_title
73 * @global bool $wgUsePathInfo
75 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
79 * Script users will request to get articles
80 * ATTN: Old installations used wiki.phtml and redirect.phtml -
81 * make sure that LocalSettings.php is correctly set!
85 * @global string $wgScript
87 $wgScript = "{$wgScriptPath}/index.php";
89 * @global string $wgRedirectScript
91 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
99 * style path as seen by users
100 * @global string $wgStylePath
102 $wgStylePath = "{$wgScriptPath}/skins";
104 * filesystem stylesheets directory
105 * @global string $wgStyleDirectory
107 $wgStyleDirectory = "{$IP}/skins";
108 $wgStyleSheetPath = &$wgStylePath;
109 $wgStyleSheetDirectory = &$wgStyleDirectory;
110 $wgArticlePath = "{$wgScript}?title=$1";
111 $wgUploadPath = "{$wgScriptPath}/upload";
112 $wgUploadDirectory = "{$IP}/upload";
113 $wgHashedUploadDirectory = true;
114 $wgLogo = "{$wgUploadPath}/wiki.png";
115 $wgMathPath = "{$wgUploadPath}/math";
116 $wgMathDirectory = "{$wgUploadDirectory}/math";
117 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
118 $wgUploadBaseUrl = "";
121 # If you operate multiple wikis, you can define a shared upload
122 # path here. Uploads to this wiki will NOT be put there - they
123 # will be put into $wgUploadDirectory.
125 # If $wgUseSharedUploads is set, the wiki will look in the
126 # shared repository if no file of the given name is found in
127 # the local repository (for [[Image:..]], [[Media:..]] links).
128 # Thumbnails will also be looked for and generated in this
131 $wgUseSharedUploads = false;
132 # Full path on the web server where shared uploads can be found
133 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
134 # Path on the file system where shared uploads can be found
135 $wgSharedUploadDirectory = "/var/www/wiki3/images";
136 # Set this to false especially if you have a set of files that need to be
137 # accessible by all wikis, and you do not want to use the hash (path/a/aa/)
139 $wgHashedSharedUploadDirectory = true;
140 # set true if the repository uses latin1 filenames
141 $wgSharedLatin1=false;
142 # Base URL for a repository wiki. Leave this blank if uploads are just
143 # stored in a shared directory and not meant to be accessible through
144 # a separate wiki. Otherwise the image description pages on the local
145 # wiki will link to the image description page on this wiki.
147 # Please specify the namespace, as in the example below.
148 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
153 * Site admin email address
154 * Default to wikiadmin@SERVER_NAME
155 * @global string $wgEmergencyContact
157 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
160 * Password reminder email address
161 * The address we should use as sender when a user is requesting his password
162 * Default to apache@SERVER_NAME
163 * @global string $wgPasswordSender
165 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
168 * Set to true to enable the e-mail basic features:
169 * Password reminders, etc. If sending e-mail on your
170 * server doesn't work, you might want to disable this.
171 * @global bool $wgEnableEmail
173 $wgEnableEmail = true;
176 * Set to true to enable user-to-user e-mail.
177 * This can potentially be abused, as it's hard to track.
178 * @global bool $wgEnableUserEmail
180 $wgEnableUserEmail = true;
184 * For using a direct (authenticated) SMTP server connection.
185 * Default to false or fill an array :
187 * "host" => 'SMTP domain',
188 * "IDHost" => 'domain for MessageID',
190 * "auth" => true/false,
191 * "username" => user,
192 * "password" => password
195 * @global mixed $wgSMTP
203 /** database host name or ip address */
204 $wgDBserver = 'localhost';
205 /** name of the database */
206 $wgDBname = 'wikidb';
208 $wgDBconnection = '';
209 /** Database username */
210 $wgDBuser = 'wikiuser';
212 * "mysql" for working code and "PostgreSQL" for development/broken code
216 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
217 * based search engine
219 $wgSearchType = "MyISAM";
220 /** Table name prefix */
223 * on some databases this allows separate
224 * logical namespace for application data
226 $wgDBschema = 'mediawiki';
231 # Shared database for multiple wikis.
232 # Presently used for storing a user table for single sign-on
233 # The server for this database must be the same as for the main
238 # Database load balancer
239 # This is a two-dimensional array, an array of server info structures
242 # dbname: Default database name
244 # password: DB password
245 # type: "mysql" or "pgsql"
246 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
248 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
249 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
250 # DBO_TRX -- wrap entire request in a transaction
251 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
252 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
254 # Leave at false to use the single-server variables above
255 $wgDBservers = false;
258 # The sql user shouldn't have too many rights other the database, restrict
259 # it to SELECT only on 'cur' table for example
261 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
262 $wgDBsqluser = 'sqluser';
263 $wgDBsqlpassword = 'sqlpass';
264 $wgDBpassword = 'userpass';
265 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
266 $wgDBerrorLog = false; # File to log MySQL errors to
269 # MySQL 3.x : used to discard words that MySQL will not return any results for
270 # shorter values configure mysql directly
271 # MySQL 4.x : ignore it and configure mySQL
272 # See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
274 $wgDBtransactions = false; # Set to true if using InnoDB tables
275 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
278 $wgBufferSQLResults = true; # use buffered queries by default
280 # Other wikis on this site, can be administered from a single developer account
281 # Array, interwiki prefix => database name
282 $wgLocalDatabases = array();
286 # See docs/memcached.doc
288 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
289 $wgUseMemCached = false;
290 $wgMemCachedServers = array( '127.0.0.1:11000' );
291 $wgMemCachedDebug = false;
292 $wgSessionsInMemcached = false;
293 $wgLinkCacheMemcached = false; # Not fully tested
296 * Turck MMCache shared memory
297 * You can use this for persistent caching where your wiki runs on a single
298 * server. Enabled by default if Turck is installed. Mutually exclusive with
299 * memcached, memcached is used if both are specified.
301 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
303 $wgUseTurckShm = false;
310 * Default to 'en'. Should be one of ./language/Language(.*).php
311 * @global string $wgLanguageCode
313 $wgLanguageCode = 'en';
316 * Filename of a language file generated by dumpMessages.php
317 * @global string|false $wgLanguageFile (default:false)
319 $wgLanguageFile = false;
321 * Treat language links as magic connectors, not inline links
322 * @global bool $wgInterwikiMagic (default:true)
324 $wgInterwikiMagic = true;
325 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
326 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
327 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
328 $wgEditEncoding = '';
330 # Set this to eg 'ISO-8859-1' to perform character set
331 # conversion when loading old revisions not marked with
332 # "utf-8" flag. Use this when converting wiki to UTF-8
333 # without the burdensome mass conversion of old text data.
335 # NOTE! This DOES NOT touch any fields other than old_text.
336 # Titles, comments, user names, etc still must be converted
337 # en masse in the database before continuing as a UTF-8 wiki.
338 $wgLegacyEncoding = false;
340 $wgMimeType = 'text/html';
341 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
342 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
343 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
344 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
345 $wgAmericanDates = false; # Enable for English module to print dates
346 # as eg 'May 12' instead of '12 May'
347 $wgTranslateNumerals = true; # For Hindi and Arabic use local numerals instead
348 # of Western style (0-9) numerals in interface.
351 # Translation using MediaWiki: namespace
352 # This will increase load times by 25-60% unless memcached is installed
353 # Interface messages will be get from the database.
354 $wgUseDatabaseMessages = true;
355 $wgMsgCacheExpiry = 86400;
356 $wgPartialMessageCache = false;
358 # Whether to enable language variant conversion. Currently only zh
359 # supports this function, to convert between Traditional and Simplified
360 # Chinese. This flag is meant to isolate the (untested) conversion
361 # code, so that if it breaks, only zh will be affected
362 $wgDisableLangConversion = true;
364 # Whether to use zhdaemon to perform Chinese text processing
365 $wgUseZhdaemon = false;
366 $wgZhdaemonHost="localhost";
367 $wgZhdaemonPort=2004;
369 # Miscellaneous configuration settings
372 $wgLocalInterwiki = 'w';
373 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
375 $wgShowIPinHeader = true; # For non-logged in users
376 $wgMaxNameChars = 32; # Maximum number of bytes in username
378 $wgExtraSubtitle = '';
379 $wgSiteSupportPage = ''; # A page where you users can receive donations
381 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
384 # The debug log file should be not be publicly accessible if it is
385 # used, as it may contain private data.
386 $wgDebugLogFile = '';
391 $wgDebugRedirects = false;
392 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
394 $wgDebugComments = false;
396 $wgLogQueries = false;
397 $wgDebugDumpSql = false;
399 # Whether to disable automatic generation of "we're sorry,
400 # but there has been a database error" pages.
401 $wgIgnoreSQLErrors = false;
403 # Should [[Category:Dog]] on a page associate it with the
404 # category "Dog"? (a link to that category page will be
405 # added to the article, clicking it reveals a list of
406 # all articles in the category)
407 $wgUseCategoryMagic = true;
409 # disable experimental dmoz-like category browsing. Output things like:
410 # Encyclopedia > Music > Style of Music > Jazz
412 $wgUseCategoryBrowser = false;
414 $wgEnablePersistentLC = false; # Obsolete, do not use
415 $wgCompressedPersistentLC = true; # use gzcompressed blobs
416 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
419 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
420 * to speed up output of the same page viewed by another user with the
423 * This can provide a significant speedup for medium to large pages,
424 * so you probably want to keep it on.
426 $wgEnableParserCache = true;
430 # wgHitcounterUpdateFreq sets how often page counters should be
431 # updated, higher values are easier on the database. A value of 1
432 # causes the counters to be updated on every hit, any higher value n
433 # cause them to update *on average* every n hits. Should be set to
434 # either 1 or something largish, eg 1000, for maximum efficiency.
436 $wgHitcounterUpdateFreq = 1;
439 # It's not 100% safe, there could be security hole using that one. Use at your
442 $wgWhitelistEdit = false; # true = user must login to edit.
443 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
444 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
446 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
448 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
449 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
450 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
451 # strtotime format, or "infinite" for an infinite block
452 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
454 # Proxy scanner settings
456 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
457 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
458 $wgProxyScriptPath = "$IP/proxy_check.php";
459 $wgProxyMemcExpiry = 86400;
460 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
461 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
463 # Number of accounts each IP address may create, 0 to disable.
465 $wgAccountCreationThrottle = 0;
468 # Client-side caching:
469 $wgCachePages = true; # Allow client-side caching of pages
471 # Set this to current time to invalidate all prior cached pages.
472 # Affects both client- and server-side caching.
473 $wgCacheEpoch = '20030516000000';
476 # Server-side caching:
477 # This will cache static pages for non-logged-in users
478 # to reduce database traffic on public sites.
479 # Must set $wgShowIPinHeader = false
480 $wgUseFileCache = false;
481 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
483 # When using the file cache, we can store the cached HTML gzipped to save disk
484 # space. Pages will then also be served compressed to clients that support it.
485 # THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
486 # the default LocalSettings.php! If you enable this, remove that setting first.
488 # Requires zlib support enabled in PHP.
492 $wgCookieExpiration = 2592000;
495 # Squid-related settings
498 # Enable/disable Squid
501 # If you run Squid3 with ESI support, enable this (default:false):
504 # Internal server name as known to Squid, if different
505 # $wgInternalServer = 'http://yourinternal.tld:8000';
506 $wgInternalServer = $wgServer;
508 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
509 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
510 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
511 $wgSquidMaxage = 18000;
513 # A list of proxy servers (ips if possible) to purge on changes
514 # don't specify ports here (80 is default)
515 # $wgSquidServers = array('127.0.0.1');
517 # Maximum number of titles to purge in any one client operation
518 $wgMaxSquidPurgeTitles = 400;
522 # Set to set an explicit domain on the login cookies
523 # eg, "justthis.domain.org" or ".any.subdomain.net"
524 $wgCookieDomain = '';
526 $wgDisableCookieCheck = false;
528 # Whether to allow inline image pointing to other websites
529 $wgAllowExternalImages = true;
531 $wgMiserMode = false; # Disable database-intensive features
532 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
533 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
534 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
536 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
537 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
538 # convert (ImageMagick) installed and available in the PATH.
539 # Please see math/README for more information.
541 $wgTexvc = './math/texvc'; # Location of the texvc binary
543 # Profiling / debugging
544 $wgProfiling = false; # Enable for more detailed by-function times in debug log
545 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
546 $wgProfileOnly = false; # Don't put non-profiling info into log file
547 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
548 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
549 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
550 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
551 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
553 $wgDisableCounters = false;
554 $wgDisableTextSearch = false;
555 $wgDisableSearchUpdate = false; # If you've disabled search semi-permanently, this also disables updates to the table. If you ever re-enable, be sure to rebuild the search table.
556 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
557 $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work.
558 $wgDisableAnonTalk = false;
560 # Path to the GNU diff3 utility. If the file doesn't exist,
561 # edit conflicts will fall back to the old behaviour (no merging).
562 $wgDiff3 = '/usr/bin/diff3';
565 # We can also compress text in the old revisions table. If this is set on,
566 # old revisions will be compressed on page save if zlib support is available.
567 # Any compressed revisions will be decompressed on load regardless of this
568 # setting *but will not be readable at all* if zlib support is not available.
569 $wgCompressRevisions = false;
571 # This is the list of preferred extensions for uploading files. Uploading
572 # files with extensions not in this list will trigger a warning.
573 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
575 # Files with these extensions will never be allowed as uploads.
576 $wgFileBlacklist = array(
577 # HTML may contain cookie-stealing JavaScript and web bugs
579 # PHP scripts may execute arbitrary code on the server
580 'php', 'phtml', 'php3', 'php4', 'phps',
581 # Other types that may be interpreted by some servers
582 'shtml', 'jhtml', 'pl', 'py', 'cgi',
583 # May contain harmful executables for Windows victims
584 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
586 # This is a flag to determine whether or not to check file extensions on
588 $wgCheckFileExtensions = true;
590 # If this is turned off, users may override the warning for files not
591 # covered by $wgFileExtensions.
592 $wgStrictFileExtensions = true;
594 # Warn if uploaded files are larger than this
595 $wgUploadSizeWarning = 150000;
597 $wgPasswordSalt = true; # For compatibility with old installations set to false
599 # Which namespaces should support subpages?
600 # See Language.php for a list of namespaces.
602 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
603 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
605 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
606 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
608 # If set, a bold ugly notice will show up at the top of every page.
611 ## Set $wgUseImageResize to true if you want to enable dynamic
612 ## server side image resizing ("Thumbnails")
614 $wgUseImageResize = false;
616 ## Resizing can be done using PHP's internal image libraries
617 ## or using ImageMagick. The later supports more file formats
618 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
620 ## Set $wgUseImageMagick to true to use Image Magick instead
621 ## of the builtin functions
623 $wgUseImageMagick = false;
624 $wgImageMagickConvertCommand = '/usr/bin/convert';
626 # Scalable Vector Graphics (SVG) may be uploaded as images.
627 # Since SVG support is not yet standard in browsers, it is
628 # necessary to rasterize SVGs to PNG as a fallback format.
630 # An external program is required to perform this conversion:
631 $wgSVGConverters = array(
632 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
633 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
634 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
635 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
637 $wgSVGConverter = 'ImageMagick'; # Pick one of the above
638 $wgSVGConverterPath = ''; # If not in the executable PATH, specify
640 if( !isset( $wgCommandLineMode ) ) {
641 $wgCommandLineMode = false;
644 # Show seconds in Recent Changes
645 $wgRCSeconds = false;
647 # Log IP addresses in the recentchanges table
648 $wgPutIPinRC = false;
650 # RDF metadata toggles
651 $wgEnableDublinCoreRdf = false;
652 $wgEnableCreativeCommonsRdf = false;
654 # Override for copyright metadata.
655 # TODO: these options need documentation
656 $wgRightsPage = NULL;
658 $wgRightsText = NULL;
659 $wgRightsIcon = NULL;
661 # Set this to true if you want detailed copyright information forms on Upload.
662 $wgUseCopyrightUpload = false;
664 # Set this to false if you want to disable checking that detailed
665 # copyright information values are not empty.
666 $wgCheckCopyrightUpload = true;
669 # Set this to false to avoid forcing the first letter of links
670 # to capitals. WARNING: may break links! This makes links
671 # COMPLETELY case-sensitive. Links appearing with a capital at
672 # the beginning of a sentence will *not* go to the same place
673 # as links in the middle of a sentence using a lowercase initial.
674 $wgCapitalLinks = true;
676 # List of interwiki prefixes for wikis we'll accept as sources
677 # for Special:Import (for sysops). Since complete page history
678 # can be imported, these should be 'trusted'.
679 $wgImportSources = array();
681 # Set this to the number of authors that you want to be credited below an
682 # article text. Set it to zero to hide the attribution block, and a
683 # negative number (like -1) to show all authors. Note that this will
684 # require 2-3 extra database hits, which can have a not insignificant
685 # impact on performance for large wikis.
688 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
689 # Otherwise, link to a separate credits page.
690 $wgShowCreditsIfMax = true;
692 # Text matching this regular expression will be recognised as spam
693 # See http://en.wikipedia.org/wiki/Regular_expression
694 $wgSpamRegex = false;
695 # Similarly if this function returns true
696 $wgFilterCallback = false;
698 # Go button goes straight to the edit screen if the article doesn't exist
701 # Allow limited user-specified HTML in wiki pages?
702 # It will be run through a whitelist for security.
703 # Set this to false if you want wiki pages to consist only of wiki
704 # markup. Note that replacements do not yet exist for all HTML
708 # Allow raw, unchecked HTML in <html>...</html> sections.
709 # THIS IS VERY DANGEROUS on a publically editable site, so
710 # you can't enable it unless you've restricted editing to
711 # trusted users only with $wgWhitelistEdit.
714 # $wgUseTidy: use tidy to make sure HTML output is sane.
715 # This should only be enabled if $wgUserHtml is true.
716 # tidy is a free tool that fixes broken HTML.
717 # See http://www.w3.org/People/Raggett/tidy/
718 # $wgTidyBin should be set to the path of the binary and
719 # $wgTidyConf to the path of the configuration file.
720 # $wgTidyOpts can include any number of parameters.
723 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
726 # See list of skins and their symbolic names in languagel/Language.php
727 $wgDefaultSkin = 'monobook';
729 # Settings added to this array will override the language globals for
730 # the user preferences used by anonymous visitors and newly created
731 # accounts. (See names and sample values in languages/Language.php)
733 # For instance, to disable section editing links:
734 # $wgDefaultUserOptions['editsection'] = 0;
736 $wgDefaultUserOptions = array();
738 # Whether or not to allow real name fields. Defaults to true.
739 $wgAllowRealName = true;
743 $wgUseXMLparser = false ;
746 $wgSkinExtensionFunctions = array();
747 $wgExtensionFunctions = array();
749 # Allow user Javascript page?
750 $wgAllowUserJs = true;
752 # Allow user Cascading Style Sheets (CSS)?
753 $wgAllowUserCss = true;
755 # Use the site's Javascript page?
758 # Use the site's Cascading Style Sheets (CSS)?
759 $wgUseSiteCss = true;
761 # Filter for Special:Randompage. Part of a WHERE clause
762 $wgExtraRandompageSQL = false;
764 # Allow the "info" action, very inefficient at the moment
765 $wgAllowPageInfo = false;
767 # Maximum indent level of toc.
768 $wgMaxTocLevel = 999;
770 # Recognise longitude/latitude coordinates
771 $wgUseGeoMode = false;
773 # Validation for print or other production versions
774 $wgUseValidation = false;
776 # Use external C++ diff engine (module wikidiff from the
777 # extensions package)
778 $wgUseExternalDiffEngine = false;
780 # Use RC Patrolling to check for vandalism
781 $wgUseRCPatrol = true;
783 # Additional namespaces. If the namespaces defined in Language.php and Namespace.php are insufficient,
784 # you can create new ones here, for example, to import Help files in other languages.
785 # PLEASE NOTE: Once you delete a namespace, the pages in that namespace will no longer be accessible.
786 # If you rename it, then you can access them through the new namespace name.
788 # Custom namespaces should start at 100 and stop at 255 (hard limit set by database)
789 #$wgExtraNamespaces =
790 # array(100 => "Hilfe",
791 # 101 => "Hilfe_Diskussion",
793 # 103 => "Discussion_Aide"
795 $wgExtraNamespaces = NULL;
797 # Enable SOAP interface. Off by default
798 # SOAP is a protocoll for remote procedure calls (RPC) using http as middleware.
799 # This interface can be used by bots or special clients to receive articles from
801 # Most bots use the normal HTTP interface and don't use SOAP.
802 # If unsure, set to false.
803 $wgEnableSOAP = false;
805 # Limit images on image description pages to a user-selectable limit. In order to
806 # reduce disk usage, limits can only be selected from a list. This is the list of
807 # settings the user can choose from:
808 $wgImageLimits = array (
814 array(10000,10000) );
817 /** Navigation links for the user sidebar.
818 * 'text' is the name of the MediaWiki message that contains the label of this link
819 * 'href' is the name of the MediaWiki message that contains the link target of this link.
820 * Link targets starting with http are considered remote links. Ones not starting with
821 * http are considered as names of local wiki pages.
823 $wgNavigationLinks = array (
824 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
825 array( 'text'=>'portal', 'href'=>'portal-url' ),
826 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
827 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
828 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
829 array( 'text'=>'help', 'href'=>'helppage' ),
830 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
833 # On category pages, show thumbnail gallery for images belonging to that category
834 # instead of listing them as articles.
835 $wgCategoryMagicGallery = true;
837 # Browser Blacklist for unicode non compliant browsers
838 # Contains a list of regexps : "/regexp/" matching problematic browsers
839 $wgBrowserBlackList = array(
840 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
841 // FIXME: Add some accurate, true things here
844 # Fake out the timezone that the server thinks it's in. This will be used
845 # for date display and not for what's stored in the DB.
846 # Leave to null to retain your server's OS-based timezone value
847 # This is the same as the timezone
848 # $wgLocaltimezone = 'GMT';
849 # $wgLocaltimezone = 'PST8PDT';
850 # $wgLocaltimezone = 'Europe/Sweden';
851 # $wgLocaltimezone = 'CET';
853 # User level management
854 # The number is the database id of a group you want users to be attached by
855 # default. A better interface should be coded [av]
857 $wgLoggedInGroupId = 2;
859 $wgWhitelistRead = array ( ':Accueil', ':Main_Page');
862 * Authentication plugin.
867 * Global list of hooks.
868 * Add a hook by doing:
869 * $wgHooks['event_name'][] = $function;
871 * $wgHooks['event_name'][] = array($function, $data);
873 * $wgHooks['event_name'][] = array($object, 'method');