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