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