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