Forgot to add this file.
[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 if ( @$wgCommandLineMode ) {
15 $wgServer = "http://localhost";
16 } else {
17 $wgServer = "http://" . $_SERVER["SERVER_NAME"];
18 if( $_SERVER["SERVER_PORT"] != 80 ) $wgServer .= ":" . $_SERVER["SERVER_PORT"];
19 }
20
21 $wgScriptPath = "/wiki";
22
23 # ATTN: Old installations used wiki.phtml and redirect.phtml -
24 # Whether to support URLs like index.php/Page_title
25 $wgUsePathInfo = ( strpos( php_sapi_name(), "cgi" ) === false );
26
27 # make sure that LocalSettings.php is correctly set!
28 $wgScript = "{$wgScriptPath}/index.php";
29 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
30
31 $wgStyleSheetPath = "{$wgScriptPath}/style";
32 $wgStyleSheetDirectory = "{$IP}/style";
33 $wgArticlePath = "{$wgScript}?title=$1";
34 $wgUploadPath = "{$wgScriptPath}/upload";
35 $wgUploadDirectory = "{$IP}/upload";
36 $wgLogo = "{$wgUploadPath}/wiki.png";
37 $wgMathPath = "{$wgUploadPath}/math";
38 $wgMathDirectory = "{$wgUploadDirectory}/math";
39 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
40 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
41 $wgPasswordSender = "Wikipedia Mail <apache@" . getenv( "SERVER_NAME" ) . ">";
42
43 # For using a direct (authenticated) SMTP server connection.
44 # "host" => 'SMTP domain', "IDHost" => 'domain for MessageID', "port" => "25", "auth" => true/false, "username" => user, "password" => password
45 $wgSMTP = false;
46
47 # MySQL settings
48 #
49 $wgDBserver = "localhost";
50 $wgDBname = "wikidb";
51 $wgDBconnection = "";
52 $wgDBuser = "wikiuser";
53
54 # Sysop SQL queries
55 $wgAllowSysopQueries = false; # Dangerous if not configured properly.
56 $wgDBsqluser = "sqluser";
57 $wgDBsqlpassword = "sqlpass";
58 $wgDBpassword = "userpass";
59 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
60
61 $wgDBminWordLen = 4;
62 $wgDBtransactions = false; # Set to true if using InnoDB tables
63 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
64 $wgSqlTimeout = 30;
65
66 # Other wikis on this site, can be administered from a single developer account
67 # Array, interwiki prefix => database name
68 $wgLocalDatabases = array();
69
70 # Database load balancer
71 $wgDBservers = false; # e.g. array("larousse", "pliny")
72 $wgDBloads = false; # e.g. array(0.6, 0.4);
73
74
75 # memcached settings
76 # See docs/memcached.doc
77 #
78 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
79 $wgUseMemCached = false;
80 $wgMemCachedServers = array( "127.0.0.1:11000" );
81 $wgMemCachedDebug = false;
82 $wgSessionsInMemcached = false;
83 $wgLinkCacheMemcached = false; # Not fully tested
84
85 # Language settings
86 #
87 $wgLanguageCode = "en";
88 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php
89 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
90 $wgInputEncoding = "ISO-8859-1";
91 $wgOutputEncoding = "ISO-8859-1";
92 $wgEditEncoding = "";
93 $wgMimeType = "text/html";
94 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
95 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
96 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
97 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
98 $wgAmericanDates = false; # Enable for English module to print dates
99 # as eg 'May 12' instead of '12 May'
100 $wgLocalInterwiki = "w";
101 $wgShowIPinHeader = true; # For non-logged in users
102 $wgMaxNameChars = 32; # Maximum number of bytes in username
103
104 # Translation using MediaWiki: namespace
105 # This will increase load times by 25-60% unless memcached is installed
106 $wgUseDatabaseMessages = true;
107 $wgMsgCacheExpiry = 86400;
108
109 $wgExtraSubtitle = "";
110 $wgSiteSupportPage = "";
111
112 # Miscellaneous configuration settings
113 #
114 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
115
116 # The debug log file should be not be publically accessible if it is
117 # used, as it may contain private data.
118 $wgDebugLogFile = "";
119 $wgDebugRedirects = false;
120
121 $wgDebugComments = false;
122 $wgReadOnly = false;
123 $wgLogQueries = false;
124 $wgDebugDumpSql = false;
125
126 $wgUseCategoryMagic = false;
127 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
128 $wgCompressedPersistentLC = true; # use gzcompressed blobs
129
130 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
131
132 # wgHitcounterUpdateFreq sets how often page counters should be
133 # updated, higher values are easier on the database. A value of 1
134 # causes the counters to be updated on every hit, any higher value n
135 # cause them to update *on average* every n hits. Should be set to
136 # either 1 or something largish, eg 1000, for maximum efficiency.
137
138 $wgHitcounterUpdateFreq = 1;
139
140 # User rights
141 $wgWhitelistEdit = false; # true = user must login to edit.
142 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
143 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
144 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
145 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
146 $wgDefaultBlockExpiry = "24 hours"; # default expiry time
147 # strtotime format, or "infinite" for an infinite block
148 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
149 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
150 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
151 $wgProxyScriptPath = "$IP/proxy_check.php";
152 $wgProxyMemcExpiry = 86400;
153
154 # Client-side caching:
155 $wgCachePages = true; # Allow client-side caching of pages
156
157 # Set this to current time to invalidate all prior cached pages.
158 # Affects both client- and server-side caching.
159 $wgCacheEpoch = "20030516000000";
160
161 # Server-side caching:
162 # This will cache static pages for non-logged-in users
163 # to reduce database traffic on public sites.
164 # Must set $wgShowIPinHeader = false
165 $wgUseFileCache = false;
166 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
167
168 $wgCookieExpiration = 2592000;
169
170 # Squid-related settings
171 #
172 # Enable/disable Squid
173 $wgUseSquid = false;
174 # If you run Squid3 with ESI support, enable this (default:false):
175 $wgUseESI = false;
176 # Internal server name as known to Squid, if different
177 # $wgInternalServer = 'http://yourinternal.tld:8000';
178 $wgInternalServer = $wgServer;
179 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
180 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
181 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
182 $wgSquidMaxage = 18000;
183 # A list of proxy servers (ips if possible) to purge on changes
184 # don't specify ports here (80 is default)
185 # $wgSquidServers = array('127.0.0.1');
186
187 # Set to set an explicit domain on the login cookies
188 # eg, "justthis.domain.org" or ".any.subdomain.net"
189 $wgCookieDomain = "";
190 $wgCookiePath = "/";
191 $wgDisableCookieCheck = false;
192
193 $wgAllowExternalImages = true;
194 $wgMiserMode = false; # Disable database-intensive features
195 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
196 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
197 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
198
199 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
200 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
201 # convert (ImageMagick) installed and available in the PATH.
202 # Please see math/README for more information.
203 $wgUseTeX = false;
204 $wgTexvc = "./math/texvc"; # Location of the texvc binary
205
206 # Support for inline hieroglyphs, see http://aoineko.free.fr/ The
207 # WikiHiero php files must be present in the same directory as the
208 # rest of the mediawiki code, and WikiHiero must have been configured
209 # with the correct image locations.
210 $wgUseWikiHiero = false;
211
212 # Profiling / debugging
213 $wgProfiling = false; # Enable for more detailed by-function times in debug log
214 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
215 $wgProfileOnly = false; # Don't put non-profiling info into log file
216 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
217 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
218 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
219 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
220
221 $wgDisableCounters = false;
222 $wgDisableTextSearch = false;
223 $wgDisableFuzzySearch = false;
224 $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.
225 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
226 $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.
227 $wgDisableAnonTalk = false;
228
229 # We can serve pages compressed in order to save bandwidth,
230 # but this will increase CPU usage.
231 # Requires zlib support enabled in PHP.
232 $wgUseGzip = function_exists( "gzencode" );
233
234 # Path to the GNU diff3 utility. If the file doesn't exist,
235 # edit conflicts will fall back to the old behaviour (no merging).
236 $wgDiff3 = "/usr/bin/diff3";
237
238 # We can also compress text in the old revisions table. If this is set on,
239 # old revisions will be compressed on page save if zlib support is available.
240 # Any compressed revisions will be decompressed on load regardless of this
241 # setting *but will not be readable at all* if zlib support is not available.
242 $wgCompressRevisions = false;
243
244 # This is the list of preferred extensions for uploading files. Uploading
245 # files with extensions not in this list will trigger a warning.
246
247 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
248
249 # Files with these extensions will never be allowed as uploads.
250 $wgFileBlacklist = array(
251 # HTML may contain cookie-stealing JavaScript and web bugs
252 "html", "htm",
253 # PHP scripts may execute arbitrary code on the server
254 "php", "phtml", "php3", "php4", "phps",
255 # Other types that may be interpreted by some servers
256 "shtml", "jhtml", "pl", "py",
257 # May contain harmful executables for Windows victims
258 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
259
260 # This is a flag to determine whether or not to check file extensions on
261 # upload.
262 $wgCheckFileExtensions = true;
263
264 # If this is turned off, users may override the warning for files not
265 # covered by $wgFileExtensions.
266 $wgStrictFileExtensions = true;
267
268 $wgPasswordSalt = true; # For compatibility with old installations set to false
269
270 # Which namespaces should support subpages?
271 # See Language.php for a list of namespaces.
272 #
273 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
274 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
275
276 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
277 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
278
279 # If set, a bold ugly notice will show up at the top of every page.
280 $wgSiteNotice = "";
281
282 # Whether to allow anonymous users to set changes to 'minor'
283
284 $wgAllowAnonymousMinor = false;
285
286 # Enable experimental smarty skins (put Smarty/libs in your include_path!)
287 $wgUseSmarty = false;
288 $wgUsePHPTal = false;
289
290 if( !isset( $wgCommandLineMode ) ) {
291 $wgCommandLineMode = false;
292 }
293
294 # Show seconds in Recent Changes
295 $wgRCSeconds = false;
296
297
298 # RDF metadata toggles
299
300 $wgEnableDublinCoreRdf = false;
301 $wgEnableCreativeCommonsRdf = false;
302
303 # Override for copyright metadata.
304
305 $wgRightsPage = NULL;
306 $wgRightsUrl = NULL;
307 $wgRightsText = NULL;
308
309 # Set this to false to avoid forcing the first letter of links
310 # to capitals. WARNING: may break links! This makes links
311 # COMPLETELY case-sensitive. Links appearing with a capital at
312 # the beginning of a sentence will *not* go to the same place
313 # as links in the middle of a sentence using a lowercase initial.
314 $wgCapitalLinks = true;
315
316 ?>