<?php # This file was automatically generated by the MediaWiki 1.26.1 # installer. If you make manual changes, please keep track in case you # need to recreate them later. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # # Further documentation for configuration settings may be found at: # https://www.mediawiki.org/wiki/Manual:Configuration_settings # Protect against web entry if ( !defined( 'MEDIAWIKI' ) ) { exit; } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgSitename = "xxx"; $wgMetaNamespace = "xxx"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs ## (like /w/index.php/Page_title to /wiki/Page_title) please see: ## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/mediawiki-1.26.1"; ## The protocol and server name to use in fully-qualified URLs $wgServer = "http://192.168.1.xxx:xxx"; ## The URL path to static resources (images, scripts, etc.) $wgResourceBasePath = $wgScriptPath; ## The URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogo = "$wgResourceBasePath/resources/assets/logo.png"; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "[email protected]"; $wgPasswordSender = "[email protected]"; $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; $wgDBserver = "127.0.0.1"; $wgDBname = "xxx_wiki"; $wgDBuser = "root"; $wgDBpassword = "123456"; # MySQL specific settings $wgDBprefix = "tb_"; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8"; # Experimental charset support for MySQL 5.0. $wgDBmysql5 = false; ## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMemCachedServers = array(); ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; #$wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert"; # InstantCommons allows wiki to use images from https://commons.wikimedia.org $wgUseInstantCommons = true; ## If you use ImageMagick (or any other shell command) on a ## Linux server, this will need to be set to the name of an ## available UTF-8 locale $wgShellLocale = "en_US.utf8"; ## If you want to use image uploads under safe mode, ## create the directories images/archive, images/thumb and ## images/temp, and make them all writable. Then uncomment ## this, if it's not already uncommented: #$wgHashedUploadDirectory = false; ## Set $wgCacheDirectory to a writable directory on the web server ## to make your wiki go slightly faster. The directory should not ## be publically accessible from the web. #$wgCacheDirectory = "$IP/cache"; # Site language code, should be one of the list in ./languages/Names.php $wgLanguageCode = "zh-cn"; $wgSecretKey = "50f8cda23bf96ff92fadd098ff80771a18c326e2caca61ff552be3642fb40b0f"; # Site upgrade key. Must be set to a string (default provided) to turn on the # web installer while LocalSettings.php is in place $wgUpgradeKey = "42eaf09456eea791"; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = "https://creativecommons.org/publicdomain/zero/1.0/"; $wgRightsText = "知识共享Zero(公有领域)"; $wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-0.png"; # Path to the GNU diff3 utility. Used for conflict resolution. $wgDiff3 = ""; # The following permissions were set based on your choice in the installer $wgGroupPermissions['*']['edit'] = false; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': $wgDefaultSkin = "MonoBook"; # Enabled skins. # The following skins were automatically enabled: wfLoadSkin( 'CologneBlue' ); wfLoadSkin( 'Modern' ); wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Vector' ); # Enabled Extensions. Most extensions are enabled by including the base extension file here # but check specific extension documentation for more details # The following extensions were automatically enabled: wfLoadExtension( 'Cite' ); wfLoadExtension( 'CiteThisPage' ); wfLoadExtension( 'ConfirmEdit' ); wfLoadExtension( 'Gadgets' ); wfLoadExtension( 'ImageMap' ); wfLoadExtension( 'InputBox' ); wfLoadExtension( 'Interwiki' ); wfLoadExtension( 'LocalisationUpdate' ); wfLoadExtension( 'Nuke' ); wfLoadExtension( 'ParserFunctions' ); wfLoadExtension( 'PdfHandler' ); wfLoadExtension( 'Poem' ); wfLoadExtension( 'Renameuser' ); wfLoadExtension( 'SpamBlacklist' ); wfLoadExtension( 'SyntaxHighlight_GeSHi' ); wfLoadExtension( 'TitleBlacklist' ); wfLoadExtension( 'WikiEditor' ); # End of automatically generated settings. # Add more configuration options below. #打开新的页面 $wgExternalLinkTarget = '_blank'; #对于没有登录的用户,没有登录的用户移除页面顶部的讨论页链接 $wgShowIPinHeader = false; #修改时间 $wgLocaltimezone="Asia/Shanghai"; #$wgLocaltimezone="PRC"; putenv("TZ=$wgLocaltimezone"); $wgLocalTZoffset=date("Z")/60; #http://www.cnblogs.com/WonKerr/archive/2011/05/02/mediawiki.html $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = true; $wgScript = "$wgScriptPath/index.php"; $wgArticlePath = '/wiki/$1'; $wgUsePathInfo = true; #启用详细异常显示. $wgShowExceptionDetails = true; require_once("$IP/extensions/WikiEditor/WikiEditor.php"); require_once("$IP/extensions/MsUpload/MsUpload.php"); require_once("$IP/extensions/Vector/Vector.php" ); require_once("$IP/extensions/SelectCategory/SelectCategory.php"); require_once("$IP/extensions/UploadLocal/UploadLocal.php"); require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"); $wgSyntaxHighlightDefaultLang = "java"; # Enables use of WikiEditor by default but still allows users to disable it in preferences $wgDefaultUserOptions['usebetatoolbar'] = 1; # Enables link and table wizards by default but still allows users to disable them in preferences $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; # Displays the Preview and Changes tabs $wgDefaultUserOptions['wikieditor-preview'] = 1; # Displays the Publish and Cancel buttons on the top right side $wgDefaultUserOptions['wikieditor-publish'] = 1; $wgMSU_showAutoCat = true; // If true, files uploaded while editing a category will be added to that category $wgMSU_checkAutoCat = true; // Whether the checkbox for the above mentioned case is checked by default $wgMSU_imgParams = '400px'; // The default parameters for inserted images $wgMSU_useDragDrop = true; // Should the drag & drop area be shown? $wgMSU_useMsLinks = false; // Should we allow to insert links in the style of the Extension:MsLinks? $wgEnableWriteAPI = true; // Enable the API $wgEnableUploads = true; // Enable uploads $wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.) $wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files // Make sure that the file types you want to upload are allowed: $wgFileExtensions = array( 'bmp', 'doc', 'docx', 'flac', 'gif', 'ico', 'jpeg', 'jpg', 'mp3', 'mpp', 'odg', 'odp', 'ods', 'odt', 'ogg', 'pdf', 'png', 'ppt', 'pptx', 'ps', 'rtf', 'svg', 'swf', 'tif', 'tiff', 'xls', 'xlsx', 'xml' ); $wgAllowJavaUploads = true; $wgVerifyMimeType = false;