Add $wgRemoteUploads option to show the upload _link_ even though it's
[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 $wgSitename = "Wikipedia";
10 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
11
12 $wgServer = "http://" . getenv( "SERVER_NAME" );
13 $wgScriptPath = "/wiki";
14 $wgScript = "{$wgScriptPath}/wiki.phtml";
15 $wgRedirectScript = "{$wgScriptPath}/redirect.phtml";
16 $wgStyleSheetPath = "{$wgScriptPath}/style";
17 $wgStyleSheetDirectory = "{$IP}/style";
18 $wgArticlePath = "{$wgScript}?title=$1";
19 $wgUploadPath = "{$wgScriptPath}/upload";
20 $wgUploadDirectory = "{$IP}/upload";
21 $wgLogo = "{$wgUploadPath}/wiki.png";
22 $wgMathPath = "{$wgUploadPath}/math";
23 $wgMathDirectory = "{$wgUploadDirectory}/math";
24 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
25 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
26 #$wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>";
27 $wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>\r\nReply-To: webmaster@www.wikipedia.org";
28
29 # MySQL settings
30 #
31 $wgDBserver = "localhost";
32 $wgDBname = "wikidb";
33 $wgDBconnection = "";
34 $wgDBuser = "wikiuser";
35 $wgDBpassword = "userpass";
36 $wgDBsqluser = "sqluser";
37 $wgDBsqlpassword = "sqlpass";
38 $wgDBminWordLen = 4;
39 $wgDBtransactions = false; # Set to true if using InnoDB tables
40 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
41
42 # memcached settings
43 # See docs/memcached.doc
44 #
45 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
46 $wgUseMemCached = false;
47 $wgMemCachedServers = array( "127.0.0.1:11000" );
48 $wgMemCachedDebug = false;
49 $wgSessionsInMemcached = false;
50 $wgLinkCacheMemcached = false; # Not fully tested
51
52 # Language settings
53 #
54 $wgLanguageCode = "en";
55 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
56 $wgInputEncoding = "ISO-8859-1";
57 $wgOutputEncoding = "ISO-8859-1";
58 $wgEditEncoding = "";
59 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
60 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
61 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
62 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
63 $wgAmericanDates = false; # Enable for English module to print dates
64 # as eg 'May 12' instead of '12 May'
65 $wgLocalInterwiki = "w";
66 $wgShowIPinHeader = true; # For non-logged in users
67
68 # Translation using MediaWiki: namespace
69 # Not recommended unless memcached is installed
70 $wgUseDatabaseMessages = false;
71 $wgMsgCacheExpiry = 86400;
72
73 $wgExtraSubtitle = "";
74 $wgSiteSupportPage = "";
75
76 # Miscellaneous configuration settings
77 #
78 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
79
80 # The debug log file should be not be publically accessible if it is
81 # used, as it may contain private data.
82 $wgDebugLogFile = "";
83
84 $wgDebugComments = false;
85 $wgReadOnly = false;
86 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
87 $wgLogQueries = false;
88 $wgUseCategoryMagic = false;
89 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
90 $wgCompressedPersistentLC = true; # use gzcompressed blobs
91
92 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
93
94 # User rights
95 $wgWhitelistEdit = false;
96 $wgWhitelistRead = false;
97 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
98 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
99 $wgIPBlockExpiration = 86400; # IP blocks expire after this many seconds, 0=infinite
100 $wgUserBlockExpiration = 0; # As above, but for logged-in users
101
102 # User agent/range blocking
103 # Blocks all users using a particular user agent, possibly restricted to a
104 # set of IP ranges. Note: you can't block all user agents by leaving
105 # $wgBadUserAgents blank. That would block nothing.
106 $wgBadRanges = false; # e.g. array(array("1.2.3.0", "1.2.3.255"))
107 $wgBadUserAgents = false; # e.g. array("OfflineExplorer/1.0")
108 $wgRangeBlockUser = 0; # The block is attributed to this user ID
109 $wgRangeBlockReason = ""; # This reason is given (should be in wfMsg, obviously)
110
111 # Client-side caching:
112 $wgCachePages = true; # Allow client-side caching of pages
113
114 # Set this to current time to invalidate all prior cached pages.
115 # Affects both client- and server-side caching.
116 $wgCacheEpoch = "20030516000000";
117
118 # Server-side caching:
119 # This will cache static pages for non-logged-in users
120 # to reduce database traffic on public sites.
121 # Must set $wgShowIPinHeader = false
122 $wgUseFileCache = false;
123 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
124
125 $wgCookieExpiration = 2592000;
126
127 # Set to set an explicit domain on the login cookies
128 # eg, "justthis.domain.org" or ".any.subdomain.net"
129 $wgCookieDomain = "";
130 $wgCookiePath = "/";
131 $wgDisableCookieCheck = false;
132
133 $wgAllowExternalImages = true;
134 $wgMiserMode = false; # Disable database-intensive features
135
136 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
137 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
138 # convert (ImageMagick) installed and available in the PATH.
139 # Please see math/README for more information.
140 $wgUseTeX = false;
141 $wgTexvc = "./math/texvc"; # Location of the texvc binary
142
143 # Profiling / debugging
144 $wgProfiling = false; # Enable for more detailed by-function times in debug log
145 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
146 $wgProfileOnly = false; # Don't put non-profiling info into log file
147 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
148 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
149 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
150 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
151
152 $wgDisableCounters = false;
153 $wgDisableTextSearch = false;
154 $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.
155 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
156 $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.
157 $wgDisableAnonTalk = false;
158
159 # We can serve pages compressed in order to save bandwidth,
160 # but this will increase CPU usage.
161 # Requires zlib support enabled in PHP.
162 $wgUseGzip = function_exists( "gzencode" );
163
164 # We can also compress text in the old revisions table. If this is set on,
165 # old revisions will be compressed on page save if zlib support is available.
166 # Any compressed revisions will be decompressed on load regardless of this
167 # setting *but will not be readable at all* if zlib support is not available.
168 $wgCompressRevisions = false;
169
170 # This is the list of preferred extensions for uploading files. Uploading
171 # files with extensions not in this list will trigger a warning.
172
173 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
174
175 # This is a flag to determine whether or not to check file extensions on
176 # upload.
177
178 $wgCheckFileExtensions = true;
179
180 $wgPasswordSalt = true; # For compatibility with old installations set to false
181
182 # Which namespaces should support subpages?
183 # See Language.php for a list of namespaces.
184 #
185 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
186 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1 );
187
188 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
189 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
190
191 # If set, a bold ugly notice will show up at the top of every page.
192 $wgSiteNotice = "";
193
194 ?>