'RedisBagOStuff',
'servers' => [
'127.0.0.1:6379'
],
'persistent' => true,
];
## Shared memory settings
$wgMainCacheType = 'redis';
#$wgMemCachedServers = [ '127.0.0.1:11211' ];
## 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 = false;
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = false;
## 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";
## 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/data/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "d462bbb47941270705aaa4a45101cd1d0c7583a73a3f51a2e9ec362a9c9f96e5";
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "659bbb360876a026";
## 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://www.gnu.org/copyleft/fdl.html";
$wgRightsText = "GNU Free Documentation License 1.3 or later";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/gnu-fdl.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
#$wgDefaultSkin = "scummmodern";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'Vector' );
#wfLoadSkin( 'ScummModern' );
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtensions('ExtensionName');
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
wfLoadExtension( 'DynamicPageList' );
wfLoadExtension( 'GoogleDocs4MW' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'SimpleMathJax' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'Cite' );
wfLoadExtension( 'MobileFrontend' );
wfLoadExtension( 'ReplaceText' );
wfLoadExtension( 'OpenGraphMeta' );
wfLoadExtension( 'Description2' );
#wfLoadExtension( 'Moderation' );
#wfLoadExtension( 'StopForumSpam' );
#wfLoadExtension( 'VisualEditor' );
# End of automatically generated settings.
# Add more configuration options below.
#$wgShowExceptionDetails = true;
$wgEnableMetaDescriptionFunctions = true;
wfLoadSkin( 'MinervaNeue' );
$wgMFAutodetectMobileView = true;
$wgMFDefaultSkinClass = 'SkinMinerva';
$wgTmpDirectory = "$IP/images/temp";
$wgPFEnableStringFunctions = true;
## Sev added this
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'svg' );
$wgAllowTitlesInSVG = true;
$wgRestrictDisplayTitle = false;
# Permissions
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
# Create a TrustedUser group with slightly more permission than normal users
$wgGroupPermissions['TrustedUser'] = $wgGroupPermissions['user'];
$wgGroupPermissions['TrustedUser']['editinterface'] = true;
$wgGroupPermissions['TrustedUser']['block'] = true;
$wgGroupPermissions['TrustedUser']['protect'] = true;
$wgGroupPermissions['TrustedUser']['delete'] = true;
$wgGroupPermissions['TrustedUser']['undelete'] = true;
$wgGroupPermissions['TrustedUser']['deletedhistory'] = true;
$wgGroupPermissions['TrustedUser']['replacetext'] = true;
# Don't moderate trusted users
$wgGroupPermissions['TrustedUser']['skip-moderation'] = true;
$wgGroupPermissions['TrustedUser']['skip-move-moderation'] = true;
# Moderation anti-vandalism
$wgGroupPermissions['automoderated']['skip-move-moderation'] = false;
$wgGroupPermissions['sysop']['skip-move-moderation'] = true;
# Images fix
$wgAllowExternalImages = true;
#$wgAllowExternalImagesFrom = 'http://www.scummvm.org/';
# Allow subpages in the main namespace
$wgNamespacesWithSubpages[NS_MAIN] = true;
function addGoogleAnalyticsScript($skin, &$text) {
$text .=
''.
'';
return true;
}
# Captcha
wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/ReCaptchaNoCaptcha' ]);
$wgCaptchaClass = 'ReCaptchaNoCaptcha';
$wgReCaptchaSiteKey = '6LdSunYUAAAAAKQOWSlbazuSqKPfOPClVxy--Aqe';
$wgReCaptchaSecretKey = '6LdSunYUAAAAADXnRLTHP0BVSv9uiWQ0Dw4uMsY-';
# StopForumSpam
$wgSFSIPListLocation = '/var/www/wiki/listed_ip_30_ipv46_all.txt';
# Questy Captcha
#$wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]);
$questy = array(
"How many kids do you control in Day of the Tentacle?" => array("3","three"),
"What's Roger Wilco's job on the ship" => array("janitor", "cleaning"),
"What city does Gabriel Knight start in?" => array("new orleans", "nola"),
"Guybrush threepwood, a mighty ______" => "pirate",
"What's the name of the demonic skull from Curse of Monkey Island?" => "murray",
"How many Kyrandia games are there?" => array("3","three"),
"What does SCUMM stand for" => "script creation utility for maniac mansion",
"Name one color tentacle" => array("green", "purple"),
"Where city does Broken Sword begin at" => "paris",
"Name one of the Daventry royals" => array("graham", "alex", "alexander", "rosella", "edward", "valanice", "cassima"),
"What city does Indiana Jones discover?" => "atlantis",
"What item does Bobbin Threadbare use to case spells?" => array("distaff", "cane"),
"King's Quest 6 happens in the land of the ____ _____" => "green isles",
"Larry's last name is?" => "laffer",
"Name one of the places the Dr. Brain games occur in" => array("castle", "island"),
"What's the name of Larry's passionate female co-star?" => "patty",
"Freddy Pharkas has a job as a _____" => "pharmacist",
"What other name is the game Hero's Quest known as?" => array("qfg", "quest for glory"),
"What is the name of the protaganist in one of the Kyrandia games?" => array("brandon", "zanthia", "malcolm"),
"What does Rincewind use to carry all of his inventory?" => array("luggage", "a luggage"),
"What animal is one of the two leads in Sam & Max?" => array("dog", "rabbit", "bunny"),
"What article of clothing plumbers don't wear?" => "ties",
"What animal is the Humongous entertainment character of Freddi?" => "fish",
"Who is the protaganist in the Simon the Sorcerer series?" => "sordid",
"In Goblins 3, Blount can turn into what creature?" => array("werewolf", "wolf")
);