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