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