|
<?php |
|
// in a mediawiki-vagrant clone instance |
|
// copy contents in settings.d/settings.php |
|
|
|
$siteTopLevelDomain = 'webplatform.local'; |
|
$wgDefaultRobotPolicy = 'noindex,nofollow'; |
|
|
|
## ref: http://www.mediawiki.org/wiki/Manual:$wgCanonicalServer |
|
$wgServer = "http://docs.".$siteTopLevelDomain; |
|
|
|
#require_once("$IP/extensions/BounceHandler/BounceHandler.php"); |
|
require_once("$IP/extensions/WebPlatformSearchAutocomplete/WebPlatformSearchAutocomplete.php"); #TODO, refactor |
|
|
|
require_once("$IP/extensions/ContributionTracking/ContributionTracking.php"); |
|
#require_once("$IP/extensions/ConfirmAccount/ConfirmAccount.php"); |
|
|
|
####### trimmed down version below ##### |
|
|
|
require_once("$IP/extensions/CheckUser/CheckUser.php"); |
|
$wgGroupPermissions['sysop']['checkuser'] = true; |
|
$wgGroupPermissions['sysop']['checkuser-log'] = true; |
|
|
|
require_once("$IP/extensions/Renameuser/Renameuser.php"); |
|
|
|
require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"); |
|
$wgSyntaxHighlightDefaultLang = "html5"; |
|
|
|
require_once("$IP/extensions/Cite/Cite.php"); |
|
|
|
require_once("$IP/extensions/WikiEditor/WikiEditor.php"); |
|
$wgDefaultUserOptions['usebetatoolbar'] = 1; |
|
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; |
|
|
|
require_once("$IP/extensions/CategoryTree/CategoryTree.php"); |
|
|
|
require_once("$IP/extensions/Validator/Validator.php"); |
|
|
|
require_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); |
|
enableSemantics('webplatform'); |
|
require_once("$IP/extensions/SemanticForms/SemanticForms.php"); |
|
$sfgRenameEditTabs = true; |
|
require_once("$IP/extensions/SemanticResultFormats/SemanticResultFormats.php"); |
|
|
|
require_once("$IP/extensions/AdminLinks/AdminLinks.php"); |
|
|
|
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" ); |
|
$wgCaptchaTriggers['edit'] = false; |
|
$wgCaptchaTriggers['create'] = false; |
|
$wgCaptchaTriggers['addurl'] = true; |
|
$wgCaptchaTriggers['createaccount'] = true; |
|
$wgCaptchaTriggers['badlogin'] = false; |
|
|
|
#require_once( "$IP/extensions/ConfirmEdit/ReCaptcha.php" ); |
|
#$wgCaptchaClass = 'ReCaptcha'; |
|
#$wgReCaptchaPublicKey = 'a'; |
|
#$wgReCaptchaPrivateKey = 'b'; |
|
#$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true; |
|
#$ceAllowConfirmedEmail = true; |
|
#$wgAccountCreationThrottle = 6; |
|
|
|
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); |
|
$wgBlacklistSettings = array(); |
|
$wgBlacklistSettings['spam']['files'][] = "[[MediaWiki:Spam-blacklist]]"; |
|
$wgBlacklistSettings['spam']['files'][] = "https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1"; |
|
|
|
require_once("$IP/extensions/Nuke/Nuke.php"); |
|
|
|
require_once("$IP/extensions/SubPageList3/SubPageList3.php"); |
|
|
|
require_once("$IP/extensions/SemanticInternalObjects/SemanticInternalObjects.php"); |
|
|
|
require_once("$IP/extensions/ParserFunctions/ParserFunctions.php"); |
|
$wgPFEnableStringFunctions = true; // Note: this must be after ParserFunctions and before StringFunctionsEscaped |
|
require_once("$IP/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php"); |
|
|
|
require_once("$IP/extensions/SocialProfile/SocialProfile.php"); # Make sure we applied mediawiki/patches/issue-19.path |
|
$wgUserProfileDisplay['friends'] = true; |
|
$wgUserProfileDisplay['foes'] = false; |
|
$wgUserProfileDisplay['avatar'] = false; |
|
$wgUserProfileThresholds['edits'] = $wgAutoConfirmCount; |
|
$wgEmailConfirmToEdit = true; |
|
|
|
require_once("$IP/extensions/NewSignupPage/NewSignupPage.php"); |
|
$wgRegisterTrack = true; |
|
$wgUserStatsPointValues['referral_complete'] = 10; |
|
$wgAutoAddFriendOnInvite = true; |
|
$wgForceNewSignupPageInitialization = true; |
|
|
|
require_once("$IP/extensions/cldr/cldr.php"); |
|
|
|
require_once("$IP/extensions/LookupUser/LookupUser.php"); |
|
$wgGroupPermissions['*']['lookupuser'] = false; |
|
$wgGroupPermissions['sysop']['lookupuser'] = true; |
|
|
|
require_once( "$IP/extensions/UserMerge/UserMerge.php" ); |
|
$wgGroupPermissions['bureaucrat']['usermerge'] = true; |
|
|
|
require_once( "$IP/extensions/AbuseFilter/AbuseFilter.php" ); |
|
$wgGroupPermissions['sysop']['abusefilter-modify'] = true; |
|
$wgGroupPermissions['*']['abusefilter-log-detail'] = true; |
|
$wgGroupPermissions['*']['abusefilter-view'] = true; |
|
$wgGroupPermissions['*']['abusefilter-log'] = true; |
|
$wgGroupPermissions['sysop']['abusefilter-private'] = true; |
|
$wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; |
|
$wgGroupPermissions['sysop']['abusefilter-revert'] = true; |
|
|
|
require_once("$IP/extensions/WebPlatformMediaWikiExtensionBundle/main.php"); |