Add $wgUserHtml option; set to false to disable use of user-supplied HTML
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 # DO NOT EDIT THIS FILE!
3 # To customize your installation, edit "LocalSettings.php".
4 # Note that since all these string interpolations are expanded
5 # before LocalSettings is included, if you localize something
6 # like $wgScriptPath, you must also localize everything that
7 # depends on it.
8
9 $wgVersion = "1.3.0pre-alpha";
10
11 $wgSitename = "MediaWiki"; # Please customize!
12 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
13
14
15 # check if server use https:
16 $wgProto = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https" : "http";
17
18 if ( @$wgCommandLineMode ) {
19 $wgServer = $wgProto."://localhost";
20 } else {
21 $wgServer = $wgProto."://" . $_SERVER["SERVER_NAME"];
22 if( $_SERVER["SERVER_PORT"] != 80 ) $wgServer .= ":" . $_SERVER["SERVER_PORT"];
23 }
24 unset($wgProto);
25
26 $wgScriptPath = "/wiki";
27
28 # Whether to support URLs like index.php/Page_title
29 $wgUsePathInfo = ( strpos( php_sapi_name(), "cgi" ) === false );
30
31 # ATTN: Old installations used wiki.phtml and redirect.phtml -
32 # make sure that LocalSettings.php is correctly set!
33 $wgScript = "{$wgScriptPath}/index.php";
34 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
35
36 $wgStylePath = "{$wgScriptPath}/style";
37 $wgStyleDirectory = "{$IP}/style";
38 $wgStyleSheetPath = &$wgStylePath;
39 $wgStyleSheetDirectory = &$wgStyleDirectory;
40 $wgArticlePath = "{$wgScript}?title=$1";
41 $wgUploadPath = "{$wgScriptPath}/upload";
42 $wgUploadDirectory = "{$IP}/upload";
43 $wgLogo = "{$wgUploadPath}/wiki.png";
44 $wgMathPath = "{$wgUploadPath}/math";
45 $wgMathDirectory = "{$wgUploadDirectory}/math";
46 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
47 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
48 $wgPasswordSender = "Wikipedia Mail <apache@" . getenv( "SERVER_NAME" ) . ">";
49
50 # For using a direct (authenticated) SMTP server connection.
51 # "host" => 'SMTP domain', "IDHost" => 'domain for MessageID', "port" => "25", "auth" => true/false, "username" => user, "password" => password
52 $wgSMTP = false;
53
54 # MySQL settings
55 #
56 $wgDBserver = "localhost";
57 $wgDBname = "wikidb";
58 $wgDBconnection = "";
59 $wgDBuser = "wikiuser";
60
61 # Sysop SQL queries
62 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
63 $wgDBsqluser = "sqluser";
64 $wgDBsqlpassword = "sqlpass";
65 $wgDBpassword = "userpass";
66 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
67
68 $wgDBminWordLen = 4;
69 $wgDBtransactions = false; # Set to true if using InnoDB tables
70 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
71 $wgSqlTimeout = 30;
72
73 $wgBufferSQLResults = true; # use buffered queries by default
74
75 # Other wikis on this site, can be administered from a single developer account
76 # Array, interwiki prefix => database name
77 $wgLocalDatabases = array();
78
79 # Database load balancer
80 $wgDBservers = false; # e.g. array("larousse", "pliny")
81 $wgDBloads = false; # e.g. array(0.6, 0.4);
82
83
84 # memcached settings
85 # See docs/memcached.doc
86 #
87 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
88 $wgUseMemCached = false;
89 $wgMemCachedServers = array( "127.0.0.1:11000" );
90 $wgMemCachedDebug = false;
91 $wgSessionsInMemcached = false;
92 $wgLinkCacheMemcached = false; # Not fully tested
93
94 # Language settings
95 #
96 $wgLanguageCode = "en";
97 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php
98 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
99 $wgInputEncoding = "ISO-8859-1";
100 $wgOutputEncoding = "ISO-8859-1";
101 $wgEditEncoding = "";
102 $wgMimeType = "text/html";
103 $wgDocType = "-//W3C//DTD XHTML 1.0 Transitional//EN";
104 $wgDTD = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
105 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
106 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
107 $wgAmericanDates = false; # Enable for English module to print dates
108 # as eg 'May 12' instead of '12 May'
109 $wgLocalInterwiki = "w";
110 $wgShowIPinHeader = true; # For non-logged in users
111 $wgMaxNameChars = 32; # Maximum number of bytes in username
112 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
113
114 # Translation using MediaWiki: namespace
115 # This will increase load times by 25-60% unless memcached is installed
116 $wgUseDatabaseMessages = true;
117 $wgMsgCacheExpiry = 86400;
118
119 $wgExtraSubtitle = "";
120 $wgSiteSupportPage = "";
121
122 # Miscellaneous configuration settings
123 #
124 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
125
126 # The debug log file should be not be publically accessible if it is
127 # used, as it may contain private data.
128 $wgDebugLogFile = "";
129 $wgDebugRedirects = false;
130
131 $wgDebugComments = false;
132 $wgReadOnly = false;
133 $wgLogQueries = false;
134 $wgDebugDumpSql = false;
135
136 # Whether to disable automatic generation of "we're sorry,
137 # but there has been a database error" pages.
138 $wgIgnoreSQLErrors = false;
139
140 $wgUseCategoryMagic = true;
141 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
142 $wgCompressedPersistentLC = true; # use gzcompressed blobs
143
144 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
145
146 # wgHitcounterUpdateFreq sets how often page counters should be
147 # updated, higher values are easier on the database. A value of 1
148 # causes the counters to be updated on every hit, any higher value n
149 # cause them to update *on average* every n hits. Should be set to
150 # either 1 or something largish, eg 1000, for maximum efficiency.
151
152 $wgHitcounterUpdateFreq = 1;
153
154 # User rights
155 $wgWhitelistEdit = false; # true = user must login to edit.
156 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
157 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
158 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
159 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
160 $wgDefaultBlockExpiry = "24 hours"; # default expiry time
161 # strtotime format, or "infinite" for an infinite block
162 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
163 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
164 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
165 $wgProxyScriptPath = "$IP/proxy_check.php";
166 $wgProxyMemcExpiry = 86400;
167 $wgProxyKey = "W1svekXc5u6lZllTZOwnzEk1nbs";
168
169 # Client-side caching:
170 $wgCachePages = true; # Allow client-side caching of pages
171
172 # Set this to current time to invalidate all prior cached pages.
173 # Affects both client- and server-side caching.
174 $wgCacheEpoch = "20030516000000";
175
176 # Server-side caching:
177 # This will cache static pages for non-logged-in users
178 # to reduce database traffic on public sites.
179 # Must set $wgShowIPinHeader = false
180 $wgUseFileCache = false;
181 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
182
183 $wgCookieExpiration = 2592000;
184
185 # Squid-related settings
186 #
187 # Enable/disable Squid
188 $wgUseSquid = false;
189 # If you run Squid3 with ESI support, enable this (default:false):
190 $wgUseESI = false;
191 # Internal server name as known to Squid, if different
192 # $wgInternalServer = 'http://yourinternal.tld:8000';
193 $wgInternalServer = $wgServer;
194 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
195 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
196 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
197 $wgSquidMaxage = 18000;
198 # A list of proxy servers (ips if possible) to purge on changes
199 # don't specify ports here (80 is default)
200 # $wgSquidServers = array('127.0.0.1');
201
202 # Set to set an explicit domain on the login cookies
203 # eg, "justthis.domain.org" or ".any.subdomain.net"
204 $wgCookieDomain = "";
205 $wgCookiePath = "/";
206 $wgDisableCookieCheck = false;
207
208 $wgAllowExternalImages = true;
209 $wgMiserMode = false; # Disable database-intensive features
210 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
211 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
212 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
213
214 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
215 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
216 # convert (ImageMagick) installed and available in the PATH.
217 # Please see math/README for more information.
218 $wgUseTeX = false;
219 $wgTexvc = "./math/texvc"; # Location of the texvc binary
220
221 # Support for inline hieroglyphs, see http://aoineko.free.fr/ The
222 # WikiHiero php files must be present in the same directory as the
223 # rest of the mediawiki code, and WikiHiero must have been configured
224 # with the correct image locations.
225 $wgUseWikiHiero = false;
226
227 # Support for inline timelines, see http://members.chello.nl/epzachte/Wikipedia/EasyTimeline/Introduction.htm
228 # The Timeline php files must be present in the extension directory and you must have the
229 # ploticus tool available, see http://ploticus.sourceforge.net/
230 $wgUseTimeline = false;
231
232 # Profiling / debugging
233 $wgProfiling = false; # Enable for more detailed by-function times in debug log
234 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
235 $wgProfileOnly = false; # Don't put non-profiling info into log file
236 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
237 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
238 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
239 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
240
241 $wgDisableCounters = false;
242 $wgDisableTextSearch = false;
243 $wgDisableFuzzySearch = false;
244 $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.
245 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
246 $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.
247 $wgDisableAnonTalk = false;
248
249 # We can serve pages compressed in order to save bandwidth,
250 # but this will increase CPU usage.
251 # Requires zlib support enabled in PHP.
252 $wgUseGzip = function_exists( "gzencode" );
253
254 # Path to the GNU diff3 utility. If the file doesn't exist,
255 # edit conflicts will fall back to the old behaviour (no merging).
256 $wgDiff3 = "/usr/bin/diff3";
257
258 # We can also compress text in the old revisions table. If this is set on,
259 # old revisions will be compressed on page save if zlib support is available.
260 # Any compressed revisions will be decompressed on load regardless of this
261 # setting *but will not be readable at all* if zlib support is not available.
262 $wgCompressRevisions = false;
263
264 # This is the list of preferred extensions for uploading files. Uploading
265 # files with extensions not in this list will trigger a warning.
266
267 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
268
269 # Files with these extensions will never be allowed as uploads.
270 $wgFileBlacklist = array(
271 # HTML may contain cookie-stealing JavaScript and web bugs
272 "html", "htm",
273 # PHP scripts may execute arbitrary code on the server
274 "php", "phtml", "php3", "php4", "phps",
275 # Other types that may be interpreted by some servers
276 "shtml", "jhtml", "pl", "py",
277 # May contain harmful executables for Windows victims
278 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
279
280 # This is a flag to determine whether or not to check file extensions on
281 # upload.
282 $wgCheckFileExtensions = true;
283
284 # If this is turned off, users may override the warning for files not
285 # covered by $wgFileExtensions.
286 $wgStrictFileExtensions = true;
287
288 $wgPasswordSalt = true; # For compatibility with old installations set to false
289
290 # Which namespaces should support subpages?
291 # See Language.php for a list of namespaces.
292 #
293 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
294 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
295
296 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
297 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
298
299 # If set, a bold ugly notice will show up at the top of every page.
300 $wgSiteNotice = "";
301
302 # Whether to allow anonymous users to set changes to 'minor'
303
304 $wgAllowAnonymousMinor = false;
305
306 ## Set $wgUseImageResize to true if you want to enable dynamic
307 ## server side image resizing ("Thumbnails")
308 #
309 $wgUseImageResize = false;
310
311 ## Resizing can be done using PHP's internal image libraries
312 ## or using ImageMagick. The later supports more file formats
313 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
314 ##
315 ## Set $wgUseImageMagick to true to use Image Magick instead
316 ## of the builtin functions
317 #
318 $wgUseImageMagick = false;
319 $wgImageMagickConvertCommand = "/usr/bin/convert";
320
321 # PHPTal needs a PEAR directory in the include_path. If we can't change the
322 # include_path (such as on free.fr and other hosts) we may have to disable it.
323 $wgUsePHPTal = true;
324 $pathchange = @ini_set( "include_path", "PHPTAL-NP-0.7.0/libs:" . ini_get("include_path") );
325 if( empty( $pathchange ) ) {
326 # Can't fix path! User can manually enable it again if they put the files
327 # in an appropriate place.
328 $wgUsePHPTal = false;
329 }
330
331
332 if( !isset( $wgCommandLineMode ) ) {
333 $wgCommandLineMode = false;
334 }
335
336 # Show seconds in Recent Changes
337 $wgRCSeconds = false;
338
339
340 # RDF metadata toggles
341 $wgEnableDublinCoreRdf = false;
342 $wgEnableCreativeCommonsRdf = false;
343
344 # Override for copyright metadata.
345 $wgRightsPage = NULL;
346 $wgRightsUrl = NULL;
347 $wgRightsText = NULL;
348 $wgRightsIcon = NULL;
349
350 # Set this to false to avoid forcing the first letter of links
351 # to capitals. WARNING: may break links! This makes links
352 # COMPLETELY case-sensitive. Links appearing with a capital at
353 # the beginning of a sentence will *not* go to the same place
354 # as links in the middle of a sentence using a lowercase initial.
355 $wgCapitalLinks = true;
356
357 # List of interwiki prefixes for wikis we'll accept as sources
358 # for Special:Import (for sysops). Since complete page history
359 # can be imported, these should be 'trusted'.
360 $wgImportSources = array();
361
362 # For credit to authors. Set to zero to hide attribution block.
363 $wgMaxCredits = 0;
364
365 # Text matching this regex will be recognised as spam
366 $wgSpamRegex = false;
367
368 # Go button goes straight to the edit screen if the article doesn't exist
369 $wgGoToEdit = false;
370
371 # Allow limited user-specified HTML?
372 # It will be run through a whitelist for security.
373 $wgUserHtml = true;
374
375 # Optional: use tidy to make sure the output is sane, switch on by setting $wgUseTidy = true;
376 $wgUseTidy = false;
377 $wgTidyBin = 'tidy';
378 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
379 $wgTidyOpts = '';
380
381 # See list of skins and their symbolic names in language/Language.php
382 $wgDefaultSkin = "monobook";
383
384 # Board of Trustees vote
385 $wgBoardVoteDB = "boardvote";
386 $wgContributingCandidates = array();
387 $wgVolunteerCandidates = array();
388 $wgGPGCommand = "gpg";
389 $wgGPGRecipient = "boardvote";
390 $wgGPGHomedir = false;
391 ?>