| Current File : /home/jvzmxxx/wiki1/skins/LocalSettings.php |
<?php
# This file was automatically generated by the MediaWiki 1.28.0
# 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:
# 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 = "Czarnobyl Wiki";
$wgMetaNamespace = "Czarnobyl_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 = "";
$wgArticlePath = "/wiki/$1";
$wgCookiePrefix = false;
$wgUsePathInfo = true;
$wgFavicon = "$wgScriptPath/images/favicon.ico";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://wiki.czarnobyl.pl";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "administracja@czarnobyl.pl";
$wgPasswordSender = "administracja@czarnobyl.pl";
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "czarnob1_wiki";
$wgDBuser = "czarnob1_user";
$wgDBpassword = "27021994p";
# MySQL specific settings
$wgDBprefix = "wiki";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## 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;
## 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 = "en_US.utf8";
## 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 = "pl";
$wgSecretKey = "614f353c35377d63c1c0f9020efb6695a3b8d6076954191b8b616d0895b1dab9";
# 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 = "5271cc258e7ce373";
## 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 – za uznaniem autora, na tych samych zasadach";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'Vector' );
$wgGroupPermissions['*']['createaccount'] = true;
function onPersonalUrls_CreateAccountUrl( array &$personal_urls, Title $title, SkinTemplate $skin ) {
if ( isset( $personal_urls['createaccount'] ) ) {
$personal_urls['createaccount']['href'] = "https://czarnobyl.pl/component/users/?view=registration";
}
}
$wgHooks['PersonalUrls'][] = 'onPersonalUrls_CreateAccountUrl';
# 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:
# AutoSitemap
wfLoadExtension( 'AutoSitemap' );
# ApprovedRevs
require_once( "$IP/extensions/ApprovedRevs/ApprovedRevs.php" );
$wgGroupPermissions['*']['viewlinktolatest'] = false;
$wgGroupPermissions['sysop']['viewlinktolatest'] = true;
# Cite
wfLoadExtension( 'Cite' );
# Cite this Page
//wfLoadExtension( 'CiteThisPage' );
# Confirm Edit
wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ) );
// Add your questions in LocalSettings.php using this format:
$wgCaptchaQuestions = array(
'W którym roku miała miejsce Katastrofa w Czarnobylu?' => '1986',
);
$wgGroupPermissions['*' ]['skipcaptcha'] = false;
$wgGroupPermissions['user' ]['skipcaptcha'] = true;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
$wgGroupPermissions['bot' ]['skipcaptcha'] = true; // registered bots
$wgGroupPermissions['sysop' ]['skipcaptcha'] = true;
$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;
# Echo
require_once "$IP/extensions/Echo/Echo.php";
# EventLogging
require_once "$IP/extensions/EventLogging/EventLogging.php";
$wgEventLoggingBaseUri = 'http://localhost:8080/event.gif';
$wgEventLoggingFile = '/var/log/mediawiki/events.log';
# Flow
require_once "$IP/extensions/Flow/Flow.php";
// These lines enable Flow on the "Project talk" and "User talk" namespaces
$wgNamespaceContentModels[NS_PROJECT_TALK] = CONTENT_MODEL_FLOW_BOARD;
$wgNamespaceContentModels[NS_USER_TALK] = CONTENT_MODEL_FLOW_BOARD;
$wgNamespaceContentModels[NS_CATEGORY_TALK] = CONTENT_MODEL_FLOW_BOARD;
$wgNamespaceContentModels[NS_TALK] = CONTENT_MODEL_FLOW_BOARD;
# Gadgets
//wfLoadExtension( 'Gadgets' );
# GoogleAnalytics
require_once "$IP/extensions/googleAnalytics/googleAnalytics.php";
// Replace xxxxxxx-x with YOUR GoogleAnalytics UA number
$wgGoogleAnalyticsAccount = 'UA-56787022-1';
# Graph
wfLoadExtension( 'Graph' );
# ImageMap
//wfLoadExtension( 'ImageMap' );
# InputBox
wfLoadExtension( 'InputBox' );
# InteractiveTimeline
//wfLoadExtension( 'InteractiveTimeline' );
# Interwiki
wfLoadExtension( 'Interwiki' );
// To grant sysops permissions to edit interwiki data
$wgGroupPermissions['sysop']['interwiki'] = true;
# Kartographer
wfLoadExtension( 'Kartographer' );
# LocalisationUpdate
wfLoadExtension( 'LocalisationUpdate' );
$wgLocalisationUpdateDirectory = "$IP/cache";
# MobileFrontend
wfLoadExtension( 'MobileFrontend' );
$wgMFAutodetectMobileView = true;
# MultimediaViewer
require_once "$IP/extensions/MultimediaViewer/MultimediaViewer.php";
$wgMediaViewerEnableByDefault = true;
$wgMediaViewerEnableByDefaultForAnonymous = true;
# News
//require_once "$IP/extensions/News/News.php";
# Nuke
wfLoadExtension( 'Nuke' );
# OpenGraphMeta
require_once( "$IP/extensions/OpenGraphMeta/OpenGraphMeta.php" );
# Page Images
wfLoadExtension( 'PageImages' );
$wgPageImagesNamespaces = array(0);
# ParserFunctions
wfLoadExtension( 'ParserFunctions' );
# PdfHandler
wfLoadExtension( 'PdfHandler' );
# Poem
wfLoadExtension( 'Poem' );
# Popups
wfLoadExtension( 'Popups' );
# Renameuser
wfLoadExtension( 'Renameuser' );
# RevisionSlider
wfLoadExtension( 'RevisionSlider' );
# Scribunto
require_once "$IP/extensions/Scribunto/Scribunto.php";
$wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';
# SocialProfile
require_once("$IP/extensions/SocialProfile/SocialProfile.php");
$wgUserProfileDisplay['stats'] = true;
require_once("$IP/extensions/SocialProfile/UserStats/EditCount.php"); // Necessary edit counter
// The actual user level definitions -- key is simple: 'Level name' => points needed
$wgUserLevels = array(
'Szeregowy' => 0,
'Starszy szeregowy' => 500,
'Kapral' => 1000,
'Starszy kapral' => 2500,
'Plutonowy' => 5000,
'Sierżant' => 7500,
'Starszy sierżant' => 10000,
'Młodszy chorąży' => 20000,
'Chorąży' => 35000,
'Starszy chorąży' => 50000,
'Starszy chorąży sztabowy' => 75000,
'Podporucznik' => 100000,
'Porucznik' => 150000,
'Kapitan' => 250000,
'Major' => 350000,
'Podpułkownik' => 450000,
'Pułkownik' => 550000,
'Generał brygady' => 650000,
'Generał dywizji' => 750000,
'Generał broni' => 850000,
'Generał' => 1000000,
);
$wgUserStatsPointValues['edit'] = 50; // Points awarded on a mainspace edit
$wgUserStatsPointValues['vote'] = 5; // Points awarded for voting for an article
$wgUserStatsPointValues['comment'] = 10; // Points awarded for leaving a comment
$wgUserStatsPointValues['comment_plus'] = 25; // Points awarded if your comment gets a thumbs up
$wgUserStatsPointValues['comment_ignored'] = 0; // Points awarded if another user ignores your comments
$wgUserStatsPointValues['opinions_created'] = 50; // Points awarded for writing a blog article
$wgUserStatsPointValues['opinions_pub'] = 0; // Points awarded for having that article hit the "Blogs" page
$wgUserStatsPointValues['referral_complete'] = 0; // Points awarded for recruiting a new user
$wgUserStatsPointValues['friend'] = 0; // Points awarded for adding a friend
$wgUserStatsPointValues['foe'] = 0; // Points awarded for adding a foe
$wgUserStatsPointValues['gift_rec'] = 0; // Points awarded for receiving a gift
$wgUserStatsPointValues['gift_sent'] = 0; // Points awarded for giving a gift
$wgUserStatsPointValues['points_winner_weekly'] = 0; // Points awarded for having the most points for a week
$wgUserStatsPointValues['points_winner_monthly'] = 0; // Points awarded for having the most points for a month
$wgUserStatsPointValues['user_image'] = 500; // Points awarded for adding your first avatar
$wgUserStatsPointValues['poll_vote'] = 0; // Points awarded for taking a poll
$wgUserStatsPointValues['quiz_points'] = 0; // Points awarded for answering a quiz question
$wgUserStatsPointValues['quiz_created'] = 0; // Points awarded for creating a quiz question
$wgNamespacesForEditPoints = array( 0 ); // Array of namespaces that can earn you points. Use numerical keys. Default is 0 -- only main namespace edits can earn a user points.
# SpamBlacklist
wfLoadExtension( 'SpamBlacklist' );
# SyntaxHighlight_GeSHi
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
# TemplateData
wfLoadExtension( 'TemplateData' );
// TimedMediaHandler
require_once "$IP/extensions/MwEmbedSupport/MwEmbedSupport.php";
// TimedMediaHandler
require_once "$IP/extensions/TimedMediaHandler/TimedMediaHandler.php";
# TextExtracts
wfLoadExtension( 'TextExtracts' );
# TitleBlacklist
wfLoadExtension( 'TitleBlacklist' );
# VisualEditor
wfLoadExtension( 'VisualEditor' );
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// OPTIONAL: Enable VisualEditor's experimental code features
$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://parsoidonheroku.herokuapp.com',
//http://evening-sierra-43119.herokuapp.com
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
'prefix' => 'localhost');
# WikiEditor
wfLoadExtension( 'WikiEditor' );
# Cards
//wfLoadExtension( 'Cards' );
# RelatedArticles
//wfLoadExtension( 'RelatedArticles' );
//$wgRelatedArticlesShowReadMore = true;
//$wgRelatedArticlesShowInFooter = true;
# Error reporting
//error_reporting( -1 );
//ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
######################################################################
# User authentication via Joomla using AuthJoomlaEasy
require_once "$IP/extensions/AuthJoomlaEasy/AuthJoomlaEasy.php";
SetupAuthJoomla();
// disable registration and sign-in from the wiki front page
//$wgGroupPermissions['*']['read'] = true; // MediaWiki 1.5+ Settings
//$wgGroupPermissions['*']['edit'] = false; // MediaWiki 1.5+ Settings
//$wgGroupPermissions['*']['createaccount'] = false; // MediaWiki 1.5+ Settings
// YOU MUST CHANGE THIS to something unique to your site and it must
// match this setting in mediawikilogin plugin
$wgAuthJoomla_security_key = '7e4n78k9u2gh3d8j';
// is Joomla in a different database than Mediawiki?
$wgAuthJoomla_UseExtDatabase = true;
//NOTE: You only need the next four settings if you set $wgAuthJoomla_UseExtDatabase to true.
$wgAuthJoomla_MySQL_Host = 'localhost'; // Joomla MySQL Host Name.
$wgAuthJoomla_MySQL_Username = 'czarnob1_user'; // Joomla MySQL Username.
$wgAuthJoomla_MySQL_Password = '27021994p'; // Joomla MySQL Password.
$wgAuthJoomla_MySQL_Database = 'czarnob1_base'; // Joomla MySQL Database Name.
$wgAuthJoomla_TablePrefix = 'ogl2c_';
$wgAuthJoomla_UserTable = 'users'; // name of Joomla user table without prefix; normally 'users'
//set these URLs to appropriate targets:
$wgAuthJoomla_domain = 'https://czarnobyl.pl/'; //location Joomla index.php file
$wgAuthJoomla_LogoutLink = base64_encode($wgScriptPath); //return location logout
$wgAuthJoomla_LoginLink = base64_encode($wgScriptPath); //return location login
$wgAuthJoomla_LoginURL = $wgAuthJoomla_domain .'index.php?option=com_users&view=login&return=' . $wgAuthJoomla_LoginLink;
$wgAuthJoomla_LogoutURL = $wgAuthJoomla_domain . 'index.php?option=com_users&task=logout&return=' . $wgAuthJoomla_LogoutLink;
# End of automatically generated settings.
# Add more configuration options below.