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