Created
September 26, 2020 19:14
-
-
Save tyteen4a03/c3f0e1b244118c64a2e52405a18b7598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# This file was automatically generated by the MediaWiki 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: | |
# http://www.mediawiki.org/wiki/Manual:Configuration_settings | |
# If you customize your file layout, set $IP to the directory that contains | |
# the other MediaWiki files. It will be used as a base to locate files. | |
// For debugging | |
error_reporting( E_ALL ); | |
ini_set( 'display_errors', 1 ); | |
if( defined( 'MW_INSTALL_PATH' ) ) { | |
$IP = MW_INSTALL_PATH; | |
} else { | |
$IP = dirname( __FILE__ ); | |
} | |
$path = array( $IP, "$IP/includes", "$IP/languages" ); | |
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() ); | |
require_once( "$IP/includes/DefaultSettings.php" ); | |
# If PHP's memory limit is very low, some operations may fail. | |
# ini_set( 'memory_limit', '20M' ); | |
if ( $wgCommandLineMode ) { | |
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { | |
die( "This script must be run from the command line\n" ); | |
} | |
} | |
## Uncomment this to disable output compression | |
# $wgDisableOutputCompression = true; | |
$wgSitename = "redacted"; | |
## 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 please see: | |
## http://www.mediawiki.org/wiki/Manual:Short_URL | |
$wgScriptPath = "/w"; | |
$wgArticlePath = "/wiki/$1"; | |
$wgScriptExtension = ".php"; | |
#$wgUsePathInfo = true; | |
## UPO means: this is also a user preference option | |
$wgEnableEmail = true; | |
$wgEnableUserEmail = false; # UPO | |
$wgEmergencyContact = "tyteen4a03@thelastcode.io"; | |
$wgPasswordSender = "noreply@zbots.space"; | |
$wgEnotifUserTalk = false; # UPO | |
$wgEnotifWatchlist = false; # UPO | |
$wgEmailAuthentication = true; | |
## Database settings | |
$wgDBtype = "mysql"; | |
$wgDBserver = "localhost"; | |
$wgDBname = "redacted"; | |
$wgDBuser = "redacted"; | |
$wgDBpassword = "redacted"; | |
# MySQL specific settings | |
$wgDBprefix = "redacted_"; | |
# MySQL table options to use during installation or update | |
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; | |
## Shared memory settings | |
$wgMainCacheType = CACHE_ACCEL; | |
## To enable image uploads, make sure the 'images' directory | |
## is writable, then set this to true: | |
$wgEnableUploads = true; | |
$wgUseImageMagick = 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 = "C.UTF-8"; | |
## 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; | |
## If you have the appropriate support software installed | |
## you can enable inline LaTeX equations: | |
$wgUseTeX = false; | |
$wgUseInstantCommons = false; | |
$wgBlockDisablesLogin = true; | |
$wgLocalInterwiki = strtolower($wgSitename); | |
$wgLanguageCode = "en"; | |
$wgSecretKey = 'redacted'; | |
## Default skin: you can change the default skin. Use the internal symbolic | |
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': | |
$wgDefaultSkin = 'vector'; | |
## 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. | |
# $wgEnableCreativeCommonsRdf = true; | |
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright | |
$wgRightsUrl = ""; | |
$wgRightsText = ""; | |
$wgRightsIcon = ""; | |
// Implicit group for all visitors | |
$wgGroupPermissions['*']['createaccount'] = true; | |
$wgGroupPermissions['*']['read'] = true; | |
$wgGroupPermissions['*']['edit'] = false; | |
$wgGroupPermissions['*']['createpage'] = false; | |
$wgGroupPermissions['*']['createtalk'] = false; | |
$wgGroupPermissions['*']['writeapi'] = false; | |
//$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled | |
// Implicit group for all logged-in accounts | |
$wgGroupPermissions['user']['read'] = true; | |
$wgGroupPermissions['user']['edit'] = true; | |
$wgGroupPermissions['user']['createpage'] = true; | |
$wgGroupPermissions['user']['createtalk'] = true; | |
$wgGroupPermissions['user']['writeapi'] = true; | |
$wgGroupPermissions['user']['upload'] = true; | |
$wgGroupPermissions['user']['reupload'] = true; | |
$wgGroupPermissions['user']['reupload-shared'] = true; | |
$wgGroupPermissions['user']['minoredit'] = true; | |
$wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok" | |
$wgGroupPermissions['user']['sendemail'] = true; | |
$wgGroupPermissions['user']['wysiwyg'] = true; | |
$wgGroupPermissions['user']['oathauth-enable'] = true; | |
// Implicit group for accounts that pass $wgAutoConfirmAge | |
$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; | |
// Users with bot privilege can have their edits hidden | |
// from various log pages by default | |
$wgGroupPermissions['bot']['bot'] = true; | |
$wgGroupPermissions['bot']['autoconfirmed'] = true; | |
$wgGroupPermissions['bot']['nominornewtalk'] = true; | |
$wgGroupPermissions['bot']['autopatrol'] = true; | |
$wgGroupPermissions['bot']['suppressredirect'] = true; | |
$wgGroupPermissions['bot']['apihighlimits'] = true; | |
$wgGroupPermissions['bot']['writeapi'] = true; | |
#$wgGroupPermissions['bot']['editprotected'] = true; // can edit all protected pages without cascade protection enabled | |
$wgGroupPermissions['bureaucrat']['usermerge'] = true; | |
// Most extra permission abilities go to this group | |
$wgGroupPermissions['sysop']['block'] = true; | |
$wgGroupPermissions['sysop']['createaccount'] = true; | |
$wgGroupPermissions['sysop']['delete'] = true; | |
$wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs | |
$wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text | |
$wgGroupPermissions['sysop']['deletedtext'] = true; // can view deleted revision text | |
$wgGroupPermissions['sysop']['undelete'] = true; | |
$wgGroupPermissions['sysop']['editinterface'] = true; | |
$wgGroupPermissions['sysop']['editusercss'] = true; | |
$wgGroupPermissions['sysop']['edituserjs'] = true; | |
$wgGroupPermissions['sysop']['import'] = true; | |
$wgGroupPermissions['sysop']['importupload'] = true; | |
$wgGroupPermissions['sysop']['move'] = true; | |
$wgGroupPermissions['sysop']['move-subpages'] = true; | |
$wgGroupPermissions['sysop']['move-rootuserpages'] = true; | |
$wgGroupPermissions['sysop']['patrol'] = true; | |
$wgGroupPermissions['sysop']['autopatrol'] = true; | |
$wgGroupPermissions['sysop']['protect'] = true; | |
$wgGroupPermissions['sysop']['proxyunbannable'] = true; | |
$wgGroupPermissions['sysop']['rollback'] = true; | |
$wgGroupPermissions['sysop']['upload'] = true; | |
$wgGroupPermissions['sysop']['reupload'] = true; | |
$wgGroupPermissions['sysop']['reupload-shared'] = true; | |
$wgGroupPermissions['sysop']['unwatchedpages'] = true; | |
$wgGroupPermissions['sysop']['autoconfirmed'] = true; | |
$wgGroupPermissions['sysop']['upload_by_url'] = true; | |
$wgGroupPermissions['sysop']['ipblock-exempt'] = true; | |
$wgGroupPermissions['sysop']['blockemail'] = true; | |
$wgGroupPermissions['sysop']['markbotedits'] = true; | |
$wgGroupPermissions['sysop']['apihighlimits'] = true; | |
$wgGroupPermissions['sysop']['browsearchive'] = true; | |
$wgGroupPermissions['sysop']['noratelimit'] = true; | |
$wgGroupPermissions['sysop']['movefile'] = true; | |
$wgGroupPermissions['sysop']['unblockself'] = true; | |
$wgGroupPermissions['sysop']['suppressredirect'] = true; | |
$wgGroupPermissions['sysop']['checkuser'] = true; | |
$wgGroupPermissions['sysop']['checkuser-log'] = true; | |
$wgGroupPermissions['sysop']['move'] = true; | |
$wgGroupPermissions['sysop']['move-subpages'] = true; | |
$wgGroupPermissions['sysop']['move-rootuserpages'] = true; // can move root userpages | |
$wgGroupPermissions['sysop']['deleterevision'] = true; | |
$wgGroupPermissions['sysop']['renameuser'] = true; | |
$wgGroupPermissions['sysop']['interwiki'] = true; | |
$wgDiff3 = "/usr/bin/diff3"; | |
$wgShowExceptionDetails = true; | |
$wgCookieSetOnIpBlock = true; | |
# When you make changes to this configuration file, this will make | |
# sure that cached pages are cleared. | |
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); | |
$wgLogo = "/w/wiki.png"; | |
$wgPFEnableStringFunctions = true; | |
$wgFileExtensions[] = 'svg'; | |
# Plugins includes | |
// Abuse Filter | |
wfLoadExtension( 'AbuseFilter' ); | |
$wgGroupPermissions['sysop']['abusefilter-modify'] = true; | |
$wgGroupPermissions['sysop']['abusefilter-log-detail'] = true; | |
$wgGroupPermissions['sysop']['abusefilter-view'] = true; | |
$wgGroupPermissions['sysop']['abusefilter-log'] = true; | |
$wgGroupPermissions['sysop']['abusefilter-privatedetails'] = true; | |
$wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; | |
$wgGroupPermissions['sysop']['abusefilter-revert'] = true; | |
$wgAbuseFilterNotificationsPrivate = true; | |
wfLoadExtension("AntiSpoof"); | |
wfLoadExtension("UserMerge"); | |
// UploadWizard | |
wfLoadExtension( 'UploadWizard' ); | |
$wgExtensionFunctions[] = function() { | |
$GLOBALS['wgUploadNavigationUrl'] = SpecialPage::getTitleFor( 'UploadWizard' )->getLocalURL(); | |
return true; | |
}; | |
$wgApiFrameOptions = 'SAMEORIGIN'; | |
# MW Bundled stuff | |
// ConfirmEdit | |
wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]); | |
$wgCaptchaQuestions =[ | |
'redacted' => "redacted", | |
'redacted' => "redacted", | |
'redacted' => "redacted", | |
]; | |
// | |
wfLoadExtension('Cite'); | |
wfLoadExtension('CiteThisPage'); | |
wfLoadExtension('CategoryTree'); | |
// WikiEditor | |
$wgDefaultUserOptions['wikieditor-preview'] = 1; | |
$wgDefaultUserOptions['wikieditor-publish'] = 1; | |
wfLoadExtension( 'WikiEditor' ); | |
wfLoadExtension( 'Gadgets' ); | |
wfLoadExtension( 'ImageMap' ); | |
wfLoadExtension( 'InputBox' ); | |
wfLoadExtension( 'Interwiki' ); | |
wfLoadExtension( 'LocalisationUpdate' ); | |
$wgLocalisationUpdateDirectory = "$IP/cache"; | |
wfLoadExtension( 'MultimediaViewer' ); | |
wfLoadExtension( 'Nuke' ); | |
wfLoadExtension( 'OATHAuth' ); | |
wfLoadExtension( 'ParserFunctions' ); | |
wfLoadExtension( 'PdfHandler' ); | |
wfLoadExtension( 'Poem' ); | |
wfLoadExtension( 'Renameuser' ); | |
wfLoadExtension( 'SpamBlacklist' ); | |
wfLoadExtension( 'TitleBlacklist' ); | |
// Vector skin install | |
wfLoadSkin("Vector"); | |
wfLoadExtension( 'CodeEditor' ); | |
$wgDefaultUserOptions['usebetatoolbar'] = 1; // user option provided by WikiEditor extension | |
// MobileFrontend | |
wfLoadExtension( 'MobileFrontend' ); | |
$wgMFAutodetectMobileView = true; | |
wfLoadSkin( 'MinervaNeue' ); | |
$wgMFDefaultSkinClass = "SkinMinerva"; | |
$wgMobileFrontendLogo = $wgLogo; | |
$wgMFEnableBeta = true; | |
wfLoadExtension("ReplaceText"); | |
wfLoadExtension( 'SecureLinkFixer' ); | |
//wfLoadExtension( 'VisualEditor' ); | |
wfLoadExtension( 'TemplateData' ); | |
wfLoadExtension('PageImages'); | |
wfLoadExtension('TextExtracts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment