Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

DefaultSettings.php

Go to the documentation of this file.
00001 <?php 00002 # $Id: DefaultSettings.php,v 1.120 2004/06/15 15:00:54 timstarling Exp $ 00003 # DO NOT EDIT THIS FILE! 00004 # To customize your installation, edit "LocalSettings.php". 00005 # Note that since all these string interpolations are expanded 00006 # before LocalSettings is included, if you localize something 00007 # like $wgScriptPath, you must also localize everything that 00008 # depends on it. 00009 00010 $wgVersion = '1.3.0beta3'; 00011 00012 $wgSitename = 'MediaWiki'; # Please customize! 00013 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename 00014 00015 00016 # check if server use https: 00017 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; 00018 00019 if ( @$wgCommandLineMode ) { 00020 $wgServer = $wgProto.'://localhost'; 00021 } else { 00022 $wgServer = $wgProto.'://' . $_SERVER['SERVER_NAME']; 00023 if( $_SERVER['SERVER_PORT'] != 80 ) $wgServer .= ":" . $_SERVER['SERVER_PORT']; 00024 } 00025 unset($wgProto); 00026 00027 $wgScriptPath = '/wiki'; 00028 00029 # Whether to support URLs like index.php/Page_title 00030 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false ); 00031 00032 # ATTN: Old installations used wiki.phtml and redirect.phtml - 00033 # make sure that LocalSettings.php is correctly set! 00034 $wgScript = "{$wgScriptPath}/index.php"; 00035 $wgRedirectScript = "{$wgScriptPath}/redirect.php"; 00036 00037 $wgStylePath = "{$wgScriptPath}/style"; 00038 $wgStyleDirectory = "{$IP}/style"; 00039 $wgStyleSheetPath = &$wgStylePath; 00040 $wgStyleSheetDirectory = &$wgStyleDirectory; 00041 $wgArticlePath = "{$wgScript}?title=$1"; 00042 $wgUploadPath = "{$wgScriptPath}/upload"; 00043 $wgUploadDirectory = "{$IP}/upload"; 00044 $wgLogo = "{$wgUploadPath}/wiki.png"; 00045 $wgMathPath = "{$wgUploadPath}/math"; 00046 $wgMathDirectory = "{$wgUploadDirectory}/math"; 00047 $wgTmpDirectory = "{$wgUploadDirectory}/tmp"; 00048 $wgEmergencyContact = 'wikiadmin@' . getenv( 'SERVER_NAME' ); 00049 $wgPasswordSender = 'Wikipedia Mail <apache@' . getenv( 'SERVER_NAME' ) . '>'; 00050 00051 # For using a direct (authenticated) SMTP server connection. 00052 # "host" => 'SMTP domain', "IDHost" => 'domain for MessageID', "port" => "25", "auth" => true/false, "username" => user, "password" => password 00053 $wgSMTP = false; 00054 00055 # Database settings 00056 # 00057 $wgDBserver = 'localhost'; 00058 $wgDBname = 'wikidb'; 00059 $wgDBconnection = ''; 00060 $wgDBuser = 'wikiuser'; 00061 $wgDBtype = "mysql"; # "mysql" for working code and "pgsql" for development/broken code 00062 00063 # Database load balancer 00064 $wgDBservers = false; # e.g. array(0 => "larousse", 1 => "pliny") 00065 $wgDBloads = false; # e.g. array(0 => 0.6, 1 => 0.4); 00066 00067 # Sysop SQL queries 00068 $wgAllowSysopQueries = false; # Dangerous if not configured properly. 00069 $wgDBsqluser = 'sqluser'; 00070 $wgDBsqlpassword = 'sqlpass'; 00071 $wgDBpassword = 'userpass'; 00072 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6"; 00073 00074 $wgDBminWordLen = 4; 00075 $wgDBtransactions = false; # Set to true if using InnoDB tables 00076 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search 00077 $wgSqlTimeout = 30; 00078 00079 $wgBufferSQLResults = true; # use buffered queries by default 00080 00081 # Other wikis on this site, can be administered from a single developer account 00082 # Array, interwiki prefix => database name 00083 $wgLocalDatabases = array(); 00084 00085 # Database load balancer 00086 $wgDBservers = false; # e.g. array("larousse", "pliny") 00087 $wgDBloads = false; # e.g. array(0.6, 0.4); 00088 00089 # memcached settings 00090 # See docs/memcached.doc 00091 # 00092 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working 00093 $wgUseMemCached = false; 00094 $wgMemCachedServers = array( '127.0.0.1:11000' ); 00095 $wgMemCachedDebug = false; 00096 $wgSessionsInMemcached = false; 00097 $wgLinkCacheMemcached = false; # Not fully tested 00098 00099 # Language settings 00100 # 00101 $wgLanguageCode = 'en'; 00102 $wgLanguageFile = false; # Filename of a language file generated by dumpMessages.php 00103 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links 00104 $wgInputEncoding = 'ISO-8859-1'; # LanguageUtf8.php normally overrides this 00105 $wgOutputEncoding = 'ISO-8859-1'; # unless you set the next option to true: 00106 $wgUseLatin1 = false; # Enable ISO-8859-1 compatibility mode 00107 $wgEditEncoding = ''; 00108 $wgMimeType = 'text/html'; 00109 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN'; 00110 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'; 00111 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text 00112 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES 00113 $wgAmericanDates = false; # Enable for English module to print dates 00114 # as eg 'May 12' instead of '12 May' 00115 $wgLocalInterwiki = 'w'; 00116 $wgShowIPinHeader = true; # For non-logged in users 00117 $wgMaxNameChars = 32; # Maximum number of bytes in username 00118 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table 00119 00120 # Translation using MediaWiki: namespace 00121 # This will increase load times by 25-60% unless memcached is installed 00122 $wgUseDatabaseMessages = true; 00123 $wgMsgCacheExpiry = 86400; 00124 00125 $wgExtraSubtitle = ''; 00126 $wgSiteSupportPage = ''; 00127 00128 # Miscellaneous configuration settings 00129 # 00130 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR"; 00131 00132 # The debug log file should be not be publicly accessible if it is 00133 # used, as it may contain private data. 00134 $wgDebugLogFile = ''; 00135 $wgDebugRedirects = false; 00136 00137 $wgDebugComments = false; 00138 $wgReadOnly = false; 00139 $wgLogQueries = false; 00140 $wgDebugDumpSql = false; 00141 00142 # Whether to disable automatic generation of "we're sorry, 00143 # but there has been a database error" pages. 00144 $wgIgnoreSQLErrors = false; 00145 00146 # Should [[Category:Dog]] on a page associate it with the 00147 # category "Dog"? (a link to that category page will be 00148 # added to the article, clicking it reveals a list of 00149 # all articles in the category) 00150 $wgUseCategoryMagic = true; 00151 00152 # disable experimental dmoz-like category browsing. Output things like: 00153 # Encyclopedia > Music > Style of Music > Jazz 00154 # FIXME: need fixing 00155 $wgUseCategoryBrowser = false; 00156 00157 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x 00158 $wgCompressedPersistentLC = true; # use gzcompressed blobs 00159 00160 $wgEnableParserCache = false; # requires that php was compiled --with-zlib 00161 00162 # wgHitcounterUpdateFreq sets how often page counters should be 00163 # updated, higher values are easier on the database. A value of 1 00164 # causes the counters to be updated on every hit, any higher value n 00165 # cause them to update *on average* every n hits. Should be set to 00166 # either 1 or something largish, eg 1000, for maximum efficiency. 00167 00168 $wgHitcounterUpdateFreq = 1; 00169 00170 # User rights 00171 $wgWhitelistEdit = false; # true = user must login to edit. 00172 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help"); 00173 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 ); 00174 $wgSysopUserBans = false; # Allow sysops to ban logged-in users 00175 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges 00176 $wgDefaultBlockExpiry = '24 hours'; # default expiry time 00177 # strtotime format, or "infinite" for an infinite block 00178 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire 00179 $wgBlockOpenProxies = false; # Automatic open proxy test on edit 00180 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 ); 00181 $wgProxyScriptPath = "$IP/proxy_check.php"; 00182 $wgProxyMemcExpiry = 86400; 00183 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs'; 00184 00185 # Client-side caching: 00186 $wgCachePages = true; # Allow client-side caching of pages 00187 00188 # Set this to current time to invalidate all prior cached pages. 00189 # Affects both client- and server-side caching. 00190 $wgCacheEpoch = '20030516000000'; 00191 00192 # Server-side caching: 00193 # This will cache static pages for non-logged-in users 00194 # to reduce database traffic on public sites. 00195 # Must set $wgShowIPinHeader = false 00196 $wgUseFileCache = false; 00197 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache"; 00198 00199 $wgCookieExpiration = 2592000; 00200 00201 # Squid-related settings 00202 # 00203 # Enable/disable Squid 00204 $wgUseSquid = false; 00205 # If you run Squid3 with ESI support, enable this (default:false): 00206 $wgUseESI = false; 00207 # Internal server name as known to Squid, if different 00208 # $wgInternalServer = 'http://yourinternal.tld:8000'; 00209 $wgInternalServer = $wgServer; 00210 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or 00211 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config. 00212 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days 00213 $wgSquidMaxage = 18000; 00214 # A list of proxy servers (ips if possible) to purge on changes 00215 # don't specify ports here (80 is default) 00216 # $wgSquidServers = array('127.0.0.1'); 00217 00218 # Set to set an explicit domain on the login cookies 00219 # eg, "justthis.domain.org" or ".any.subdomain.net" 00220 $wgCookieDomain = ''; 00221 $wgCookiePath = '/'; 00222 $wgDisableCookieCheck = false; 00223 00224 $wgAllowExternalImages = true; 00225 $wgMiserMode = false; # Disable database-intensive features 00226 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some 00227 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so 00228 $wgWLCacheTimeout = 3600; # The hour or so mentioned above 00229 00230 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory 00231 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and 00232 # convert (ImageMagick) installed and available in the PATH. 00233 # Please see math/README for more information. 00234 $wgUseTeX = false; 00235 $wgTexvc = './math/texvc'; # Location of the texvc binary 00236 00237 # Profiling / debugging 00238 $wgProfiling = false; # Enable for more detailed by-function times in debug log 00239 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this 00240 $wgProfileOnly = false; # Don't put non-profiling info into log file 00241 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db. 00242 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on 00243 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls 00244 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut 00245 00246 $wgDisableCounters = false; 00247 $wgDisableTextSearch = false; 00248 $wgDisableFuzzySearch = false; 00249 $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. 00250 $wgDisableUploads = true; # Uploads have to be specially set up to be secure 00251 $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. 00252 $wgDisableAnonTalk = false; 00253 00254 # We can serve pages compressed in order to save bandwidth, 00255 # but this will increase CPU usage. 00256 # Requires zlib support enabled in PHP. 00257 $wgUseGzip = function_exists( 'gzencode' ); 00258 00259 # Path to the GNU diff3 utility. If the file doesn't exist, 00260 # edit conflicts will fall back to the old behaviour (no merging). 00261 $wgDiff3 = '/usr/bin/diff3'; 00262 00263 # We can also compress text in the old revisions table. If this is set on, 00264 # old revisions will be compressed on page save if zlib support is available. 00265 # Any compressed revisions will be decompressed on load regardless of this 00266 # setting *but will not be readable at all* if zlib support is not available. 00267 $wgCompressRevisions = false; 00268 00269 # This is the list of preferred extensions for uploading files. Uploading 00270 # files with extensions not in this list will trigger a warning. 00271 $wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg' ); 00272 00273 # Files with these extensions will never be allowed as uploads. 00274 $wgFileBlacklist = array( 00275 # HTML may contain cookie-stealing JavaScript and web bugs 00276 'html', 'htm', 00277 # PHP scripts may execute arbitrary code on the server 00278 'php', 'phtml', 'php3', 'php4', 'phps', 00279 # Other types that may be interpreted by some servers 00280 'shtml', 'jhtml', 'pl', 'py', 00281 # May contain harmful executables for Windows victims 00282 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ); 00283 00284 # This is a flag to determine whether or not to check file extensions on 00285 # upload. 00286 $wgCheckFileExtensions = true; 00287 00288 # If this is turned off, users may override the warning for files not 00289 # covered by $wgFileExtensions. 00290 $wgStrictFileExtensions = true; 00291 00292 # Warn if uploaded files are larger than this 00293 $wgUploadSizeWarning = 150000; 00294 00295 $wgPasswordSalt = true; # For compatibility with old installations set to false 00296 00297 # Which namespaces should support subpages? 00298 # See Language.php for a list of namespaces. 00299 # 00300 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1, 00301 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1); 00302 00303 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0, 00304 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 ); 00305 00306 # If set, a bold ugly notice will show up at the top of every page. 00307 $wgSiteNotice = ""; 00308 00309 # Whether to allow anonymous users to set changes to 'minor' 00310 $wgAllowAnonymousMinor = false; 00311 00312 ## Set $wgUseImageResize to true if you want to enable dynamic 00313 ## server side image resizing ("Thumbnails") 00314 # 00315 $wgUseImageResize = false; 00316 00317 ## Resizing can be done using PHP's internal image libraries 00318 ## or using ImageMagick. The later supports more file formats 00319 ## than PHP, which only supports PNG, GIF, JPG, XBM and WBMP. 00320 ## 00321 ## Set $wgUseImageMagick to true to use Image Magick instead 00322 ## of the builtin functions 00323 # 00324 $wgUseImageMagick = false; 00325 $wgImageMagickConvertCommand = '/usr/bin/convert'; 00326 00327 # PHPTal is a library for page templates. MediaWiki includes 00328 # a recent PHPTal distribution. It is required to use the 00329 # Monobook (default) skin. 00330 $wgUsePHPTal = true; 00331 00332 if( !isset( $wgCommandLineMode ) ) { 00333 $wgCommandLineMode = false; 00334 } 00335 00336 # Show seconds in Recent Changes 00337 $wgRCSeconds = false; 00338 00339 # Log IP addresses in the recentchanges table 00340 $wgPutIPinRC = false; 00341 00342 # RDF metadata toggles 00343 $wgEnableDublinCoreRdf = false; 00344 $wgEnableCreativeCommonsRdf = false; 00345 00346 # Override for copyright metadata. 00347 # TODO: these options need documentation 00348 $wgRightsPage = NULL; 00349 $wgRightsUrl = NULL; 00350 $wgRightsText = NULL; 00351 $wgRightsIcon = NULL; 00352 00353 # Set this to false to avoid forcing the first letter of links 00354 # to capitals. WARNING: may break links! This makes links 00355 # COMPLETELY case-sensitive. Links appearing with a capital at 00356 # the beginning of a sentence will *not* go to the same place 00357 # as links in the middle of a sentence using a lowercase initial. 00358 $wgCapitalLinks = true; 00359 00360 # List of interwiki prefixes for wikis we'll accept as sources 00361 # for Special:Import (for sysops). Since complete page history 00362 # can be imported, these should be 'trusted'. 00363 $wgImportSources = array(); 00364 00365 # Set this to the number of authors that you want to be credited 00366 # below an article text. Set it to zero to hide the attribution block. 00367 # Note that this will require checking the table of old revisions, 00368 # which can have a significant impact on performance for large wikis. 00369 $wgMaxCredits = 0; 00370 00371 # Text matching this regular expression will be recognised as spam 00372 # See http://en.wikipedia.org/wiki/Regular_expression 00373 $wgSpamRegex = false; 00374 00375 # Go button goes straight to the edit screen if the article doesn't exist 00376 $wgGoToEdit = false; 00377 00378 # Allow limited user-specified HTML in wiki pages? 00379 # It will be run through a whitelist for security. 00380 # Set this to false if you want wiki pages to consist only of wiki 00381 # markup. Note that replacements do not yet exist for all HTML 00382 # constructs. 00383 $wgUserHtml = true; 00384 00385 # $wgUseTidy: use tidy to make sure HTML output is sane. 00386 # This should only be enabled if $wgUserHtml is true. 00387 # tidy is a free tool that fixes broken HTML. 00388 # See http://www.w3.org/People/Raggett/tidy/ 00389 # $wgTidyBin should be set to the path of the binary and 00390 # $wgTidyConf to the path of the configuration file. 00391 # $wgTidyOpts can include any number of parameters. 00392 $wgUseTidy = false; 00393 $wgTidyBin = 'tidy'; 00394 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf'; 00395 $wgTidyOpts = ''; 00396 00397 # See list of skins and their symbolic names in language/Language.php 00398 $wgDefaultSkin = 'monobook'; 00399 00400 # Whether or not to allow real name fields. Defaults to true. 00401 $wgAllowRealName = true; 00402 00403 # Extensions 00404 $wgExtensionFunctions = array(); 00405 00406 ?>

Generated on Tue Jun 29 23:40:03 2004 for Mediawiki by doxygen 1.3.7