diff --git a/LocalSettings.php b/LocalSettings.php index 6b18e91..1ea206d 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -1,579 +1,579 @@ 'ForeignDBRepo', 'name' => 'poolwiki', 'url' => '//pool.'.$wiki_domain.'/images/pool', 'directory' => '/var/www/WikiToLearn/mediawiki/images/pool/', 'hashLevels' => 2, // This must be the same for the other family member 'dbType' => $wgDBtype, 'dbServer' => $wgDBserver, 'dbUser' => $wgDBuser, 'dbPassword' => $wgDBpassword, 'dbFlags' => DBO_DEFAULT, 'dbName' => 'poolwikitolearn', 'tablePrefix' => '', 'hasSharedCache' => true, 'descBaseUrl' => '//pool.'.$wiki_domain.'/Image:', 'fetchDescription' => false, ); $wgForeignFileRepos[] = array( 'class' => 'ForeignAPIRepo', 'name' => 'wikimediacommons', 'apibase' => 'https://commons.wikimedia.org/w/api.php', 'hashLevels' => 2, 'fetchDescription' => true, 'descriptionCacheExpiry' => 43200, 'apiThumbCacheExpiry' => 86400, ); if (!isset($wgDBname)) { $wgDBname = $wgDBuser; } $wgEnableAPI = true; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = '/usr/bin/convert'; $wgFileExtensions[] = 'pdf'; $wgFileExtensions[] = 'svg'; $wgFileExtensions[] = 'svgz'; $wgFileExtensions[] = 'tex'; $wgGroupPermissions['*']['upload'] = true; #$wgGroupPermissions['Editor']['autopatrol'] = true; $wgGroupPermissions['sysop']['meta'] = true; # $wgGroupPermissions['user']['upload'] = true; # InstantCommons allows wiki to use images from http://commons.wikimedia.org # $wgUseInstantCommons = 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 e $wgShellLocale = 'en_US.utf8'; ## 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; ## 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"; $wgUseSharedUploads = true; $wgSharedUploadPath = '//pool.'.$wiki_domain.'/images/pool'; $wgSharedUploadDirectory = $IP.'/images/pool/'; $wgHashedSharedUploadDirectory = true; $wgUploadNavigationUrl = '//pool.'.$wiki_domain.'/index.php/Special:Upload'; $wgUploadMissingFileUrl = '//pool.'.$wiki_domain.'/index.php/Special:Upload'; $wgUploadDirectory = $IP.'/images/'.$wiki.'/'; $wgUploadPath = '/images/'.$wiki; ## 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 = 'Project:Copyright'; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = 'http://creativecommons.org/licenses/by-sa/3.0/'; // $wgRightsUrl = "//www." . $wiki_domain . "/index.php/Project:Copyright"; $wgRightsText = 'Creative Commons Attribution Share Alike 3.0 & GNU FDL'; $wgRightsIcon = "{$wgStylePath}/common/images/cc-by-sa.png"; // $wgRightsIcon = "{$wgStylePath}/common/images/gfdlcc.png"; # Path to the GNU diff3 utility. Used for conflict resolution. $wgDiff3 = '/usr/bin/diff3'; $wgSVGConverter = 'inkscape'; # Query string length limit for ResourceLoader. You should only set this if # your web server has a query string length limit (then set it to that limit), # or if you have suhosin.get.max_value_length set in php.ini (then set it to # that value) $wgResourceLoaderMaxQueryLength = 512; $wgHooks['ParserClearState'][] = 'efMWNoTOC'; function efMWNoTOC($parser) { $parser->mShowToc = false; return true; } # Bigger uploads $wgMaxUploadSize = 2147483648; # Protect only uploads $wgAllowExternalImagesFrom = array('http://www.'.$wiki_domain.'/', 'http://www.pledgie.com'); $wgUseETag = true; # Don't sitemap files #$wgSitemapNamespaces = array('0', '2', '3', '4', '6', '8'); $wgDefaultUserOptions['useeditwarning'] = 1; $wgDefaultSkin = 'WikiToLearnSkin'; $wgWikiToLearnSkinEnableJoinPage = true; wfLoadSkin('WikiToLearnSkin'); $wgStyleVersion=314; $wgAllowImageTag = true; // prevents edits that contain URLs whose domains match regular expression patterns defined in specified files or wiki pages and registration by users using specified email addresses // Bump the Perl Compatible Regular Expressions backtrack memory limit // (PHP 5.3.x default, 1000K, is too low for SpamBlacklist) ini_set('pcre.backtrack_limit', '8M'); wfLoadExtension('SpamBlacklist'); $wgBlacklistSettings = array( 'spam' => array( 'files' => array( 'https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1', ), ), ); $wgLogSpamBlacklistHits = true; $wgSpamRegex = '/'.# The "/" is the opening wrapper 's-e-x|zoofilia|sexyongpin|grusskarte|geburtstagskarten|animalsex|'. 'sex-with|dogsex|adultchat|adultlive|camsex|sexcam|livesex|sexchat|'. 'chatsex|onlinesex|adultporn|adultvideo|adultweb.|hardcoresex|hardcoreporn|'. 'teenporn|xxxporn|lesbiansex|livegirl|livenude|livesex|livevideo|camgirl|'. 'spycam|voyeursex|casino-online|online-casino|kontaktlinsen|cheapest-phone|'. 'laser-eye|eye-laser|fuelcellmarket|lasikclinic|cragrats|parishilton|'. 'paris-hilton|paris-tape|2large|fuel-dispenser|fueling-dispenser|huojia|'. 'jinxinghj|telematicsone|telematiksone|a-mortgage|diamondabrasives|'. 'reuterbrook|sex-plugin|sex-zone|lazy-stars|eblja|liuhecai|'. 'buy-viagra|-cialis|-levitra|boy-and-girl-kissing|'.# These match spammy words "dirare\.com|".# This matches dirare.com a spammer's domain name "overflow\s*:\s*auto|".# This matches against overflow:auto (regardless of whitespace on either side of the colon) "height\s*:\s*[0-4]px|".# This matches against height:0px (most CSS hidden spam) (regardless of whitespace on either side of the colon) "==