<?php
$wgSitename = "bits & Bytes Minecraft Wiki";
$wgMetaNamespace = "Bits_&_Bytes_Minecraft_Wiki";

## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://wiki.bnbmc.net";


## 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 = [
	'svg' => "/assets/logo.svg",
	'icon' => "/assets/logo.svg",
];

$wgFavicon = "/assets/favicon.ico";
$wgAppleTouchIcon = "/assets/apple-touch-icon.png";

$wgUploadDirectory = "/var/www/html/mediawiki/sites/bnbmc/images";

## Database settings
require_once "/srv/external_includes/bnbmc/mysql_pw.php";

# SMTP
require_once "/srv/external_includes/bnbmc/email.php";

$wgPasswordSender = "email@example.com";

## 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-nc/4.0";
$wgRightsText = "Creative Commons Attribution-NonCommercial";
$wgRightsIcon = "https://upload.wikimedia.org/wikipedia/commons/d/d3/Cc_by-nc_icon.svg";

# Permissions
$wgGroupPermissions['*']['edit'] = false;

require_once "/srv/external_includes/bnbmc/secrets.php";

# Request Account
wfLoadExtension( 'ConfirmAccount' );
$wgGroupPermissions['*']['createaccount'] = false; 
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgCaptchaTriggers['addurl'] = false;
$wgConfirmAccountContact = "email@example.com";

$wgMakeUserPageFromBio = false;
$wgAutoWelcomeNewUsers = false;
$wgConfirmAccountRequestFormItems = [
 	'UserName'        => [ 'enabled' => true ],
 	'RealName'        => [ 'enabled' => false ],
 	'Biography'       => [ 'enabled' => false ],
 	'AreasOfInterest' => [ 'enabled' => false ],
 	'CV'              => [ 'enabled' => false ],
 	'Notes'           => [ 'enabled' => false ],
 	'Links'           => [ 'enabled' => false ],
 	'TermsOfService'  => [ 'enabled' => false ],
 ];

# Extensions

?>


