cb7123f6ffe76184e3210fcd55b1388fdf7bd6a3
[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 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
94 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
95 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
96 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
97 $wgAmericanDates = false; # Enable for English module to print dates
98 # as eg 'May 12' instead of '12 May'
99 $wgLocalInterwiki = "w";
100 $wgShowIPinHeader = true; # For non-logged in users
101 $wgMaxNameChars = 32; # Maximum number of bytes in username
102
103 # Translation using MediaWiki: namespace
104 # This will increase load times by 25-60% unless memcached is installed
105 $wgUseDatabaseMessages = true;
106 $wgMsgCacheExpiry = 86400;
107
108 $wgExtraSubtitle = "";
109 $wgSiteSupportPage = "";
110
111 # Miscellaneous configuration settings
112 #
113 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
114
115 # The debug log file should be not be publically accessible if it is
116 # used, as it may contain private data.
117 $wgDebugLogFile = "";
118 $wgDebugRedirects = false;
119
120 $wgDebugComments = false;
121 $wgReadOnly = false;
122 $wgLogQueries = false;
123 $wgDebugDumpSql = false;
124
125 $wgUseCategoryMagic = false;
126 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
127 $wgCompressedPersistentLC = true; # use gzcompressed blobs
128
129 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
130
131 # wgHitcounterUpdateFreq sets how often page counters should be
132 # updated, higher values are easier on the database. A value of 1
133 # causes the counters to be updated on every hit, any higher value n
134 # cause them to update *on average* every n hits. Should be set to
135 # either 1 or something largish, eg 1000, for maximum efficiency.
136
137 $wgHitcounterUpdateFreq = 1;
138
139 # User rights
140 $wgWhitelistEdit = false; # true = user must login to edit.
141 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
142 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
143 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
144 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
145 $wgDefaultBlockExpiry = "24 hours"; # default expiry time
146 # strtotime format, or "infinite" for an infinite block
147 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
148 $wgBlockOpenProxies = false; # Automatic open proxy test on edit
149 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
150 $wgProxyScriptPath = "$IP/proxy_check.php";
151 $wgProxyMemcExpiry = 86400;
152
153 # Client-side caching:
154 $wgCachePages = true; # Allow client-side caching of pages
155
156 # Set this to current time to invalidate all prior cached pages.
157 # Affects both client- and server-side caching.
158 $wgCacheEpoch = "20030516000000";
159
160 # Server-side caching:
161 # This will cache static pages for non-logged-in users
162 # to reduce database traffic on public sites.
163 # Must set $wgShowIPinHeader = false
164 $wgUseFileCache = false;
165 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
166
167 $wgCookieExpiration = 2592000;
168
169 # Squid-related settings
170 #
171 # Enable/disable Squid
172 $wgUseSquid = false;
173 # If you run Squid3 with ESI support, enable this (default:false):
174 $wgUseESI = false;
175 # Internal server name as known to Squid, if different
176 # $wgInternalServer = 'http://yourinternal.tld:8000';
177 $wgInternalServer = $wgServer;
178 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
179 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
180 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
181 $wgSquidMaxage = 18000;
182 # A list of proxy servers (ips if possible) to purge on changes
183 # don't specify ports here (80 is default)
184 # $wgSquidServers = array('127.0.0.1');
185
186 # Set to set an explicit domain on the login cookies
187 # eg, "justthis.domain.org" or ".any.subdomain.net"
188 $wgCookieDomain = "";
189 $wgCookiePath = "/";
190 $wgDisableCookieCheck = false;
191
192 $wgAllowExternalImages = true;
193 $wgMiserMode = false; # Disable database-intensive features
194 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
195 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
196 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
197
198 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
199 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
200 # convert (ImageMagick) installed and available in the PATH.
201 # Please see math/README for more information.
202 $wgUseTeX = false;
203 $wgTexvc = "./math/texvc"; # Location of the texvc binary
204
205 # Support for inline hieroglyphs, see http://aoineko.free.fr/ The
206 # WikiHiero php files must be present in the same directory as the
207 # rest of the mediawiki code, and WikiHiero must have been configured
208 # with the correct image locations.
209 $wgUseWikiHiero = false;
210
211 # Profiling / debugging
212 $wgProfiling = false; # Enable for more detailed by-function times in debug log
213 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
214 $wgProfileOnly = false; # Don't put non-profiling info into log file
215 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
216 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
217 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
218 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
219
220 $wgDisableCounters = false;
221 $wgDisableTextSearch = false;
222 $wgDisableFuzzySearch = false;
223 $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.
224 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
225 $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.
226 $wgDisableAnonTalk = false;
227
228 # We can serve pages compressed in order to save bandwidth,
229 # but this will increase CPU usage.
230 # Requires zlib support enabled in PHP.
231 $wgUseGzip = function_exists( "gzencode" );
232
233 # Path to the GNU diff3 utility. If the file doesn't exist,
234 # edit conflicts will fall back to the old behaviour (no merging).
235 $wgDiff3 = "/usr/bin/diff3";
236
237 # We can also compress text in the old revisions table. If this is set on,
238 # old revisions will be compressed on page save if zlib support is available.
239 # Any compressed revisions will be decompressed on load regardless of this
240 # setting *but will not be readable at all* if zlib support is not available.
241 $wgCompressRevisions = false;
242
243 # This is the list of preferred extensions for uploading files. Uploading
244 # files with extensions not in this list will trigger a warning.
245
246 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
247
248 # Files with these extensions will never be allowed as uploads.
249 $wgFileBlacklist = array(
250 # HTML may contain cookie-stealing JavaScript and web bugs
251 "html", "htm",
252 # PHP scripts may execute arbitrary code on the server
253 "php", "phtml", "php3", "php4", "phps",
254 # Other types that may be interpreted by some servers
255 "shtml", "jhtml", "pl", "py",
256 # May contain harmful executables for Windows victims
257 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
258
259 # This is a flag to determine whether or not to check file extensions on
260 # upload.
261 $wgCheckFileExtensions = true;
262
263 # If this is turned off, users may override the warning for files not
264 # covered by $wgFileExtensions.
265 $wgStrictFileExtensions = true;
266
267 $wgPasswordSalt = true; # For compatibility with old installations set to false
268
269 # Which namespaces should support subpages?
270 # See Language.php for a list of namespaces.
271 #
272 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
273 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
274
275 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
276 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
277
278 # If set, a bold ugly notice will show up at the top of every page.
279 $wgSiteNotice = "";
280
281 # Whether to allow anonymous users to set changes to 'minor'
282
283 $wgAllowAnonymousMinor = false;
284
285 # Enable experimental smarty skins (put Smarty/libs in your include_path!)
286 $wgUseSmarty = false;
287 $wgUsePHPTal = false;
288
289 if( !isset( $wgCommandLineMode ) ) {
290 $wgCommandLineMode = false;
291 }
292
293 ?>