3 # DO NOT EDIT THIS FILE!
4 # To customize your installation, edit "LocalSettings.php".
5 # Note that since all these string interpolations are expanded
6 # before LocalSettings is included, if you localize something
7 # like $wgScriptPath, you must also localize everything that
10 $wgVersion = '1.3.0beta4';
12 $wgSitename = 'MediaWiki'; # Please customize!
13 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
16 # check if server use https:
17 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ?
'https' : 'http';
19 if ( @$wgCommandLineMode ) {
20 $wgServer = $wgProto.'://localhost';
22 $wgServer = $wgProto.'://' . $_SERVER['SERVER_NAME'];
23 if( $_SERVER['SERVER_PORT'] != 80 ) $wgServer .= ":" . $_SERVER['SERVER_PORT'];
27 $wgScriptPath = '/wiki';
29 # Whether to support URLs like index.php/Page_title
30 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
32 # ATTN: Old installations used wiki.phtml and redirect.phtml -
33 # make sure that LocalSettings.php is correctly set!
34 $wgScript = "{$wgScriptPath}/index.php";
35 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
37 $wgStylePath = "{$wgScriptPath}/style";
38 $wgStyleDirectory = "{$IP}/style";
39 $wgStyleSheetPath = &$wgStylePath;
40 $wgStyleSheetDirectory = &$wgStyleDirectory;
41 $wgArticlePath = "{$wgScript}?title=$1";
42 $wgUploadPath = "{$wgScriptPath}/upload";
43 $wgUploadDirectory = "{$IP}/upload";
44 $wgLogo = "{$wgUploadPath}/wiki.png";
45 $wgMathPath = "{$wgUploadPath}/math";
46 $wgMathDirectory = "{$wgUploadDirectory}/math";
47 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
48 $wgEmergencyContact = 'wikiadmin@' . getenv( 'SERVER_NAME' );
49 $wgPasswordSender = 'Wikipedia Mail <apache@' . getenv( 'SERVER_NAME' ) . '>';
51 # For using a direct (authenticated) SMTP server connection.
52 # "host" => 'SMTP domain', "IDHost" => 'domain for MessageID', "port" => "25", "auth" => true/false, "username" => user, "password" => password
57 $wgDBserver = 'localhost';
60 $wgDBuser = 'wikiuser';
61 $wgDBtype = "mysql"; # "mysql" for working code and "PostgreSQL" for development/broken code
62 $wgDBprefix = ''; # Table name prefix
64 # Database load balancer
65 # This is a two-dimensional array, an array of server info structures
68 # dbname: Default database name
70 # password: DB password
71 # type: "mysql" or "pgsql"
72 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
74 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
75 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
76 # DBO_TRX -- wrap entire request in a transaction
77 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
78 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
80 # Leave at false to use the single-server variables above
84 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
85 $wgDBsqluser = 'sqluser';
86 $wgDBsqlpassword = 'sqlpass';
87 $wgDBpassword = 'userpass';
88 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
89 $wgDBerrorLog = false; # File to log MySQL errors to
92 $wgDBtransactions = false; # Set to true if using InnoDB tables
93 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
96 $wgBufferSQLResults = true; # use buffered queries by default
98 # Other wikis on this site, can be administered from a single developer account
99 # Array, interwiki prefix => database name
100 $wgLocalDatabases = array();
103 # See docs/memcached.doc
105 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
106 $wgUseMemCached = false;
107 $wgMemCachedServers = array( '127.0.0.1:11000' );
108 $wgMemCachedDebug = false;
109 $wgSessionsInMemcached = false;
110 $wgLinkCacheMemcached = false; # Not fully tested
114 $wgLanguageCode = 'en';
115 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php
116 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
117 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this
118 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true:
119 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode
120 $wgEditEncoding = '';
121 $wgMimeType = 'text/html';
122 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
123 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
124 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
125 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
126 $wgAmericanDates = false; # Enable for English module to print dates
127 # as eg 'May 12' instead of '12 May'
128 $wgLocalInterwiki = 'w';
129 $wgShowIPinHeader = true; # For non-logged in users
130 $wgMaxNameChars = 32; # Maximum number of bytes in username
131 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
133 # Translation using MediaWiki: namespace
134 # This will increase load times by 25-60% unless memcached is installed
135 $wgUseDatabaseMessages = true;
136 $wgMsgCacheExpiry = 86400;
138 $wgExtraSubtitle = '';
139 $wgSiteSupportPage = '';
141 # Miscellaneous configuration settings
143 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
145 # The debug log file should be not be publicly accessible if it is
146 # used, as it may contain private data.
147 $wgDebugLogFile = '';
148 $wgDebugRedirects = false;
149 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
151 $wgDebugComments = false;
153 $wgLogQueries = false;
154 $wgDebugDumpSql = false;
156 # Whether to disable automatic generation of "we're sorry,
157 # but there has been a database error" pages.
158 $wgIgnoreSQLErrors = false;
160 # Should [[Category:Dog]] on a page associate it with the
161 # category "Dog"? (a link to that category page will be
162 # added to the article, clicking it reveals a list of
163 # all articles in the category)
164 $wgUseCategoryMagic = true;
166 # disable experimental dmoz-like category browsing. Output things like:
167 # Encyclopedia > Music > Style of Music > Jazz
169 $wgUseCategoryBrowser = false;
171 $wgEnablePersistentLC = false; # Obsolete, do not use
172 $wgCompressedPersistentLC = true; # use gzcompressed blobs
174 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
176 # wgHitcounterUpdateFreq sets how often page counters should be
177 # updated, higher values are easier on the database. A value of 1
178 # causes the counters to be updated on every hit, any higher value n
179 # cause them to update *on average* every n hits. Should be set to
180 # either 1 or something largish, eg 1000, for maximum efficiency.
182 $wgHitcounterUpdateFreq = 1;
185 $wgWhitelistEdit = false; # true = user must login to edit.
186 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
187 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
188 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
189 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
190 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
191 # strtotime format, or "infinite" for an infinite block
192 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
193 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
194 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
195 $wgProxyScriptPath = "$IP/proxy_check.php";
196 $wgProxyMemcExpiry = 86400;
197 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
198 $wgProxyList = array(); # big list of banned IP addresses, in the keys not the values
199 $wgAccountCreationThrottle = 0; # Number of accounts each IP address may create, 0 to disable. Requires memcached
201 # Client-side caching:
202 $wgCachePages = true; # Allow client-side caching of pages
204 # Set this to current time to invalidate all prior cached pages.
205 # Affects both client- and server-side caching.
206 $wgCacheEpoch = '20030516000000';
208 # Server-side caching:
209 # This will cache static pages for non-logged-in users
210 # to reduce database traffic on public sites.
211 # Must set $wgShowIPinHeader = false
212 $wgUseFileCache = false;
213 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
215 $wgCookieExpiration = 2592000;
217 # Squid-related settings
219 # Enable/disable Squid
221 # If you run Squid3 with ESI support, enable this (default:false):
223 # Internal server name as known to Squid, if different
224 # $wgInternalServer = 'http://yourinternal.tld:8000';
225 $wgInternalServer = $wgServer;
226 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
227 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
228 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
229 $wgSquidMaxage = 18000;
230 # A list of proxy servers (ips if possible) to purge on changes
231 # don't specify ports here (80 is default)
232 # $wgSquidServers = array('127.0.0.1');
234 # Maximum number of titles to purge in any one client operation
235 $wgMaxSquidPurgeTitles = 400;
238 # Set to set an explicit domain on the login cookies
239 # eg, "justthis.domain.org" or ".any.subdomain.net"
240 $wgCookieDomain = '';
242 $wgDisableCookieCheck = false;
244 $wgAllowExternalImages = true;
245 $wgMiserMode = false; # Disable database-intensive features
246 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
247 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
248 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
250 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
251 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
252 # convert (ImageMagick) installed and available in the PATH.
253 # Please see math/README for more information.
255 $wgTexvc = './math/texvc'; # Location of the texvc binary
257 # Profiling / debugging
258 $wgProfiling = false; # Enable for more detailed by-function times in debug log
259 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
260 $wgProfileOnly = false; # Don't put non-profiling info into log file
261 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
262 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
263 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
264 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
265 $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php
267 $wgDisableCounters = false;
268 $wgDisableTextSearch = false;
269 $wgDisableFuzzySearch = false;
270 $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.
271 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
272 $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.
273 $wgDisableAnonTalk = false;
275 # We can serve pages compressed in order to save bandwidth,
276 # but this will increase CPU usage.
277 # Requires zlib support enabled in PHP.
278 $wgUseGzip = function_exists( 'gzencode' );
280 # Path to the GNU diff3 utility. If the file doesn't exist,
281 # edit conflicts will fall back to the old behaviour (no merging).
282 $wgDiff3 = '/usr/bin/diff3';
284 # We can also compress text in the old revisions table. If this is set on,
285 # old revisions will be compressed on page save if zlib support is available.
286 # Any compressed revisions will be decompressed on load regardless of this
287 # setting *but will not be readable at all* if zlib support is not available.
288 $wgCompressRevisions = false;
290 # This is the list of preferred extensions for uploading files. Uploading
291 # files with extensions not in this list will trigger a warning.
292 $wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg' );
294 # Files with these extensions will never be allowed as uploads.
295 $wgFileBlacklist = array(
296 # HTML may contain cookie-stealing JavaScript and web bugs
298 # PHP scripts may execute arbitrary code on the server
299 'php', 'phtml', 'php3', 'php4', 'phps',
300 # Other types that may be interpreted by some servers
301 'shtml', 'jhtml', 'pl', 'py',
302 # May contain harmful executables for Windows victims
303 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
305 # This is a flag to determine whether or not to check file extensions on
307 $wgCheckFileExtensions = true;
309 # If this is turned off, users may override the warning for files not
310 # covered by $wgFileExtensions.
311 $wgStrictFileExtensions = true;
313 # Warn if uploaded files are larger than this
314 $wgUploadSizeWarning = 150000;
316 $wgPasswordSalt = true; # For compatibility with old installations set to false
318 # Which namespaces should support subpages?
319 # See Language.php for a list of namespaces.
321 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
322 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
324 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
325 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
327 # If set, a bold ugly notice will show up at the top of every page.
330 # Whether to allow anonymous users to set changes to 'minor'
331 $wgAllowAnonymousMinor = false;
333 ## Set $wgUseImageResize to true if you want to enable dynamic
334 ## server side image resizing ("Thumbnails")
336 $wgUseImageResize = false;
338 ## Resizing can be done using PHP's internal image libraries
339 ## or using ImageMagick. The later supports more file formats
340 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
342 ## Set $wgUseImageMagick to true to use Image Magick instead
343 ## of the builtin functions
345 $wgUseImageMagick = false;
346 $wgImageMagickConvertCommand = '/usr/bin/convert';
348 # PHPTal is a library for page templates. MediaWiki includes
349 # a recent PHPTal distribution. It is required to use the
350 # Monobook (default) skin.
353 if( !isset( $wgCommandLineMode ) ) {
354 $wgCommandLineMode = false;
357 # Show seconds in Recent Changes
358 $wgRCSeconds = false;
360 # Log IP addresses in the recentchanges table
361 $wgPutIPinRC = false;
363 # RDF metadata toggles
364 $wgEnableDublinCoreRdf = false;
365 $wgEnableCreativeCommonsRdf = false;
367 # Override for copyright metadata.
368 # TODO: these options need documentation
369 $wgRightsPage = NULL;
371 $wgRightsText = NULL;
372 $wgRightsIcon = NULL;
374 # Set this to true if you want detailed copyright information forms on Upload.
375 $wgUseCopyrightUpload = false;
377 # Set this to false if you want to disable checking that detailed
378 # copyright information values are not empty.
379 $wgCheckCopyrightUpload = true;
382 # Set this to false to avoid forcing the first letter of links
383 # to capitals. WARNING: may break links! This makes links
384 # COMPLETELY case-sensitive. Links appearing with a capital at
385 # the beginning of a sentence will *not* go to the same place
386 # as links in the middle of a sentence using a lowercase initial.
387 $wgCapitalLinks = true;
389 # List of interwiki prefixes for wikis we'll accept as sources
390 # for Special:Import (for sysops). Since complete page history
391 # can be imported, these should be 'trusted'.
392 $wgImportSources = array();
394 # Set this to the number of authors that you want to be credited below an
395 # article text. Set it to zero to hide the attribution block, and a
396 # negative number (like -1) to show all authors. Note that this will
397 # require 2-3 extra database hits, which can have a not insignificant
398 # impact on performance for large wikis.
401 # If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
402 # Otherwise, link to a separate credits page.
403 $wgShowCreditsIfMax = true;
405 # Text matching this regular expression will be recognised as spam
406 # See http://en.wikipedia.org/wiki/Regular_expression
407 $wgSpamRegex = false;
408 # Similarly if this function returns true
409 $wgFilterCallback = false;
411 # Go button goes straight to the edit screen if the article doesn't exist
414 # Allow limited user-specified HTML in wiki pages?
415 # It will be run through a whitelist for security.
416 # Set this to false if you want wiki pages to consist only of wiki
417 # markup. Note that replacements do not yet exist for all HTML
421 # Allow raw, unchecked HTML in <html>...</html> sections.
422 # THIS IS VERY DANGEROUS on a publically editable site.
423 # Don't enable it unless you've restricted editing to trusted
427 # $wgUseTidy: use tidy to make sure HTML output is sane.
428 # This should only be enabled if $wgUserHtml is true.
429 # tidy is a free tool that fixes broken HTML.
430 # See http://www.w3.org/People/Raggett/tidy/
431 # $wgTidyBin should be set to the path of the binary and
432 # $wgTidyConf to the path of the configuration file.
433 # $wgTidyOpts can include any number of parameters.
436 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
439 # See list of skins and their symbolic names in language/Language.php
440 $wgDefaultSkin = 'monobook';
442 # Whether or not to allow real name fields. Defaults to true.
443 $wgAllowRealName = true;
446 $wgExtensionFunctions = array();
448 # Allow user Javascript page?
449 $wgAllowUserJs = true;
451 # Allow user Cascading Style Sheets (CSS)?
452 $wgAllowUserCss = true;
454 # Filter for Special:Randompage. Part of a WHERE clause
455 $wgExtraRandompageSQL = false;
457 # Allow the "info" action, very inefficient at the moment
458 $wgAllowPageInfo = false;
460 # Maximum indent level of toc.
461 $wgMaxTocLevel = 999;
463 # Recognise longitude/latitude coordinates
464 $wgUseGeoMode = false;
466 # Validation for print or other production versions
467 $wgUseValidation = false;