Commented side effect of changing '$wgUseDatabaseMessages'.
[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.2.0rc1";
10
11 $wgSitename = "MediaWiki"; # Please customize!
12 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
13
14 $wgServer = "http://" . getenv( "SERVER_NAME" );
15 $wgScriptPath = "/wiki";
16
17 # ATTN: Old installations used wiki.phtml and redirect.phtml -
18 # make sure that LocalSettings.php is correctly set!
19 $wgScript = "{$wgScriptPath}/index.php";
20 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
21
22 $wgStyleSheetPath = "{$wgScriptPath}/style";
23 $wgStyleSheetDirectory = "{$IP}/style";
24 $wgArticlePath = "{$wgScript}?title=$1";
25 $wgUploadPath = "{$wgScriptPath}/upload";
26 $wgUploadDirectory = "{$IP}/upload";
27 $wgLogo = "{$wgUploadPath}/wiki.png";
28 $wgMathPath = "{$wgUploadPath}/math";
29 $wgMathDirectory = "{$wgUploadDirectory}/math";
30 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
31 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
32 $wgPasswordSender = "Wikipedia Mail <apache@" . getenv( "SERVER_NAME" ) . ">";
33
34 # For using a direct (authenticated) SMTP server connection.
35 # "host" => 'SMTP domain', "IDHost" => 'domain for MessageID', "port" => "25", "auth" => true/false, "username" => user, "password" => password
36 $wgSMTP = false;
37
38 # MySQL settings
39 #
40 $wgDBserver = "localhost";
41 $wgDBname = "wikidb";
42 $wgDBconnection = "";
43 $wgDBuser = "wikiuser";
44 $wgDBpassword = "userpass";
45 $wgDBsqluser = "sqluser";
46 $wgDBsqlpassword = "sqlpass";
47 $wgDBminWordLen = 4;
48 $wgDBtransactions = false; # Set to true if using InnoDB tables
49 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
50 $wgSqlTimeout = 30;
51
52 # Database load balancer
53 $wgDBservers = false; # e.g. array("larousse", "pliny")
54 $wgDBloads = false; # e.g. array(0.6, 0.4);
55
56
57 # memcached settings
58 # See docs/memcached.doc
59 #
60 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
61 $wgUseMemCached = false;
62 $wgMemCachedServers = array( "127.0.0.1:11000" );
63 $wgMemCachedDebug = false;
64 $wgSessionsInMemcached = false;
65 $wgLinkCacheMemcached = false; # Not fully tested
66
67 # Language settings
68 #
69 $wgLanguageCode = "en";
70 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
71 $wgInputEncoding = "ISO-8859-1";
72 $wgOutputEncoding = "ISO-8859-1";
73 $wgEditEncoding = "";
74 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
75 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
76 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
77 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
78 $wgAmericanDates = false; # Enable for English module to print dates
79 # as eg 'May 12' instead of '12 May'
80 $wgLocalInterwiki = "w";
81 $wgShowIPinHeader = true; # For non-logged in users
82 $wgMaxNameChars = 32; # Maximum number of bytes in username
83
84 # Translation using MediaWiki: namespace
85 # This will increase load times by 25-60% unless memcached is installed
86 $wgUseDatabaseMessages = true; # Must be on to allow {{msg:...}} and {{subst:...} to work.
87 $wgMsgCacheExpiry = 86400;
88
89 $wgExtraSubtitle = "";
90 $wgSiteSupportPage = "";
91
92 # Miscellaneous configuration settings
93 #
94 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
95
96 # The debug log file should be not be publically accessible if it is
97 # used, as it may contain private data.
98 $wgDebugLogFile = "";
99
100 $wgDebugComments = false;
101 $wgReadOnly = false;
102 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
103 $wgLogQueries = false;
104 $wgUseCategoryMagic = false;
105 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
106 $wgCompressedPersistentLC = true; # use gzcompressed blobs
107
108 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
109
110 # wgHitcounterUpdateFreq sets how often page counters should be
111 # updated, higher values are easier on the database. A value of 1
112 # causes the counters to be updated on every hit, any higher value n
113 # cause them to update *on average* every n hits. Should be set to
114 # either 1 or something largish, eg 1000, for maximum efficiency.
115
116 $wgHitcounterUpdateFreq = 1;
117
118 # User rights
119 $wgWhitelistEdit = false;
120 $wgWhitelistRead = false;
121 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
122 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
123 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
124 $wgDefaultBlockExpiry = "24 hours"; # default expiry time
125 # strtotime format, or "infinite" for an infinite block
126 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
127
128 # Client-side caching:
129 $wgCachePages = true; # Allow client-side caching of pages
130
131 # Set this to current time to invalidate all prior cached pages.
132 # Affects both client- and server-side caching.
133 $wgCacheEpoch = "20030516000000";
134
135 # Server-side caching:
136 # This will cache static pages for non-logged-in users
137 # to reduce database traffic on public sites.
138 # Must set $wgShowIPinHeader = false
139 $wgUseFileCache = false;
140 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
141
142 $wgCookieExpiration = 2592000;
143
144 # Squid-related settings
145 #
146 # Enable/disable Squid
147 $wgUseSquid = false;
148 # If you run Squid3 with ESI support, enable this (default:false):
149 $wgUseESI = false;
150 # Internal server name as known to Squid, if different
151 # $wgInternalServer = 'http://yourinternal.tld:8000';
152 $wgInternalServer = $wgServer;
153 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
154 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
155 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
156 $wgSquidMaxage = 18000;
157 # A list of proxy servers (ips if possible) to purge on changes
158 # don't specify ports here (80 is default)
159 # $wgSquidServers = array('127.0.0.1');
160
161 # Set to set an explicit domain on the login cookies
162 # eg, "justthis.domain.org" or ".any.subdomain.net"
163 $wgCookieDomain = "";
164 $wgCookiePath = "/";
165 $wgDisableCookieCheck = false;
166
167 $wgAllowExternalImages = true;
168 $wgMiserMode = false; # Disable database-intensive features
169 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
170 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
171 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
172
173 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
174 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
175 # convert (ImageMagick) installed and available in the PATH.
176 # Please see math/README for more information.
177 $wgUseTeX = false;
178 $wgTexvc = "./math/texvc"; # Location of the texvc binary
179
180 # Profiling / debugging
181 $wgProfiling = false; # Enable for more detailed by-function times in debug log
182 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
183 $wgProfileOnly = false; # Don't put non-profiling info into log file
184 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
185 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
186 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
187 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
188
189 $wgDisableCounters = false;
190 $wgDisableTextSearch = false;
191 $wgDisableFuzzySearch = false;
192 $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.
193 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
194 $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.
195 $wgDisableAnonTalk = false;
196
197 # We can serve pages compressed in order to save bandwidth,
198 # but this will increase CPU usage.
199 # Requires zlib support enabled in PHP.
200 $wgUseGzip = function_exists( "gzencode" );
201
202 # We can also compress text in the old revisions table. If this is set on,
203 # old revisions will be compressed on page save if zlib support is available.
204 # Any compressed revisions will be decompressed on load regardless of this
205 # setting *but will not be readable at all* if zlib support is not available.
206 $wgCompressRevisions = false;
207
208 # This is the list of preferred extensions for uploading files. Uploading
209 # files with extensions not in this list will trigger a warning.
210
211 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
212
213 # Files with these extensions will never be allowed as uploads.
214 $wgFileBlacklist = array(
215 # HTML may contain cookie-stealing JavaScript and web bugs
216 "html", "htm",
217 # PHP scripts may execute arbitrary code on the server
218 "php", "phtml", "php3", "php4", "phps",
219 # Other types that may be interpreted by some servers
220 "shtml", "jhtml", "pl", "py",
221 # May contain harmful executables for Windows victims
222 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
223
224 # This is a flag to determine whether or not to check file extensions on
225 # upload.
226 $wgCheckFileExtensions = true;
227
228 # If this is turned off, users may override the warning for files not
229 # covered by $wgFileExtensions.
230 $wgStrictFileExtensions = true;
231
232 $wgPasswordSalt = true; # For compatibility with old installations set to false
233
234 # Which namespaces should support subpages?
235 # See Language.php for a list of namespaces.
236 #
237 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
238 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1 );
239
240 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
241 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
242
243 # If set, a bold ugly notice will show up at the top of every page.
244 $wgSiteNotice = "";
245
246 # Whether to allow anonymous users to set changes to 'minor'
247
248 $wgAllowAnonymousMinor = false;
249 ?>