<?php
# This file was automatically generated by the MediaWiki 1.43.1
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/MainConfigSchema.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 = "Atari Lynx Wiki";
$wgMetaNamespace = "Atari_Lynx_Wiki";

## 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";

## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://atarilynx.gameplayer.club";

## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;

## The URL paths to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogos = [
	'1x' => "$wgResourceBasePath/resources/assets/atari_lynx_icon.png",
	'icon' => "$wgResourceBasePath/resources/assets/atari_lynx_icon.png",
];

## UPO means: this is also a user preference option

$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "info@atarilynx.gameplayer.club";
$wgPasswordSender = "info@atarilynx.gameplayer.club";

$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "mediawiki";
$wgDBuser = "mediawiki";
$wgDBpassword = "1223qwweassdzxxc";

# MySQL specific settings
$wgDBprefix = "mediawiki";
$wgDBssl = false;

# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Shared database table
# This has no effect unless $wgSharedDB is also set.
$wgSharedTables[] = "actor";

## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];

## 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;

# 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 = true;

# Site language code, should be one of the list in ./includes/languages/data/Names.php
$wgLanguageCode = "en";

# Time zone
$wgLocaltimezone = "PDT";

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publicly accessible from the web.
#$wgCacheDirectory = "$IP/cache";

$wgSecretKey = "fb3c170788827e83924323a419d87998cc296c7b4825130cc3943c8f800d2bf7";

# 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 = "1a5c7316ceb43fa1";

## 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/licenses/by-sa/4.0/";
$wgRightsText = "Creative Commons Attribution-ShareAlike";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png";

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";

# 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, e.g. 'vector' or 'monobook':
$wgDefaultSkin = "timeless";

# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );


# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtension( 'ExtensionName' );
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
wfLoadExtension( 'AbuseFilter' );
wfLoadExtension( 'CategoryTree' );
wfLoadExtension( 'Cite' );
wfLoadExtension( 'CiteThisPage' );
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'ConfirmEdit' );
wfLoadExtension( 'DiscussionTools' );
wfLoadExtension( 'Echo' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'Interwiki' );
wfLoadExtension( 'Linter' );
wfLoadExtension( 'LoginNotify' );
wfLoadExtension( 'Math' );
wfLoadExtension( 'MultimediaViewer' );
wfLoadExtension( 'Nuke' );
wfLoadExtension( 'OATHAuth' );
wfLoadExtension( 'PageImages' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'Poem' );
wfLoadExtension( 'ReplaceText' );
wfLoadExtension( 'Scribunto' );
wfLoadExtension( 'SecureLinkFixer' );
wfLoadExtension( 'SpamBlacklist' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'TemplateData' );
wfLoadExtension( 'TextExtracts' );
wfLoadExtension( 'Thanks' );
wfLoadExtension( 'TitleBlacklist' );
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'WikiEditor' );


# End of automatically generated settings.
# Add more configuration options below.


$wgAllowHTMLEmail = true;
$wgSMTP = [
    'host'      => 'wiki.mekcity.com', // could also be an IP address. Where the SMTP server is located. If using SSL or TLS, add the prefix "ssl://" or "tls://".
    'IDHost'    => 'wiki.mekcity.com',      // Generally this will be the domain name of your website (aka mywiki.org)
    'localhost' => 'wiki.mekcity.com',      // Same as IDHost above; required by some mail servers
    'port'      => 25,                // Port to use when connecting to the SMTP server
    'auth'      => true,               // Should we use SMTP authentication (true or false)
    'username'  => 'wikimail',     // Username to use for SMTP authentication (if being used)
    'password'  => 'wssx34X!'       // Password to use for SMTP authentication (if being used)
];

$wgJobRunRate=0;
wfLoadExtension( 'Gravatar' );
wfLoadExtension( 'AccountInfo' );
wfLoadExtension( 'AchievementBadges' );
wfLoadExtension( 'AddHTMLMetaAndTitle' );
wfLoadExtension( 'AddMessages' );
wfLoadExtension( 'AddPersonalUrls' );
wfLoadExtension( 'AJAXPoll' );

wfLoadExtension( 'MP3MediaHandler' );
wfLoadExtension( 'SimpleCalendar' );
wfLoadExtension( 'JsCalendar' );
wfLoadExtension( 'BounceHandler' );
wfLoadExtension( 'EmailNotifications' );
wfLoadExtension( 'FeaturedFeeds' );
wfLoadExtension( 'CheckUser' );
wfLoadExtension( 'ImportUsers' );
$wgGroupPermissions['sysop']['import_users'] = true;

wfLoadExtension( 'MissedPages' );
wfLoadExtension( 'MediaUploader' );

