<?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.

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

$IP         = "/var/wwwroot/wiki";

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

require_once( "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" );
	}
} elseif ( empty( $wgNoOutputBuffer ) ) {
	## Compress output if the browser supports it
	if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}

$wgSitename         = "Vladimir";

$wgAllowExternalImages = true;

$wgScriptPath	    = "";
$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";

## For more information on customizing the URLs please see:
## http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
## If using PHP as a CGI module, the ?title= style usually must be used.
# $wgArticlePath      = "$wgScript/$1";
$wgArticlePath      = "$wgScript?title=$1";

$wgStylePath        = "$wgScriptPath/skins";
$wgStyleDirectory   = "$IP/skins";
$wgLogo             = "$wgScriptPath/mediawiki.png";

$wgUploadPath       = "$wgScriptPath/images";
$wgUploadDirectory  = "$IP/images";

$wgEnableEmail = true;
$wgEnableUserEmail = true;

$wgEmergencyContact = "voroninalv5@gmail.com";
$wgPasswordSender	= "wikivladimir@yandex.ru";
$wgSMTP	= array(
'host' => "ssl://smtp.yandex.ru",
'IDhost' => "yandex.ru",
'port' => 465,
'auth' => true,
'username' => "wikivladimir@yandex.ru",
'password' => "wiki@vladimir"
);

## For a detailed description of the following switches see
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;

$wgDBserver         = "localhost";
$wgDBname           = "wikidb";
$wgDBuser           = "wikiuser";
$wgDBpassword       = "P@ssw0rd";
$wgDBprefix         = "";
$wgDBtype           = "mysql";

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;

## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads		= true;
$wgUseImageResize		= true;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";

## 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;
$wgMathPath         = "{$wgUploadPath}/math";
$wgMathDirectory    = "{$wgUploadDirectory}/math";
$wgTmpDirectory     = "{$wgUploadDirectory}/tmp";

$wgLocalInterwiki   = $wgSitename;

$wgLanguageCode = "ru";

$wgProxyKey = "1b053b9a2c772d5e69bea44b58835aff71db7d9552dbe4c47f33666322707ae";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'monobook';

## 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 = "";
# $wgRightsCode = ""; # Not yet used

$wgDiff3 = "";

# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'xls', 'xlsx'); 

include("extensions/Graphviz.php"); 
$wgGraphVizSettings->dotCommand = "C:\\Program Files\\ATT\\Graphviz\\bin\\dot.exe"; 

$wgGoogleMapsKey = "ABQIAAAAEs0qhq3qPGv3isDirQF6DBR2Oj8zs4_UrLseIXwVP2agv9jTjxQ4FhSG6KtqAxhFUUIBFtWx_9mnDA";
require_once( "extensions/GoogleMaps/GoogleMaps.php" );

// Implicit group for all visitors
$wgGroupPermissions['*'    ]['createaccount']   = true;
$wgGroupPermissions['*'    ]['read']            = true;
$wgGroupPermissions['*'    ]['edit']            = false;
$wgGroupPermissions['*'    ]['createpage']      = false;
$wgGroupPermissions['*'    ]['createtalk']      = false;
 
$wgAddGroups['sysop'] = true;

$wgGroupPermissions['sysop']['userrights'] = true;


#require_once('extensions/YouTubeTag.php');
require_once('extensions/WikiArticleFeeds.php');
#require_once('extensions/Picasa2.php');

require_once('extensions/googleCalendar.php');

require_once('extensions/RSSReader/RSSReader.php'); 

$wgUseSiteJs = true;
$wgAllowUserJs = true;
#$wgUseSiteJs[':'] = true;
$wgRawHtml  = true;

require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require_once( "$IP/extensions/ConfirmEdit/QuestyCaptcha.php");
$wgCaptchaClass = 'QuestyCaptcha';

#$wgCaptchaQuestions[] = array( 'question' => 'Bvf999fdf', 'answer' =>'Putin');
#$wgCaptchaQuestions[] = array( 'question' => 'What is the last name of the first cosmonaut?', 'answer' =>'Gagarin');
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/3.jpg" alt="" title="" />', 'answer' => 'дятел');
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/4.jpg" alt="" title="" />', 'answer' =>'волк');
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/5.jpg" alt="" title="" />', 'answer' => 'лягушка');
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/6.jpg" alt="" title="" />', 'answer' =>'кошка');
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/7.jpg" alt="" title="" />', 'answer' =>'щука');
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/8.jpg" alt="" title="" />', 'answer' => 'корова');
$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/9.jpg" alt="" title="" />', 'answer' => '1' );
$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/10.jpg" alt="" title="" />', 'answer' => '217' );
$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/11.jpg" alt="" title="" />', 'answer' => '18' );
$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/12.jpg" alt="" title="" />', 'answer' => '72' );
$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/13.jpg" alt="" title="" />', 'answer' => '19' );
$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/14.jpg" alt="" title="" />', 'answer' => '58' );
$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/15.jpg" alt="" title="" />', 'answer' => '94' );
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/16.jpg" alt="" title="" />', 'answer' => '19' );
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/17.jpg" alt="" title="" />', 'answer' => '82' );
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/18.jpg" alt="" title="" />', 'answer' => '4' );
# $wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/19.jpg" alt="" title="" />', 'answer' => '57' );
# $wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/20.jpg" alt="" title="" />', 'answer' => '39' );
# $wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/21.jpg" alt="" title="" />', 'answer' => '92' );
# $wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/22.jpg" alt="" title="" />', 'answer' => '77' );
# $wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/23.jpg" alt="" title="" />', 'answer' => '270' );
# $wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/24.jpg" alt="" title="" />', 'answer' => '175' );
#$wgCaptchaQuestions[] = array( 'question' => '<img src="http://www.wiki.vladimir.i-edu.ru/imagescaptcha/24.jpg" alt="" title="" />', 'answer' => '8' );





?>