disabling the dmoz-like category browser by defaut
[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.0beta1";
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 # memcached settings
84 # See docs/memcached.doc
85 #
86 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
87 $wgUseMemCached = false;
88 $wgMemCachedServers = array( "127.0.0.1:11000" );
89 $wgMemCachedDebug = false;
90 $wgSessionsInMemcached = false;
91 $wgLinkCacheMemcached = false; # Not fully tested
92
93 # Language settings
94 #
95 $wgLanguageCode = "en";
96 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php
97 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
98 $wgInputEncoding = "ISO-8859-1";
99 $wgOutputEncoding = "ISO-8859-1";
100 $wgEditEncoding = "";
101 $wgMimeType = "text/html";
102 $wgDocType = "-//W3C//DTD XHTML 1.0 Transitional//EN";
103 $wgDTD = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
104 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
105 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
106 $wgAmericanDates = false; # Enable for English module to print dates
107 # as eg 'May 12' instead of '12 May'
108 $wgLocalInterwiki = "w";
109 $wgShowIPinHeader = true; # For non-logged in users
110 $wgMaxNameChars = 32; # Maximum number of bytes in username
111 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
112
113 # Translation using MediaWiki: namespace
114 # This will increase load times by 25-60% unless memcached is installed
115 $wgUseDatabaseMessages = true;
116 $wgMsgCacheExpiry = 86400;
117
118 $wgExtraSubtitle = "";
119 $wgSiteSupportPage = "";
120
121 # Miscellaneous configuration settings
122 #
123 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
124
125 # The debug log file should be not be publicly accessible if it is
126 # used, as it may contain private data.
127 $wgDebugLogFile = "";
128 $wgDebugRedirects = false;
129
130 $wgDebugComments = false;
131 $wgReadOnly = false;
132 $wgLogQueries = false;
133 $wgDebugDumpSql = false;
134
135 # Whether to disable automatic generation of "we're sorry,
136 # but there has been a database error" pages.
137 $wgIgnoreSQLErrors = false;
138
139 # Should [[Category:Dog]] on a page associate it with the
140 # category "Dog"? (a link to that category page will be
141 # added to the article, clicking it reveals a list of
142 # all articles in the category)
143 $wgUseCategoryMagic = true;
144
145 # disable experimental dmoz-like category browsing. Output things like:
146 # Encyclopedia > Music > Style of Music > Jazz
147 # FIXME: need fixing
148 $wgUseCategoryBrowser = false;
149
150 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
151 $wgCompressedPersistentLC = true; # use gzcompressed blobs
152
153 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
154
155 # wgHitcounterUpdateFreq sets how often page counters should be
156 # updated, higher values are easier on the database. A value of 1
157 # causes the counters to be updated on every hit, any higher value n
158 # cause them to update *on average* every n hits. Should be set to
159 # either 1 or something largish, eg 1000, for maximum efficiency.
160
161 $wgHitcounterUpdateFreq = 1;
162
163 # User rights
164 $wgWhitelistEdit = false; # true = user must login to edit.
165 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
166 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
167 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
168 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
169 $wgDefaultBlockExpiry = "24 hours"; # default expiry time
170 # strtotime format, or "infinite" for an infinite block
171 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
172 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
173 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
174 $wgProxyScriptPath = "$IP/proxy_check.php";
175 $wgProxyMemcExpiry = 86400;
176 $wgProxyKey = "W1svekXc5u6lZllTZOwnzEk1nbs";
177
178 # Client-side caching:
179 $wgCachePages = true; # Allow client-side caching of pages
180
181 # Set this to current time to invalidate all prior cached pages.
182 # Affects both client- and server-side caching.
183 $wgCacheEpoch = "20030516000000";
184
185 # Server-side caching:
186 # This will cache static pages for non-logged-in users
187 # to reduce database traffic on public sites.
188 # Must set $wgShowIPinHeader = false
189 $wgUseFileCache = false;
190 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
191
192 $wgCookieExpiration = 2592000;
193
194 # Squid-related settings
195 #
196 # Enable/disable Squid
197 $wgUseSquid = false;
198 # If you run Squid3 with ESI support, enable this (default:false):
199 $wgUseESI = false;
200 # Internal server name as known to Squid, if different
201 # $wgInternalServer = 'http://yourinternal.tld:8000';
202 $wgInternalServer = $wgServer;
203 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
204 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
205 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
206 $wgSquidMaxage = 18000;
207 # A list of proxy servers (ips if possible) to purge on changes
208 # don't specify ports here (80 is default)
209 # $wgSquidServers = array('127.0.0.1');
210
211 # Set to set an explicit domain on the login cookies
212 # eg, "justthis.domain.org" or ".any.subdomain.net"
213 $wgCookieDomain = "";
214 $wgCookiePath = "/";
215 $wgDisableCookieCheck = false;
216
217 $wgAllowExternalImages = true;
218 $wgMiserMode = false; # Disable database-intensive features
219 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
220 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
221 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
222
223 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
224 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
225 # convert (ImageMagick) installed and available in the PATH.
226 # Please see math/README for more information.
227 $wgUseTeX = false;
228 $wgTexvc = "./math/texvc"; # Location of the texvc binary
229
230 # Support for inline hieroglyphs, see http://aoineko.free.fr/ The
231 # WikiHiero php files must be present in the same directory as the
232 # rest of the mediawiki code, and WikiHiero must have been configured
233 # with the correct image locations.
234 $wgUseWikiHiero = false;
235
236 # Support for inline timelines, see http://members.chello.nl/epzachte/Wikipedia/EasyTimeline/Introduction.htm
237 # The Timeline php files must be present in the extension directory and you must have the
238 # ploticus tool available, see http://ploticus.sourceforge.net/
239 $wgUseTimeline = false;
240
241 # Profiling / debugging
242 $wgProfiling = false; # Enable for more detailed by-function times in debug log
243 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
244 $wgProfileOnly = false; # Don't put non-profiling info into log file
245 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
246 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
247 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
248 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
249
250 $wgDisableCounters = false;
251 $wgDisableTextSearch = false;
252 $wgDisableFuzzySearch = false;
253 $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.
254 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
255 $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.
256 $wgDisableAnonTalk = false;
257
258 # We can serve pages compressed in order to save bandwidth,
259 # but this will increase CPU usage.
260 # Requires zlib support enabled in PHP.
261 $wgUseGzip = function_exists( "gzencode" );
262
263 # Path to the GNU diff3 utility. If the file doesn't exist,
264 # edit conflicts will fall back to the old behaviour (no merging).
265 $wgDiff3 = "/usr/bin/diff3";
266
267 # We can also compress text in the old revisions table. If this is set on,
268 # old revisions will be compressed on page save if zlib support is available.
269 # Any compressed revisions will be decompressed on load regardless of this
270 # setting *but will not be readable at all* if zlib support is not available.
271 $wgCompressRevisions = false;
272
273 # This is the list of preferred extensions for uploading files. Uploading
274 # files with extensions not in this list will trigger a warning.
275 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
276
277 # Files with these extensions will never be allowed as uploads.
278 $wgFileBlacklist = array(
279 # HTML may contain cookie-stealing JavaScript and web bugs
280 "html", "htm",
281 # PHP scripts may execute arbitrary code on the server
282 "php", "phtml", "php3", "php4", "phps",
283 # Other types that may be interpreted by some servers
284 "shtml", "jhtml", "pl", "py",
285 # May contain harmful executables for Windows victims
286 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
287
288 # This is a flag to determine whether or not to check file extensions on
289 # upload.
290 $wgCheckFileExtensions = true;
291
292 # If this is turned off, users may override the warning for files not
293 # covered by $wgFileExtensions.
294 $wgStrictFileExtensions = true;
295
296 $wgPasswordSalt = true; # For compatibility with old installations set to false
297
298 # Which namespaces should support subpages?
299 # See Language.php for a list of namespaces.
300 #
301 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
302 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
303
304 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
305 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
306
307 # If set, a bold ugly notice will show up at the top of every page.
308 $wgSiteNotice = "";
309
310 # Whether to allow anonymous users to set changes to 'minor'
311 $wgAllowAnonymousMinor = false;
312
313 ## Set $wgUseImageResize to true if you want to enable dynamic
314 ## server side image resizing ("Thumbnails")
315 #
316 $wgUseImageResize = false;
317
318 ## Resizing can be done using PHP's internal image libraries
319 ## or using ImageMagick. The later supports more file formats
320 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
321 ##
322 ## Set $wgUseImageMagick to true to use Image Magick instead
323 ## of the builtin functions
324 #
325 $wgUseImageMagick = false;
326 $wgImageMagickConvertCommand = "/usr/bin/convert";
327
328 # PHPTal is a library for page templates. MediaWiki includes
329 # a recent PHPTal distribution. It is required to use the
330 # Monobook (default) skin.
331 $wgUsePHPTal = true;
332
333 if( !isset( $wgCommandLineMode ) ) {
334 $wgCommandLineMode = false;
335 }
336
337 # Show seconds in Recent Changes
338 $wgRCSeconds = false;
339
340 # RDF metadata toggles
341 $wgEnableDublinCoreRdf = false;
342 $wgEnableCreativeCommonsRdf = false;
343
344 # Override for copyright metadata.
345 # TODO: these options need documentation
346 $wgRightsPage = NULL;
347 $wgRightsUrl = NULL;
348 $wgRightsText = NULL;
349 $wgRightsIcon = NULL;
350
351 # Set this to false to avoid forcing the first letter of links
352 # to capitals. WARNING: may break links! This makes links
353 # COMPLETELY case-sensitive. Links appearing with a capital at
354 # the beginning of a sentence will *not* go to the same place
355 # as links in the middle of a sentence using a lowercase initial.
356 $wgCapitalLinks = true;
357
358 # List of interwiki prefixes for wikis we'll accept as sources
359 # for Special:Import (for sysops). Since complete page history
360 # can be imported, these should be 'trusted'.
361 $wgImportSources = array();
362
363 # Set this to the number of authors that you want to be credited
364 # below an article text. Set it to zero to hide the attribution block.
365 # Note that this will require checking the table of old revisions,
366 # which can have a significant impact on performance for large wikis.
367 $wgMaxCredits = 0;
368
369 # Text matching this regular expression will be recognised as spam
370 # See http://en.wikipedia.org/wiki/Regular_expression
371 $wgSpamRegex = false;
372
373 # Go button goes straight to the edit screen if the article doesn't exist
374 $wgGoToEdit = false;
375
376 # Allow limited user-specified HTML in wiki pages?
377 # It will be run through a whitelist for security.
378 # Set this to false if you want wiki pages to consist only of wiki
379 # markup. Note that replacements do not yet exist for all HTML
380 # constructs.
381 $wgUserHtml = true;
382
383 # $wgUseTidy: use tidy to make sure HTML output is sane.
384 # This should only be enabled if $wgUserHtml is true.
385 # tidy is a free tool that fixes broken HTML.
386 # See http://www.w3.org/People/Raggett/tidy/
387 # $wgTidyBin should be set to the path of the binary and
388 # $wgTidyConf to the path of the configuration file.
389 # $wgTidyOpts can include any number of parameters.
390 $wgUseTidy = false;
391 $wgTidyBin = 'tidy';
392 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
393 $wgTidyOpts = '';
394
395 # See list of skins and their symbolic names in language/Language.php
396 $wgDefaultSkin = "monobook";
397
398 # Whether or not to allow real name fields. Defaults to true.
399
400 $wgAllowRealName = true;
401
402 # Extensions
403 $wgExtensionFunctions = array();
404 ?>