wfLoadExtension( 'PDFEmbed' );
// Default width for the PDF object container.
$wgPdfEmbed['width'] = 800;
// Default height for the PDF object container.
$wgPdfEmbed['height'] = 1090;
//Allow user the usage of the pdf tag
$wgGroupPermissions['*']['embed_pdf'] = true;

require_once "$IP/extensions/SimpleEmbed/SimpleEmbed.php";

wfLoadExtension( 'YouTube' );
wfLoadExtension( 'PageProperties' );

wfLoadExtension( 'AJAXPoll' );
# anons
# default: anons cannot vote and will never see results
$wgGroupPermissions['*']['ajaxpoll-vote'] = false;
$wgGroupPermissions['*']['ajaxpoll-view-results'] = true;
$wgGroupPermissions['*']['ajaxpoll-view-results-before-vote'] = true;

# users
# default: users can vote and can see poll results - when they have voted
$wgGroupPermissions['user']['ajaxpoll-vote'] = true;
$wgGroupPermissions['user']['ajaxpoll-view-results'] = true;

wfLoadExtension( 'ArticleMetaDescription' );

wfLoadExtension( 'Maintenance' );
$wgGroupPermissions['sysop']['maintenance'] = true;

wfLoadExtension( 'AutoSitemap' );
$wgAutoSitemap["filename"] = "sitemap.xml"; //default value
$wgAutoSitemap["freq"] = "daily"; //default
$wgAutoSitemap["min_age"] = 3600; // 1 hour, default 0 (no rate-limit)

wfLoadExtension( 'Patroller' );
wfLoadExtension( 'SmiteSpam' );
wfLoadExtension( 'StopForumSpam' );
$wgMainCacheType = CACHE_DB;
$wgDebugLogGroups['StopForumSpam'] = '/var/log/mediawiki/stopforumspam.log';

#wfLoadExtension( 'BreadCrumbs2' );
wfLoadExtension( 'Calendar' );
wfLoadExtension( 'Graph' );
wfLoadExtension( 'HoneyPot' );
wfLoadExtension( 'HostStats' );
wfLoadExtension( 'ImageRating' );
wfLoadExtension( 'LanguageSelector' );
wfLoadExtension( 'LastModified' );
wfLoadExtension( 'LastUserLogin' );
wfLoadExtension( 'LinkSuggest' );
wfLoadExtension( 'LiveChat' );
wfLoadExtension( 'LoginNotify' );
wfLoadExtension( 'LookupUser' );

wfLoadExtension( 'MsUpload' );
$wgMSU_useDragDrop = true; // Should the drag & drop area be shown?
$wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category
$wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default
$wgMSU_useMsLinks = false; // Insert links in Extension:MsLinks style?
$wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox
$wgMSU_imgParams = '400px'; // Default image parameters, for example "thumb|200px"
$wgMSU_uploadsize = '100mb'; // Max upload size through MsUpload

wfLoadExtension( 'MultiMail' );
wfLoadExtension( 'Newsletter' );
wfLoadExtension( 'NewUserMessage' );
wfLoadExtension( 'CookieWarning' );
wfLoadExtension( 'DarkMode' );

wfLoadExtension( 'Discord' );
// List webhook URLs to send notifications to (string or array containing strings)
$wgDiscordWebhookURL = [ "PUT LINK HERE" ];

wfLoadExtension( 'OOJSPlus' );
wfLoadExtension( 'EnhancedUpload' );
wfLoadExtension( 'FileImporter' );
wfLoadExtension( 'QRLite' );
wfLoadExtension( 'Quiz' );

require_once "$IP/extensions/SocialProfile/SocialProfile.php";
wfLoadExtension( 'QuizGame' );
#wfLoadExtension( 'RealTimeUsers' );

#wfLoadExtension( 'UpdateMediaWiki' );
#$wgGroupPermissions['sysop']['updatecore'] = true;

wfLoadExtension( 'WhosOnline' );
$wgWhosOnlineShowAnons = false;
// If you want anonymous users IP addresses shown. Default is not to show them, for privacy reasons.

wfLoadExtension( 'WikiForum' );
$wgWikiForumAllowAnonymous = false;

wfLoadExtension( 'WikiLove' );
$wgDefaultUserOptions['wikilove-enabled'] = 1;
$wgWikiLoveLogging = true;

$wgAntivirusSetup = [
	# setup for clamav
	'clamav' => [
		'command' => '/usr/bin/clamscan --no-summary ',
		'codemap' => [
			"0" => AV_NO_VIRUS, # no virus
			"1" => AV_VIRUS_FOUND, # virus found
			"52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
			"*" => AV_SCAN_FAILED, # else scan failed
		],
		'messagepattern' => '/.*?:(.*)/sim',
	],
];

