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